@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | protected function initializeNullObject($arguments = null) |
| 139 | 139 | { |
| 140 | - if (! is_object($this->nullObject)) { |
|
| 140 | + if ( ! is_object($this->nullObject)) { |
|
| 141 | 141 | $this->nullObject = new $this->nullObject(...$arguments); |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | protected function initializeFindables($arguments = null) |
| 154 | 154 | { |
| 155 | - $this->findables = $this->findables->map(function ($findable) use ($arguments) { |
|
| 155 | + $this->findables = $this->findables->map(function($findable) use ($arguments) { |
|
| 156 | 156 | return $this->initializeFindable($findable, $arguments); |
| 157 | 157 | }); |
| 158 | 158 | } |
@@ -172,13 +172,13 @@ discard block |
||
| 172 | 172 | { |
| 173 | 173 | $findable = $this->maybeInstantiateFindable($findable, $arguments); |
| 174 | 174 | |
| 175 | - if (! $findable instanceof Findable) { |
|
| 175 | + if ( ! $findable instanceof Findable) { |
|
| 176 | 176 | throw new FailedToInstantiateFindableException( |
| 177 | 177 | sprintf( |
| 178 | 178 | _('Could not instantiate Findable "%s".'), |
| 179 | 179 | serialize($findable) |
| 180 | 180 | ), |
| 181 | - (array)$arguments |
|
| 181 | + (array) $arguments |
|
| 182 | 182 | ); |
| 183 | 183 | } |
| 184 | 184 | |
@@ -189,10 +189,10 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function scanLocations(array $criteria) |
| 191 | 191 | { |
| 192 | - return $this->locations->map(function ($location) use ($criteria) { |
|
| 192 | + return $this->locations->map(function($location) use ($criteria) { |
|
| 193 | 193 | /** @var LocationInterface $location */ |
| 194 | 194 | return $location->getURI($criteria); |
| 195 | - })->filter(function ($uri) { |
|
| 195 | + })->filter(function($uri) { |
|
| 196 | 196 | return false !== $uri; |
| 197 | 197 | })->first() ?: false; |
| 198 | 198 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | $type = $type($uri, $engine); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | - if (! $type instanceof ViewInterface) { |
|
| 249 | + if ( ! $type instanceof ViewInterface) { |
|
| 250 | 250 | throw new FailedToInstantiateViewException( |
| 251 | 251 | sprintf( |
| 252 | 252 | _('Could not instantiate view "%s".'), |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | foreach ($criteria as $entry) { |
| 94 | 94 | if ($uri = $this->transform($entry, false)) { |
| 95 | - $uris = array_merge($uris, (array)$uri); |
|
| 95 | + $uris = array_merge($uris, (array) $uri); |
|
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | protected function validateExtensions($extensions) |
| 112 | 112 | { |
| 113 | - if (! $extensions instanceof ExtensionCollection) { |
|
| 114 | - $extensions = new ExtensionCollection((array)$extensions); |
|
| 113 | + if ( ! $extensions instanceof ExtensionCollection) { |
|
| 114 | + $extensions = new ExtensionCollection((array) $extensions); |
|
| 115 | 115 | } |
| 116 | 116 | $extensions->add(''); |
| 117 | 117 | |
@@ -164,9 +164,9 @@ discard block |
||
| 164 | 164 | { |
| 165 | 165 | $variants = []; |
| 166 | 166 | |
| 167 | - $this->extensions->map(function ($extension) use ($entry, &$variants) { |
|
| 168 | - $variants[] = $entry . $extension; |
|
| 169 | - $variants[] = $this->path . DIRECTORY_SEPARATOR . $entry . $extension; |
|
| 167 | + $this->extensions->map(function($extension) use ($entry, &$variants) { |
|
| 168 | + $variants[] = $entry.$extension; |
|
| 169 | + $variants[] = $this->path.DIRECTORY_SEPARATOR.$entry.$extension; |
|
| 170 | 170 | }); |
| 171 | 171 | |
| 172 | 172 | return $variants; |