@@ -50,7 +50,7 @@  | 
                                                    ||
| 50 | 50 |      { | 
                                                        
| 51 | 51 | return $this->getCallPipelineBuilder()->build(  | 
                                                        
| 52 | 52 | (  | 
                                                        
| 53 | -            new InterruptibleProcessor(function (MethodCall $method) { | 
                                                        |
| 53 | +            new InterruptibleProcessor(function(MethodCall $method) { | 
                                                        |
| 54 | 54 | return !$method->hasReturn();  | 
                                                        
| 55 | 55 | })  | 
                                                        
| 56 | 56 | )  | 
                                                        
@@ -28,7 +28,7 @@  | 
                                                    ||
| 28 | 28 | */  | 
                                                        
| 29 | 29 | public function setBasePath($path)  | 
                                                        
| 30 | 30 |      { | 
                                                        
| 31 | - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;  | 
                                                        |
| 31 | + $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;  | 
                                                        |
| 32 | 32 | $this->basePath = $path;  | 
                                                        
| 33 | 33 | $this->getFinder()->setPaths($path);  | 
                                                        
| 34 | 34 | return $this;  | 
                                                        
@@ -25,11 +25,11 @@  | 
                                                    ||
| 25 | 25 | $view->getCallPipelineBuilder()->add(new HelpersPipelineStage());  | 
                                                        
| 26 | 26 | HelpersCollection::getInstance()->setEngine($view);  | 
                                                        
| 27 | 27 | |
| 28 | -        $view->addMethod('getHelper', function ($name) { | 
                                                        |
| 28 | +        $view->addMethod('getHelper', function($name) { | 
                                                        |
| 29 | 29 | return HelpersCollection::getInstance()->getHelper($name);  | 
                                                        
| 30 | 30 | });  | 
                                                        
| 31 | 31 | |
| 32 | -        $view->addMethod('hasHelper', function ($name) { | 
                                                        |
| 32 | +        $view->addMethod('hasHelper', function($name) { | 
                                                        |
| 33 | 33 | return HelpersCollection::getInstance()->hasHelper($name);  | 
                                                        
| 34 | 34 | });  | 
                                                        
| 35 | 35 | }  | 
                                                        
@@ -31,6 +31,6 @@  | 
                                                    ||
| 31 | 31 | */  | 
                                                        
| 32 | 32 | public function provides()  | 
                                                        
| 33 | 33 |      { | 
                                                        
| 34 | - return ['view','view.finder'];  | 
                                                        |
| 34 | + return ['view', 'view.finder'];  | 
                                                        |
| 35 | 35 | }  | 
                                                        
| 36 | 36 | }  | 
                                                        
@@ -41,7 +41,7 @@  | 
                                                    ||
| 41 | 41 | return $nameVariation;  | 
                                                        
| 42 | 42 | }  | 
                                                        
| 43 | 43 | }  | 
                                                        
| 44 | - return '\Nip\Helpers\View\\' . $name;  | 
                                                        |
| 44 | + return '\Nip\Helpers\View\\'.$name;  | 
                                                        |
| 45 | 45 | }  | 
                                                        
| 46 | 46 | |
| 47 | 47 | /**  | 
                                                        
@@ -50,7 +50,7 @@  | 
                                                    ||
| 50 | 50 | public function render($block = 'default')  | 
                                                        
| 51 | 51 |      { | 
                                                        
| 52 | 52 |          if (!empty($this->blocks[$block])) { | 
                                                        
| 53 | -            $this->load("/" . $this->blocks[$block]); | 
                                                        |
| 53 | +            $this->load("/".$this->blocks[$block]); | 
                                                        |
| 54 | 54 |          } else { | 
                                                        
| 55 | 55 |              trigger_error("No $block block", E_USER_ERROR); | 
                                                        
| 56 | 56 | }  | 
                                                        
@@ -118,14 +118,14 @@ discard block  | 
                                                    ||
| 118 | 118 | */  | 
                                                        
| 119 | 119 | protected function findInPaths($name, $paths)  | 
                                                        
| 120 | 120 |      { | 
                                                        
| 121 | -        foreach ((array)$paths as $path) { | 
                                                        |
| 121 | +        foreach ((array) $paths as $path) { | 
                                                        |
| 122 | 122 | $file = $this->getViewFilename($name);  | 
                                                        
| 123 | -            if (file_exists($viewPath = $path . '/' . $file)) { | 
                                                        |
| 123 | +            if (file_exists($viewPath = $path.'/'.$file)) { | 
                                                        |
| 124 | 124 | return $viewPath;  | 
                                                        
| 125 | 125 | }  | 
                                                        
| 126 | 126 | }  | 
                                                        
| 127 | 127 | throw new InvalidArgumentException(  | 
                                                        
| 128 | -            'View [' . $name . '] not found in paths [' . implode(', ', $paths) . '].' | 
                                                        |
| 128 | +            'View ['.$name.'] not found in paths ['.implode(', ', $paths).'].' | 
                                                        |
| 129 | 129 | );  | 
                                                        
| 130 | 130 | }  | 
                                                        
| 131 | 131 | |
@@ -137,7 +137,7 @@ discard block  | 
                                                    ||
| 137 | 137 | */  | 
                                                        
| 138 | 138 | protected function getViewFilename($name)  | 
                                                        
| 139 | 139 |      { | 
                                                        
| 140 | - return $name . '.php';  | 
                                                        |
| 140 | + return $name.'.php';  | 
                                                        |
| 141 | 141 | }  | 
                                                        
| 142 | 142 | |
| 143 | 143 | /**  |