@@ -15,7 +15,7 @@  | 
                                                    ||
| 15 | 15 | /** @var PageView */  | 
                                                        
| 16 | 16 | private $siteMenu;  | 
                                                        
| 17 | 17 | |
| 18 | - public function __construct()  | 
                                                        |
| 18 | + public function __construct ()  | 
                                                        |
| 19 | 19 |      { | 
                                                        
| 20 | 20 | parent::__construct();  | 
                                                        
| 21 | 21 | |
@@ -41,7 +41,7 @@  | 
                                                    ||
| 41 | 41 | /** @var Twig_Environment */  | 
                                                        
| 42 | 42 | private $twig;  | 
                                                        
| 43 | 43 | |
| 44 | - public function __construct()  | 
                                                        |
| 44 | + public function __construct ()  | 
                                                        |
| 45 | 45 |      { | 
                                                        
| 46 | 46 | parent::__construct();  | 
                                                        
| 47 | 47 | |
@@ -64,7 +64,7 @@  | 
                                                    ||
| 64 | 64 | * Get all of the PageViews tracked by this manager  | 
                                                        
| 65 | 65 | *  | 
                                                        
| 66 | 66 | * @since 0.1.0  | 
                                                        
| 67 | - * @return PageView[][]  | 
                                                        |
| 67 | + * @return PageView[]  | 
                                                        |
| 68 | 68 | */  | 
                                                        
| 69 | 69 | public function getAllPageViews ()  | 
                                                        
| 70 | 70 |      { | 
                                                        
@@ -32,7 +32,7 @@  | 
                                                    ||
| 32 | 32 | /**  | 
                                                        
| 33 | 33 | * PageManager constructor  | 
                                                        
| 34 | 34 | */  | 
                                                        
| 35 | - public function __construct()  | 
                                                        |
| 35 | + public function __construct ()  | 
                                                        |
| 36 | 36 |      { | 
                                                        
| 37 | 37 | parent::__construct();  | 
                                                        
| 38 | 38 | |
@@ -109,7 +109,9 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -154,11 +154,11 @@ discard block  | 
                                                    ||
| 154 | 154 | $twigEnv->configureTwig($this->getConfiguration(), array(  | 
                                                        
| 155 | 155 | 'safe' => $this->safeMode,  | 
                                                        
| 156 | 156 | 'globals' => array(  | 
                                                        
| 157 | -                array('name' => 'site',        'value' => $this->getConfiguration()->getConfiguration()), | 
                                                        |
| 157 | +                array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()), | 
                                                        |
| 158 | 158 |                  array('name' => 'collections', 'value' => $this->cm->getJailedCollections()), | 
                                                        
| 159 | -                array('name' => 'menu',        'value' => $this->mm->getSiteMenu()), | 
                                                        |
| 160 | -                array('name' => 'pages',       'value' => $this->pm->getJailedStaticPageViews()), | 
                                                        |
| 161 | -                array('name' => 'data',        'value' => $this->dm->getDataItems()) | 
                                                        |
| 159 | +                array('name' => 'menu', 'value' => $this->mm->getSiteMenu()), | 
                                                        |
| 160 | +                array('name' => 'pages', 'value' => $this->pm->getJailedStaticPageViews()), | 
                                                        |
| 161 | +                array('name' => 'data', 'value' => $this->dm->getDataItems()) | 
                                                        |
| 162 | 162 | )  | 
                                                        
| 163 | 163 | ));  | 
                                                        
| 164 | 164 | |
@@ -331,7 +331,7 @@ discard block  | 
                                                    ||
| 331 | 331 | /**  | 
                                                        
| 332 | 332 | * @return boolean  | 
                                                        
| 333 | 333 | */  | 
                                                        
| 334 | - public function isNoClean()  | 
                                                        |
| 334 | + public function isNoClean ()  | 
                                                        |
| 335 | 335 |      { | 
                                                        
| 336 | 336 | return $this->noClean;  | 
                                                        
| 337 | 337 | }  | 
                                                        
@@ -339,7 +339,7 @@ discard block  | 
                                                    ||
| 339 | 339 | /**  | 
                                                        
| 340 | 340 | * @param boolean $noClean  | 
                                                        
| 341 | 341 | */  | 
                                                        
| 342 | - public function setNoClean($noClean)  | 
                                                        |
| 342 | + public function setNoClean ($noClean)  | 
                                                        |
| 343 | 343 |      { | 
                                                        
| 344 | 344 | $this->noClean = $noClean;  | 
                                                        
| 345 | 345 | }  | 
                                                        
@@ -143,11 +143,17 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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;  | 
                                                        
@@ -11,7 +11,7 @@  | 
                                                    ||
| 11 | 11 |  { | 
                                                        
| 12 | 12 | public static $output = '';  | 
                                                        
| 13 | 13 | |
| 14 | - public function filter($in, $out, &$consumed, $closing)  | 
                                                        |
| 14 | + public function filter ($in, $out, &$consumed, $closing)  | 
                                                        |
| 15 | 15 |      { | 
                                                        
| 16 | 16 | while ($bucket = stream_bucket_make_writeable($in))  | 
                                                        
| 17 | 17 |          { | 
                                                        
@@ -36,7 +36,7 @@  | 
                                                    ||
| 36 | 36 | */  | 
                                                        
| 37 | 37 | protected $fs;  | 
                                                        
| 38 | 38 | |
| 39 | - public function setUp()  | 
                                                        |
| 39 | + public function setUp ()  | 
                                                        |
| 40 | 40 |      { | 
                                                        
| 41 | 41 |          $this->dummyFile = vfsStream::newFile('stakx.html.twig'); | 
                                                        
| 42 | 42 | $this->rootDir = vfsStream::setup();  |