Test Failed
Branch master (35cf5b)
by Stanislau
12:48
created
Category
src/LocatorPluginConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function getCacheDir(): string
16 16
     {
17 17
         $dir = $this->configuration->get(self::CFG_CACHE_DIR, null);
18
-        if(!$dir) {
18
+        if (!$dir) {
19 19
             return $this->getDefaultCacheDir();
20 20
         }
21 21
     }
Please login to merge, or discard this patch.
src/Locator/Locator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $isInterface = interface_exists($classOrInterfaceName);
25 25
 
26
-        if(!$isInterface && !class_exists($classOrInterfaceName)) {
26
+        if (!$isInterface && !class_exists($classOrInterfaceName)) {
27 27
             return;
28 28
         }
29 29
 
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
             foreach ($this->getPluginClasses($reflection) as $pluginInternalClassName) {
33 33
                 $pluginClassReflection = $this->createReflectionClass($pluginInternalClassName);
34 34
 
35
-                if($isInterface) {
36
-                    if(!in_array($classOrInterfaceName, $pluginClassReflection->getInterfaceNames())) {
35
+                if ($isInterface) {
36
+                    if (!in_array($classOrInterfaceName, $pluginClassReflection->getInterfaceNames())) {
37 37
                         continue;
38 38
                     }
39 39
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                     continue;
43 43
                 }
44 44
 
45
-                if(!$pluginClassReflection->isSubclassOf($classOrInterfaceName)) {
45
+                if (!$pluginClassReflection->isSubclassOf($classOrInterfaceName)) {
46 46
                     continue;
47 47
                 }
48 48
 
Please login to merge, or discard this patch.
src/Locator/LocatorCached.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 lookup(string $classOrInterfaceName): \Generator
23 23
     {
24
-        if(array_key_exists($classOrInterfaceName, $this->results)) {
24
+        if (array_key_exists($classOrInterfaceName, $this->results)) {
25 25
             return $this->results[$classOrInterfaceName];
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/LocatorPlugin.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 provideDependencies(Container $container): void
26 26
     {
27
-        $container->register(LocatorFacadeInterface::class, function (
27
+        $container->register(LocatorFacadeInterface::class, function(
28 28
             AppKernelInterface $kernel
29 29
         ) {
30 30
             $this->kernel = $kernel;
Please login to merge, or discard this patch.