Test Failed
Branch master (de3440)
by Stanislau
12:49
created
Category
src/Business/Plugin/PluginClassResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Business/Plugin/PluginClassResolverCacheDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Business/Path/PathResolverCacheDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Business/Path/PathResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ConfigurationHelperPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.