@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function match(string $templateName): false|string |
44 | 44 | { |
45 | - if (! is_readable($this->configPath)) { |
|
45 | + if (!is_readable($this->configPath)) { |
|
46 | 46 | return false; |
47 | 47 | } |
48 | 48 | |
49 | 49 | $jsonData = json_decode(file_get_contents($this->configPath), true); |
50 | - if (json_last_error() !== JSON_ERROR_NONE || ! is_array($jsonData)) { |
|
50 | + if (json_last_error() !== JSON_ERROR_NONE || !is_array($jsonData)) { |
|
51 | 51 | throw new RuntimeException("Could not parse json configuration \"$this->configPath\"."); |
52 | 52 | } |
53 | 53 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function getPaths(array $configData, string $templateName): false|string |
61 | 61 | { |
62 | - if (! isset($configData['templatepath']) || ! is_array($configData['templatepath'])) { |
|
62 | + if (!isset($configData['templatepath']) || !is_array($configData['templatepath'])) { |
|
63 | 63 | return false; |
64 | 64 | } |
65 | 65 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | protected function getMostRelatedPath(array $filteredProjects, string $templateName): false|string |
106 | 106 | { |
107 | - uksort($filteredProjects, function ($a, $b) { |
|
107 | + uksort($filteredProjects, function($a, $b) { |
|
108 | 108 | $strlenA = strlen($a); |
109 | 109 | $strlenB = strlen($b); |
110 | 110 |