Passed
Push — master ( 957889...d2fe6b )
by Karel
08:00
created
src/Chuck/PageBlockRepository.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     $newbody = str_replace('[LOOP=' . $repeater_slug . ']' . $repeater_body . '[/LOOP]', $this->getRepeaterContents($repeater_slug, $repeater_body), $body);
55 55
 
56 56
                 // THERE IS NO LOOP, CONTINUE
57
-                }elseif (strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
57
+                } elseif (strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
58 58
                     $form_slug = implode(" ", $this->getResources($body, '[FORM=', ']'));
59 59
                     
60 60
                     $newbody = $this->getFormHtml($form_slug, $body);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 $newbody = str_replace('[LOOP=' . $repeater_slug . ']' . $repeater_body . '[/LOOP]', $this->getRepeaterContents($repeater_slug, $repeater_body), $body);
104 104
 
105 105
             // THERE IS NO LOOP, CONTINUE
106
-            }elseif (strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
106
+            } elseif (strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
107 107
                 $form_slug = implode(" ", $this->getResources($body, '[FORM=', ']'));
108 108
                 
109 109
                 $newbody = $this->getFormHtml($form_slug, $body);
Please login to merge, or discard this patch.
src/Controllers/PageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,8 +154,7 @@
 block discarded – undo
154 154
             if (!in_array($value, array(".", ".."))) { 
155 155
                 if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) { 
156 156
                     $result[$value] = $this->dirToArray($dir . DIRECTORY_SEPARATOR . $value); 
157
-                } 
158
-                else { 
157
+                } else { 
159 158
                     if ($value !== '.DS_Store' && (strpos($value, '.html') !== false)) {
160 159
                         $blockKey = str_replace('.html', '', $value);
161 160
                         $blockName = str_replace('-', ' ', $blockKey);
Please login to merge, or discard this patch.