@@ -56,7 +56,7 @@ |
||
| 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.'), |
@@ -90,12 +90,12 @@ |
||
| 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 | } |
@@ -226,7 +226,7 @@ |
||
| 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".'), |
@@ -89,7 +89,7 @@ |
||
| 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 | |
@@ -67,7 +67,7 @@ discard block |
||
| 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 |
||
| 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".'), |
@@ -61,7 +61,7 @@ discard block |
||
| 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 |
||
| 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".'), |