Passed
Push — master ( 497e2b...a46ae4 )
by Alain
02:30
created
src/View/Engine/EngineFinder.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $engine = $this->initializeEngine($engine);
62 62
         }
63 63
 
64
-        if (! is_object($this->nullObject)) {
64
+        if ( ! is_object($this->nullObject)) {
65 65
             $this->nullObject = new $this->nullObject();
66 66
         }
67 67
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $engine = $engine();
87 87
         }
88 88
 
89
-        if (! $engine instanceof EngineInterface) {
89
+        if ( ! $engine instanceof EngineInterface) {
90 90
             throw new FailedToInstantiateEngineException(
91 91
                 sprintf(
92 92
                     _('Could not instantiate engine "%s".'),
Please login to merge, or discard this patch.
src/View/View/ViewFinder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      *
78 78
      * @since 0.1.0
79 79
      *
80
-     * @param mixed           $view   View to instantiate.
80
+     * @param \BrightNucleus\View\Support\Findable           $view   View to instantiate.
81 81
      * @param string          $uri    URI to use for the view.
82 82
      * @param EngineInterface $engine Optional. Engine to use with the view.
83 83
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $view = $this->initializeView($view, $uri, $engine);
68 68
         }
69 69
 
70
-        if (! is_object($this->nullObject)) {
70
+        if ( ! is_object($this->nullObject)) {
71 71
             $this->nullObject = new $this->nullObject();
72 72
         }
73 73
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             $view = $view($uri, $engine);
95 95
         }
96 96
 
97
-        if (! $view instanceof ViewInterface) {
97
+        if ( ! $view instanceof ViewInterface) {
98 98
             throw new FailedToInstantiateViewException(
99 99
                 sprintf(
100 100
                     _('Could not instantiate view "%s".'),
Please login to merge, or discard this patch.