Passed
Push — master ( f163b8...4a90f2 )
by Jan
06:10
created
src/Services/Trees/TreeViewGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             }
141 141
         }
142 142
 
143
-        if ($mode === 'list_parts_root' ||$mode === 'devices') {
143
+        if ($mode === 'list_parts_root' || $mode === 'devices') {
144 144
             $root_node = new TreeViewNode($this->translator->trans('tree.root_node.text'), null, $generic);
145 145
             $root_node->setExpanded(true);
146 146
             $generic = [$root_node];
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $secure_class_name = str_replace('\\', '_', $class);
180 180
         $key = 'treeview_'.$this->keyGenerator->generateKey().'_'.$secure_class_name;
181 181
 
182
-        return $this->cache->get($key, function (ItemInterface $item) use ($repo, $parent, $secure_class_name) {
182
+        return $this->cache->get($key, function(ItemInterface $item) use ($repo, $parent, $secure_class_name) {
183 183
             // Invalidate when groups, a element with the class or the user changes
184 184
             $item->tag(['groups', 'tree_treeview', $this->keyGenerator->generateKey(), $secure_class_name]);
185 185
 
Please login to merge, or discard this patch.
src/Doctrine/Purger/ResetAutoIncrementORMPurger.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -140,13 +140,13 @@  discard block
 block discarded – undo
140 140
         $schemaAssetsFilter = method_exists($connection->getConfiguration(), 'getSchemaAssetsFilter') ? $connection->getConfiguration()->getSchemaAssetsFilter() : null;
141 141
 
142 142
         //Disable foreign key checks
143
-        if($platform->getName() === 'mysql') {
143
+        if ($platform->getName() === 'mysql') {
144 144
             $connection->executeQuery('SET foreign_key_checks = 0;');
145 145
         }
146 146
 
147 147
         foreach ($orderedTables as $tbl) {
148 148
             // If we have a filter expression, check it and skip if necessary
149
-            if (! $emptyFilterExpression && ! preg_match($filterExpr, $tbl)) {
149
+            if (!$emptyFilterExpression && !preg_match($filterExpr, $tbl)) {
150 150
                 continue;
151 151
             }
152 152
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             }
157 157
 
158 158
             // Support schema asset filters as presented in
159
-            if (is_callable($schemaAssetsFilter) && ! $schemaAssetsFilter($tbl)) {
159
+            if (is_callable($schemaAssetsFilter) && !$schemaAssetsFilter($tbl)) {
160 160
                 continue;
161 161
             }
162 162
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         }
175 175
 
176 176
         //Reenable foreign key checks
177
-        if($platform->getName() === 'mysql') {
177
+        if ($platform->getName() === 'mysql') {
178 178
             $connection->executeQuery('SET foreign_key_checks = 1;');
179 179
         }
180 180
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     {
184 184
         $tableIdentifier = new Identifier($tableName);
185 185
 
186
-        return 'ALTER TABLE '. $tableIdentifier->getQuotedName($platform) .' AUTO_INCREMENT = 1;';
186
+        return 'ALTER TABLE '.$tableIdentifier->getQuotedName($platform).' AUTO_INCREMENT = 1;';
187 187
     }
188 188
 
189 189
     /**
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $sorter = new TopologicalSorter();
197 197
 
198 198
         foreach ($classes as $class) {
199
-            if (! $sorter->hasNode($class->name)) {
199
+            if (!$sorter->hasNode($class->name)) {
200 200
                 $sorter->addNode($class->name, $class);
201 201
             }
202 202
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 $parentClass     = $em->getClassMetadata($parentClass);
206 206
                 $parentClassName = $parentClass->getName();
207 207
 
208
-                if (! $sorter->hasNode($parentClassName)) {
208
+                if (!$sorter->hasNode($parentClassName)) {
209 209
                     $sorter->addNode($parentClassName, $parentClass);
210 210
                 }
211 211
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             }
214 214
 
215 215
             foreach ($class->associationMappings as $assoc) {
216
-                if (! $assoc['isOwningSide']) {
216
+                if (!$assoc['isOwningSide']) {
217 217
                     continue;
218 218
                 }
219 219
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 assert($targetClass instanceof ClassMetadata);
222 222
                 $targetClassName = $targetClass->getName();
223 223
 
224
-                if (! $sorter->hasNode($targetClassName)) {
224
+                if (!$sorter->hasNode($targetClassName)) {
225 225
                     $sorter->addNode($targetClassName, $targetClass);
226 226
                 }
227 227
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                     $parentClass     = $em->getClassMetadata($parentClass);
234 234
                     $parentClassName = $parentClass->getName();
235 235
 
236
-                    if (! $sorter->hasNode($parentClassName)) {
236
+                    if (!$sorter->hasNode($parentClassName)) {
237 237
                         $sorter->addNode($parentClassName, $parentClass);
238 238
                     }
239 239
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         foreach ($classes as $class) {
258 258
             foreach ($class->associationMappings as $assoc) {
259
-                if (! $assoc['isOwningSide'] || $assoc['type'] !== ClassMetadata::MANY_TO_MANY) {
259
+                if (!$assoc['isOwningSide'] || $assoc['type'] !== ClassMetadata::MANY_TO_MANY) {
260 260
                     continue;
261 261
                 }
262 262
 
@@ -269,8 +269,8 @@  discard block
 block discarded – undo
269 269
 
270 270
     private function getTableName(ClassMetadata $class, AbstractPlatform $platform): string
271 271
     {
272
-        if (isset($class->table['schema']) && ! method_exists($class, 'getSchemaName')) {
273
-            return $class->table['schema'] . '.' . $this->em->getConfiguration()->getQuoteStrategy()->getTableName($class, $platform);
272
+        if (isset($class->table['schema']) && !method_exists($class, 'getSchemaName')) {
273
+            return $class->table['schema'].'.'.$this->em->getConfiguration()->getQuoteStrategy()->getTableName($class, $platform);
274 274
         }
275 275
 
276 276
         return $this->em->getConfiguration()->getQuoteStrategy()->getTableName($class, $platform);
@@ -284,8 +284,8 @@  discard block
 block discarded – undo
284 284
         ClassMetadata $class,
285 285
         AbstractPlatform $platform
286 286
     ): string {
287
-        if (isset($assoc['joinTable']['schema']) && ! method_exists($class, 'getSchemaName')) {
288
-            return $assoc['joinTable']['schema'] . '.' . $this->em->getConfiguration()->getQuoteStrategy()->getJoinTableName($assoc, $class, $platform);
287
+        if (isset($assoc['joinTable']['schema']) && !method_exists($class, 'getSchemaName')) {
288
+            return $assoc['joinTable']['schema'].'.'.$this->em->getConfiguration()->getQuoteStrategy()->getJoinTableName($assoc, $class, $platform);
289 289
         }
290 290
 
291 291
         return $this->em->getConfiguration()->getQuoteStrategy()->getJoinTableName($assoc, $class, $platform);
@@ -295,6 +295,6 @@  discard block
 block discarded – undo
295 295
     {
296 296
         $tableIdentifier = new Identifier($tableName);
297 297
 
298
-        return 'DELETE FROM ' . $tableIdentifier->getQuotedName($platform);
298
+        return 'DELETE FROM '.$tableIdentifier->getQuotedName($platform);
299 299
     }
300 300
 }
Please login to merge, or discard this patch.