@@ -80,7 +80,7 @@ discard block |
||
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 |
||
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']); |