Passed
Push — master ( 864c6d...2d2b72 )
by Thomas Mauro
25:15 queued 10:42
created
src/DIFactory/Checker/HeaderCheckerManagerFactoryFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $factory = new HeaderCheckerManagerFactory();
27 27
 
28 28
         foreach ($checkers as $alias => $checker) {
29
-            if (! \is_string($alias)) {
29
+            if (!\is_string($alias)) {
30 30
                 throw new InvalidArgumentException('Invalid alias for header checker');
31 31
             }
32 32
 
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
      */
49 49
     private function getCheckers(ContainerInterface $container, array $checkers): array
50 50
     {
51
-        return \array_map(static function ($checker) use ($container) {
51
+        return \array_map(static function($checker) use ($container) {
52 52
             if ($checker instanceof HeaderChecker) {
53 53
                 return $checker;
54 54
             }
55 55
 
56 56
             $checkerInstance = $container->get($checker);
57 57
 
58
-            if (! $checkerInstance instanceof HeaderChecker) {
58
+            if (!$checkerInstance instanceof HeaderChecker) {
59 59
                 throw new InvalidArgumentException('Invalid header checker');
60 60
             }
61 61
 
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
      */
72 72
     private function getTokenType(ContainerInterface $container, array $tokenTypes): array
73 73
     {
74
-        return \array_map(static function ($tokenType) use ($container) {
74
+        return \array_map(static function($tokenType) use ($container) {
75 75
             if ($tokenType instanceof TokenTypeSupport) {
76 76
                 return $tokenType;
77 77
             }
78 78
 
79 79
             $tokenType = $container->get($tokenType);
80 80
 
81
-            if (! $tokenType instanceof TokenTypeSupport) {
81
+            if (!$tokenType instanceof TokenTypeSupport) {
82 82
                 throw new InvalidArgumentException('Invalid token type');
83 83
             }
84 84
 
Please login to merge, or discard this patch.
src/DIFactory/Checker/ClaimCheckerManagerFactoryFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $factory = new ClaimCheckerManagerFactory();
25 25
 
26 26
         foreach ($checkers as $alias => $checker) {
27
-            if (! \is_string($alias)) {
27
+            if (!\is_string($alias)) {
28 28
                 throw new InvalidArgumentException('Invalid alias for claim checker');
29 29
             }
30 30
 
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
      */
43 43
     private function getCheckers(ContainerInterface $container, array $checkers): array
44 44
     {
45
-        return \array_map(static function ($checker) use ($container) {
45
+        return \array_map(static function($checker) use ($container) {
46 46
             if ($checker instanceof ClaimChecker) {
47 47
                 return $checker;
48 48
             }
49 49
 
50 50
             $checker = $container->get($checker);
51 51
 
52
-            if (! $checker instanceof ClaimChecker) {
52
+            if (!$checker instanceof ClaimChecker) {
53 53
                 throw new InvalidArgumentException('Invalid claim checker');
54 54
             }
55 55
 
Please login to merge, or discard this patch.
src/DIFactory/AbstractServiceFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
         $exploded = \explode('.', $requestedName);
33 33
         $serviceName = $exploded[2] ?? null;
34 34
 
35
-        if (! $serviceName) {
35
+        if (!$serviceName) {
36 36
             throw new InvalidArgumentException('Invalid service name');
37 37
         }
38 38
 
39 39
         $keyConfig = $container->get('config')[static::MODULE_KEY][$this->getServiceTypeName()][$serviceName] ?? null;
40 40
 
41
-        if (! \is_array($keyConfig)) {
41
+        if (!\is_array($keyConfig)) {
42 42
             throw new InvalidArgumentException('Invalid service name');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/DIFactory/KeyManagement/KeyAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             case 'jwk':
54 54
                 $jwk = JWKFactory::createFromJsonObject($keyOptions['value'] ?? '');
55 55
 
56
-                if (! $jwk instanceof JWK) {
56
+                if (!$jwk instanceof JWK) {
57 57
                     throw new ServiceNotCreatedException('Invalid value key for service ' . $requestedName);
58 58
                 }
59 59
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 $keySetService = $keyOptions['key_set'] ?? null;
83 83
                 $keySet = $container->get($keySetService);
84 84
 
85
-                if (! $keySet instanceof JWKSet) {
85
+                if (!$keySet instanceof JWKSet) {
86 86
                     throw new ServiceNotCreatedException('Unable to get keyset ' . $keySetService);
87 87
                 }
88 88
 
Please login to merge, or discard this patch.
src/DIFactory/Core/AlgorithmManagerFactoryFactory.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
         $algorithms = $this->getAlgorithms($container, $config['algorithms'] ?? []);
21 21
 
22 22
         foreach ($algorithms as $alias => $algorithm) {
23
-            $algorithmManagerFactory->add(! \is_string($alias) ? $algorithm->name() : $alias, $algorithm);
23
+            $algorithmManagerFactory->add(!\is_string($alias) ? $algorithm->name() : $alias, $algorithm);
24 24
         }
25 25
 
26 26
         return $algorithmManagerFactory;
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
      */
35 35
     private function getAlgorithms(ContainerInterface $container, array $algorithms): array
36 36
     {
37
-        return \array_map(static function ($algorithm) use ($container) {
37
+        return \array_map(static function($algorithm) use ($container) {
38 38
             if ($algorithm instanceof Algorithm) {
39 39
                 return $algorithm;
40 40
             }
41 41
 
42 42
             $algorithm = $container->get($algorithm);
43 43
 
44
-            if (! $algorithm instanceof Algorithm) {
44
+            if (!$algorithm instanceof Algorithm) {
45 45
                 throw new InvalidArgumentException('Invalid algorithm');
46 46
             }
47 47
 
Please login to merge, or discard this patch.
DIFactory/Encryption/Compression/CompressionMethodManagerFactoryFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $factory = new CompressionMethodManagerFactory();
25 25
 
26 26
         foreach ($compressionMethods as $alias => $compression) {
27
-            $factory->add(! \is_string($alias) ? $compression->name() : $alias, $compression);
27
+            $factory->add(!\is_string($alias) ? $compression->name() : $alias, $compression);
28 28
         }
29 29
 
30 30
         return $factory;
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
      */
39 39
     private function getCompressionMethods(ContainerInterface $container, array $serializers): array
40 40
     {
41
-        return \array_map(static function ($serializer) use ($container) {
41
+        return \array_map(static function($serializer) use ($container) {
42 42
             if ($serializer instanceof CompressionMethod) {
43 43
                 return $serializer;
44 44
             }
45 45
 
46 46
             $serializer = $container->get($serializer);
47 47
 
48
-            if (! $serializer instanceof CompressionMethod) {
48
+            if (!$serializer instanceof CompressionMethod) {
49 49
                 throw new InvalidArgumentException('Invalid jwe compression method');
50 50
             }
51 51
 
Please login to merge, or discard this patch.
src/DIFactory/Encryption/JWESerializerManagerFactoryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
38 38
      */
39 39
     private function getSerializers(ContainerInterface $container, array $serializers): array
40 40
     {
41
-        return \array_map(static function ($serializer) use ($container) {
41
+        return \array_map(static function($serializer) use ($container) {
42 42
             if ($serializer instanceof JWESerializer) {
43 43
                 return $serializer;
44 44
             }
45 45
 
46 46
             $serializer = $container->get($serializer);
47 47
 
48
-            if (! $serializer instanceof JWESerializer) {
48
+            if (!$serializer instanceof JWESerializer) {
49 49
                 throw new InvalidArgumentException('Invalid jwe serializer');
50 50
             }
51 51
 
Please login to merge, or discard this patch.
src/DIFactory/Signature/JWSSerializerManagerFactoryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
38 38
      */
39 39
     private function getSerializers(ContainerInterface $container, array $serializers): array
40 40
     {
41
-        return \array_map(static function ($serializer) use ($container) {
41
+        return \array_map(static function($serializer) use ($container) {
42 42
             if ($serializer instanceof JWSSerializer) {
43 43
                 return $serializer;
44 44
             }
45 45
 
46 46
             $serializer = $container->get($serializer);
47 47
 
48
-            if (! $serializer instanceof JWSSerializer) {
48
+            if (!$serializer instanceof JWSSerializer) {
49 49
                 throw new InvalidArgumentException('Invalid serializer');
50 50
             }
51 51
 
Please login to merge, or discard this patch.