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/Migration | |
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/Migration')
-rw-r--r-- | lib/Migration/Version0104Date20200205104800.php | 4 |
1 files changed, 2 insertions, 2 deletions
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']); |