@@ -68,7 +68,7 @@ |
||
68 | 68 | foreach ($configurationFiles as $configurationFile) { |
69 | 69 | $loadedFileConfiguration = require $configurationFile; |
70 | 70 | |
71 | - if (! \is_array($loadedFileConfiguration)) { |
|
71 | + if (!\is_array($loadedFileConfiguration)) { |
|
72 | 72 | continue; |
73 | 73 | } |
74 | 74 |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $pluginConfiguration = require $configurationPath; |
119 | 119 | |
120 | - if (! \is_array($pluginConfiguration)) { |
|
120 | + if (!\is_array($pluginConfiguration)) { |
|
121 | 121 | throw InvalidPlugin::configurationMustBeArray($pluginClass, $configurationPath); |
122 | 122 | } |
123 | 123 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | { |
155 | 155 | $routeFile = File::path('src/routes.php'); |
156 | 156 | |
157 | - if (! file_exists($routeFile)) { |
|
157 | + if (!file_exists($routeFile)) { |
|
158 | 158 | return; |
159 | 159 | } |
160 | 160 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | private function setJsonRule(): DynamicFactory |
84 | 84 | { |
85 | - return $this->setRule(JsonVariable::class, function (string $value) { |
|
85 | + return $this->setRule(JsonVariable::class, function(string $value) { |
|
86 | 86 | if (pathinfo($value, PATHINFO_EXTENSION) !== 'json') { |
87 | 87 | return null; |
88 | 88 | } |
@@ -93,14 +93,14 @@ discard block |
||
93 | 93 | |
94 | 94 | private function setYamlRule(): void |
95 | 95 | { |
96 | - $this->setRule(YamlVariable::class, function (string $value) { |
|
97 | - if (! $this->yamlParser) { |
|
96 | + $this->setRule(YamlVariable::class, function(string $value) { |
|
97 | + if (!$this->yamlParser) { |
|
98 | 98 | return null; |
99 | 99 | } |
100 | 100 | |
101 | 101 | $extension = pathinfo($value, PATHINFO_EXTENSION); |
102 | 102 | |
103 | - if (! \in_array($extension, ['yaml', 'yml'])) { |
|
103 | + if (!\in_array($extension, ['yaml', 'yml'])) { |
|
104 | 104 | return null; |
105 | 105 | } |
106 | 106 | |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | |
111 | 111 | private function setMarkdownRule(): void |
112 | 112 | { |
113 | - $this->setRule(MarkdownVariable::class, function (string $value) { |
|
114 | - if (! $this->markdownParser) { |
|
113 | + $this->setRule(MarkdownVariable::class, function(string $value) { |
|
114 | + if (!$this->markdownParser) { |
|
115 | 115 | return null; |
116 | 116 | } |
117 | 117 | |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | |
126 | 126 | private function setImageRule(): void |
127 | 127 | { |
128 | - $this->setRule(ImageVariable::class, function ($value) { |
|
129 | - if (! $this->imageParser) { |
|
128 | + $this->setRule(ImageVariable::class, function($value) { |
|
129 | + if (!$this->imageParser) { |
|
130 | 130 | return null; |
131 | 131 | } |
132 | 132 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | $extension = pathinfo($srcPath, PATHINFO_EXTENSION); |
136 | 136 | |
137 | - if (! \in_array($extension, ['jpeg', 'jpg', 'png', 'gif'])) { |
|
137 | + if (!\in_array($extension, ['jpeg', 'jpg', 'png', 'gif'])) { |
|
138 | 138 | return null; |
139 | 139 | } |
140 | 140 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $adapterConfiguration |
68 | 68 | ); |
69 | 69 | |
70 | - if (! $adapter) { |
|
70 | + if (!$adapter) { |
|
71 | 71 | throw InvalidConfiguration::adapterNotFound($adapterType); |
72 | 72 | } |
73 | 73 |