diff options
author | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2020-05-29 09:28:42 +0300 |
---|---|---|
committer | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2020-05-29 09:28:42 +0300 |
commit | 76926ee2a416f8dd77c3d15f33e47148ad712197 (patch) | |
tree | 1217a6ce891e33f77179e9a5ba43b0a79b061ba7 /lib | |
parent | 0b1f8cecc5eb1b9cc2b4da72dff21d84273b32a9 (diff) |
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/OptionController.php | 2 | ||||
-rw-r--r-- | lib/Migration/Version0104Date20200205104800.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Controller/OptionController.php b/lib/Controller/OptionController.php index 4186bd0b..0c20b768 100644 --- a/lib/Controller/OptionController.php +++ b/lib/Controller/OptionController.php @@ -248,7 +248,7 @@ class OptionController extends Controller { * @return DataResponse */ public function reorder($pollId, $options) { - $i=0; + $i = 0; if (!$this->acl->setPollId($pollId)->getAllowEdit()) { return new DataResponse(null, Http::STATUS_UNAUTHORIZED); diff --git a/lib/Migration/Version0104Date20200205104800.php b/lib/Migration/Version0104Date20200205104800.php index 32fe2217..f869fc4b 100644 --- a/lib/Migration/Version0104Date20200205104800.php +++ b/lib/Migration/Version0104Date20200205104800.php @@ -80,7 +80,7 @@ class Version0104Date20200205104800 extends SimpleMigrationStep { $prefix = $this->config->getSystemValue('dbtableprefix', 'oc_'); // check for orphaned entries in all tables referencing // the main polls table - foreach($this->childTables as $tbl) { + foreach ($this->childTables as $tbl) { $child = "$prefix$tbl"; $query = "DELETE FROM $child @@ -107,7 +107,7 @@ class Version0104Date20200205104800 extends SimpleMigrationStep { $schema = $schemaClosure(); $eventTable = $schema->getTable('polls_polls'); - foreach($this->childTables as $tbl) { + foreach ($this->childTables as $tbl) { $table = $schema->getTable($tbl); $table->addForeignKeyConstraint($eventTable, ['poll_id'], ['id'], ['onDelete' => 'CASCADE']); |