Completed
Pull Request — devel (#1263)
by
unknown
02:42
created
app/code/community/Nexcessnet/Turpentine/controllers/EsiController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,11 +239,11 @@
 block discarded – undo
239 239
         // Add ignore attribute to all nodes that don't need to be generated
240 240
         foreach ($layout->getNode() as $node) {
241 241
             $attributes = $node->attributes();
242
-            if ((bool)$attributes->ignore) {
242
+            if ((bool) $attributes->ignore) {
243 243
                 continue;
244
-            } elseif ($node->getName() == 'block' && !in_array($attributes->name, $globalBlocks)) {
244
+            } elseif ($node->getName() == 'block' && ! in_array($attributes->name, $globalBlocks)) {
245 245
                 $node->addAttribute('ignore', true);
246
-            } elseif ($node->getName() == 'reference' && !in_array($attributes->name, $nodesToGenerate)) {
246
+            } elseif ($node->getName() == 'reference' && ! in_array($attributes->name, $nodesToGenerate)) {
247 247
                 $node->addAttribute('ignore', true);
248 248
             }
249 249
         }
Please login to merge, or discard this patch.