Completed
Pull Request — master (#41)
by Vladimir
02:35
created
src/allejo/stakx/Manager/PageManager.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,9 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function parsePageViews ($pageViewFolders)
111 111
     {
112
-        if (empty($pageViewFolders)) { return; }
112
+        if (empty($pageViewFolders))
113
+        {
114
+return; }
113 115
 
114 116
         foreach ($pageViewFolders as $pageViewFolderName)
115 117
         {
@@ -175,7 +177,9 @@  discard block
 block discarded – undo
175 177
      */
176 178
     private function handleTrackableStaticPageView (&$pageView)
177 179
     {
178
-        if (empty($pageView['title'])) { return; }
180
+        if (empty($pageView['title']))
181
+        {
182
+return; }
179 183
 
180 184
         $this->staticPages[$pageView['title']] = &$pageView;
181 185
     }
Please login to merge, or discard this patch.
src/allejo/stakx/System/FileExplorer.php 1 patch
Braces   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,11 +143,17 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function matchesPattern ($filePath)
145 145
     {
146
-        if (self::strpos_array($filePath, $this->includes)) { return true; }
147
-        if (($this->flags & self::INCLUDE_ONLY_FILES) && !$this->current()->isDir()) { return false; }
146
+        if (self::strpos_array($filePath, $this->includes))
147
+        {
148
+return true; }
149
+        if (($this->flags & self::INCLUDE_ONLY_FILES) && !$this->current()->isDir())
150
+        {
151
+return false; }
148 152
 
149 153
         if (!($this->flags & self::ALLOW_DOT_FILES) &&
150
-            preg_match('#(^|\\\\|\/)\..+(\\\\|\/|$)#', $filePath) === 1) { return false; }
154
+            preg_match('#(^|\\\\|\/)\..+(\\\\|\/|$)#', $filePath) === 1)
155
+        {
156
+return false; }
151 157
 
152 158
         return (self::strpos_array($filePath, $this->excludes) === false);
153 159
     }
@@ -193,10 +199,13 @@  discard block
 block discarded – undo
193 199
                 return true;
194 200
             }
195 201
 
196
-            if (strpos($haystack, $query, $offset) !== false) // stop on first true result
202
+            if (strpos($haystack, $query, $offset) !== false)
203
+            {
204
+                // stop on first true result
197 205
             {
198 206
                 return true;
199 207
             }
208
+            }
200 209
         }
201 210
 
202 211
         return false;
Please login to merge, or discard this patch.