Passed
Push — master ( 11e596...ed648f )
by Gabriel
13:25
created
src/Traits/HasHelpersTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
      */
68 68
     public function getHelperClass($name)
69 69
     {
70
-        return '\Nip\Helpers\View\\' . $name;
70
+        return '\Nip\Helpers\View\\'.$name;
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function initBasePath()
28 28
     {
29
-        $this->setBasePath(MODULES_PATH . Request::instance()->getModuleName() . '/views/');
29
+        $this->setBasePath(MODULES_PATH.Request::instance()->getModuleName().'/views/');
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Helpers/HelpersFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 return $nameVariation;
41 41
             }
42 42
         }
43
-        return '\Nip\Helpers\View\\' . $name;
43
+        return '\Nip\Helpers\View\\'.$name;
44 44
     }
45 45
 
46 46
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public static function getHelperClassVariations($name)
51 51
     {
52 52
         return [
53
-            '\Nip\View\Helpers\\' . $name . 'Helper',
53
+            '\Nip\View\Helpers\\'.$name.'Helper',
54 54
         ];
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Traits/ModuleView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $reflector = new ReflectionClass(get_class($this));
44 44
         $dirName = dirname($reflector->getFileName());
45 45
 
46
-        return dirname(dirname($dirName)) . DIRECTORY_SEPARATOR . "views" . DIRECTORY_SEPARATOR;
46
+        return dirname(dirname($dirName)).DIRECTORY_SEPARATOR."views".DIRECTORY_SEPARATOR;
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
src/XLS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function initBasePath()
11 11
     {
12
-        $this->setBasePath(MODULES_PATH . Request::instance()->getModuleName() . '/views/');
12
+        $this->setBasePath(MODULES_PATH.Request::instance()->getModuleName().'/views/');
13 13
     }
14 14
 
15 15
     public function output($view, $name)
Please login to merge, or discard this patch.
src/ResolveTemplatePath/ThemeFolderResolveTemplatePath.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
      */
216 216
     protected function findInPaths($name, $paths)
217 217
     {
218
-        foreach ((array)$paths as $path) {
218
+        foreach ((array) $paths as $path) {
219 219
             $file = $this->getViewFilename($name);
220
-            $viewPath = $path . '/' . $file;
220
+            $viewPath = $path.'/'.$file;
221 221
             if (file_exists($viewPath)) {
222 222
                 return $viewPath;
223 223
             }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         throw new TemplateNotFound(
226 226
             $name,
227 227
             $paths,
228
-            'View [' . $name . '] not found in paths [' . implode(', ', $paths) . '].'
228
+            'View ['.$name.'] not found in paths ['.implode(', ', $paths).'].'
229 229
         );
230 230
     }
231 231
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     protected function getViewFilename($name)
239 239
     {
240
-        return $name . '.php';
240
+        return $name.'.php';
241 241
     }
242 242
 
243 243
     /**
Please login to merge, or discard this patch.
src/Traits/CanRenderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     public function render($name, array $data = [])
90 90
     {
91 91
         if ($this->isBlock($name)) {
92
-            $name = "/" . $this->blocks[$name];
92
+            $name = "/".$this->blocks[$name];
93 93
         }
94 94
         return parent::render($name, $data);
95 95
     }
Please login to merge, or discard this patch.
src/Traits/HasPathsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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->setDirectory($path);
33 33
         $this->getResolveTemplatePath()->prependPath($path);
34 34
         return $this;
Please login to merge, or discard this patch.
src/Extensions/Helpers/HasHelpersTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         if ($this->hasHelper($name) === false) {
57 57
             return;
58 58
         }
59
-        $this->registerFunction($name, function () use ($name) {
59
+        $this->registerFunction($name, function() use ($name) {
60 60
             return $this->getHelper($name);
61 61
         });
62 62
     }
Please login to merge, or discard this patch.