Passed
Push — master ( 050f56...e249f1 )
by Alain
02:43
created
src/View/View/ViewFinder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             $view = $view($uri, $engine);
68 68
         }
69 69
 
70
-        if (! $view instanceof ViewInterface) {
70
+        if ( ! $view instanceof ViewInterface) {
71 71
             throw new FailedToInstantiateViewException(
72 72
                 sprintf(
73 73
                     _('Could not instantiate view "%s".'),
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      *
74 74
      * @since 0.1.0
75 75
      *
76
-     * @param mixed                $view   View to instantiate.
76
+     * @param \BrightNucleus\View\Support\Findable                $view   View to instantiate.
77 77
      * @param string               $uri    URI to use for the view.
78 78
      * @param EngineInterface|null $engine Optional. Engine to use with the view.
79 79
      *
Please login to merge, or discard this patch.
src/View/Engine/PHPEngine.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
      */
57 57
     public function render($uri, array $context = [])
58 58
     {
59
-        if (! is_readable($uri)) {
59
+        if ( ! is_readable($uri)) {
60 60
             throw new FailedToLoadViewException(
61 61
                 sprintf(
62 62
                     _('The View URI "%1$s" is not accessible or readable.'),
Please login to merge, or discard this patch.
src/View/Engine/EngineFinder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             $engine = $engine();
86 86
         }
87 87
 
88
-        if (! $engine instanceof EngineInterface) {
88
+        if ( ! $engine instanceof EngineInterface) {
89 89
             throw new FailedToInstantiateEngineException(
90 90
                 sprintf(
91 91
                     _('Could not instantiate engine "%s".'),
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      *
72 72
      * @since 0.1.0
73 73
      *
74
-     * @param mixed $engine Engine to instantiate.
74
+     * @param \BrightNucleus\View\Support\Findable $engine Engine to instantiate.
75 75
      *
76 76
      * @return EngineInterface Instantiated engine.
77 77
      * @throws FailedToInstantiateEngineException If the engine could not be instantiated.
Please login to merge, or discard this patch.
src/View/Location/FilesystemLocation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,12 +90,12 @@
 block discarded – undo
90 90
         try {
91 91
             foreach ($this->extensions as $extension) {
92 92
 
93
-                $uri = $entry . $extension;
93
+                $uri = $entry.$extension;
94 94
                 if (is_readable($uri)) {
95 95
                     return $uri;
96 96
                 }
97 97
 
98
-                $uri = $this->path . DIRECTORY_SEPARATOR . $uri;
98
+                $uri = $this->path.DIRECTORY_SEPARATOR.$uri;
99 99
                 if (is_readable($uri)) {
100 100
                     return $uri;
101 101
                 }
Please login to merge, or discard this patch.
src/View/ViewBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
             $type = $type($uri, $engine);
227 227
         }
228 228
 
229
-        if (! $type instanceof ViewInterface) {
229
+        if ( ! $type instanceof ViewInterface) {
230 230
             throw new FailedToInstantiateViewException(
231 231
                 sprintf(
232 232
                     _('Could not instantiate view "%s".'),
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @since 0.1.0
92 92
      *
93 93
      * @param string $view View identifier to create a view for.
94
-     * @param mixed  $type Type of view to create.
94
+     * @param string|null  $type Type of view to create.
95 95
      *
96 96
      * @return ViewInterface Instance of the requested view.
97 97
      */
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      *
191 191
      * @since 0.1.0
192 192
      *
193
-     * @param array $criteria Criteria to match.
193
+     * @param string[] $criteria Criteria to match.
194 194
      *
195 195
      * @return string|false URI of the requested view, or false if not found.
196 196
      */
Please login to merge, or discard this patch.
src/View.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
      */
90 90
     public static function getDefaultConfig()
91 91
     {
92
-        return ConfigFactory::create(__DIR__ . '/../config/defaults.php')
92
+        return ConfigFactory::create(__DIR__.'/../config/defaults.php')
93 93
                             ->getSubConfig('BrightNucleus\View');
94 94
     }
95 95
 
Please login to merge, or discard this patch.
src/View/Support/AbstractFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      */
147 147
     protected function initializeNullObject()
148 148
     {
149
-        if (! is_object($this->nullObject)) {
149
+        if ( ! is_object($this->nullObject)) {
150 150
             $this->nullObject = new $this->nullObject();
151 151
         }
152 152
     }
Please login to merge, or discard this patch.
src/View/View/NullView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function render(array $context = [], $echo = false)
38 38
     {
39
-        if (! $echo) {
39
+        if ( ! $echo) {
40 40
             return '';
41 41
         }
42 42
     }
Please login to merge, or discard this patch.