Passed
Pull Request — master (#866)
by rakekniven
03:51
created
lib/Migration/Version0104Date20200205104800.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $prefix = $this->config->getSystemValue('dbtableprefix', 'oc_');
81 81
         // check for orphaned entries in all tables referencing
82 82
         // the main polls table
83
-        foreach($this->childTables as $tbl) {
83
+        foreach ($this->childTables as $tbl) {
84 84
             $child = "$prefix$tbl";
85 85
             $query = "DELETE
86 86
                 FROM $child
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$schema = $schemaClosure();
108 108
 
109 109
         $eventTable = $schema->getTable('polls_polls');
110
-        foreach($this->childTables as $tbl) {
110
+        foreach ($this->childTables as $tbl) {
111 111
             $table = $schema->getTable($tbl);
112 112
 
113 113
             $table->addForeignKeyConstraint($eventTable, ['poll_id'], ['id'], ['onDelete' => 'CASCADE']);
Please login to merge, or discard this patch.