@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | public function resolve(string $pluginAlias): object|null |
21 | 21 | { |
22 | 22 | foreach ($this->kernel->plugins() as $plugin) { |
23 | - if($this->getPluginName($plugin) === $pluginAlias) { |
|
23 | + if ($this->getPluginName($plugin) === $pluginAlias) { |
|
24 | 24 | return $plugin; |
25 | 25 | } |
26 | 26 | } |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | protected function getPluginName(object $plugin): string |
37 | 37 | { |
38 | 38 | // TODO: Create interface for plugin naming |
39 | - if(method_exists($plugin, 'name')) { |
|
39 | + if (method_exists($plugin, 'name')) { |
|
40 | 40 | return $plugin->name(); |
41 | 41 | } |
42 | 42 | |
43 | 43 | $pluginName = get_class($plugin); |
44 | - if(class_exists($pluginName)) { |
|
44 | + if (class_exists($pluginName)) { |
|
45 | 45 | $exploded = explode('\\', $pluginName); |
46 | 46 | return array_pop($exploded); |
47 | 47 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function resolve(string $pluginAlias): object|null |
22 | 22 | { |
23 | - if(in_array($pluginAlias, $this->cache)) { |
|
23 | + if (in_array($pluginAlias, $this->cache)) { |
|
24 | 24 | return $this->cache[$pluginAlias]; |
25 | 25 | } |
26 | 26 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function resolve(string $relative): string |
26 | 26 | { |
27 | - if(!array_key_exists($relative, $this->cache)) { |
|
27 | + if (!array_key_exists($relative, $this->cache)) { |
|
28 | 28 | $this->cache[$relative] = $this->pathResolver->resolve($relative); |
29 | 29 | } |
30 | 30 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function resolve(string $relative): string |
22 | 22 | { |
23 | - if(!str_starts_with($relative, '@')) { |
|
23 | + if (!str_starts_with($relative, '@')) { |
|
24 | 24 | return $relative; |
25 | 25 | } |
26 | 26 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function provideDependencies(Container $container): void |
23 | 23 | { |
24 | - $container->register(ConfigurationHelperFacadeInterface::class, function (AppKernelInterface $kernel) { |
|
24 | + $container->register(ConfigurationHelperFacadeInterface::class, function(AppKernelInterface $kernel) { |
|
25 | 25 | return $this->createFacade($kernel); |
26 | 26 | }); |
27 | 27 | } |