@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -124,12 +124,12 @@ discard block |
||
| 124 | 124 | { |
| 125 | 125 | $names = []; |
| 126 | 126 | |
| 127 | - $names[] = array_map(function ($criterion) use ($extension) { |
|
| 127 | + $names[] = array_map(function($criterion) use ($extension) { |
|
| 128 | 128 | $criterion = URIHelper::getFilename($criterion); |
| 129 | 129 | |
| 130 | 130 | return empty($extension) || URIHelper::hasExtension($criterion, $extension) |
| 131 | 131 | ? $criterion |
| 132 | - : $criterion . $extension; |
|
| 132 | + : $criterion.$extension; |
|
| 133 | 133 | }, $criteria)[0]; |
| 134 | 134 | |
| 135 | 135 | return $this->arrayToRegexPattern(array_unique($names)); |
@@ -158,11 +158,11 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | protected function arrayToRegexPattern(array $array): string |
| 160 | 160 | { |
| 161 | - $array = array_map(function ($entry) { |
|
| 161 | + $array = array_map(function($entry) { |
|
| 162 | 162 | return preg_quote($entry); |
| 163 | 163 | }, $array); |
| 164 | 164 | |
| 165 | - return '/' . implode('|', $array) . '/'; |
|
| 165 | + return '/'.implode('|', $array).'/'; |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | /** |
@@ -180,8 +180,8 @@ discard block |
||
| 180 | 180 | $extensions = new Extensions(['']); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - if (! $extensions instanceof Extensions) { |
|
| 184 | - $extensions = new Extensions((array)$extensions); |
|
| 183 | + if ( ! $extensions instanceof Extensions) { |
|
| 184 | + $extensions = new Extensions((array) $extensions); |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | return $extensions; |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function hasLocation(Location $location): bool |
| 55 | 55 | { |
| 56 | - return $this->exists(function ($key, $element) use ($location) { |
|
| 56 | + return $this->exists(function($key, $element) use ($location) { |
|
| 57 | 57 | return $location == $element; |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * Bright Nucleus View Component. |
| 4 | 4 | * |