Passed
Pull Request — main (#540)
by
unknown
22:35 queued 17:16
created
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/EmailType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             return null;
43 43
         }
44 44
 
45
-        return (string)$value;
45
+        return (string) $value;
46 46
     }
47 47
 
48 48
     public function convertToPHPValue($value, AbstractPlatform $platform): ?Email
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Doctrine/Type/SelfAssertedTokensOptionType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
                     "Encountered illegal self vet option %s '%s', expected a 
51 51
                     SelfAssertedTokensOption instance",
52 52
                     get_debug_type($value),
53
-                    is_scalar($value) ? (string)$value : '',
53
+                    is_scalar($value) ? (string) $value : '',
54 54
                 ),
55 55
             );
56 56
         }
57 57
 
58
-        return (int)$value->isEnabled();
58
+        return (int) $value->isEnabled();
59 59
     }
60 60
 
61 61
     public function convertToPHPValue($value, AbstractPlatform $platform): ?SelfAssertedTokensOption
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
 
67 67
         try {
68
-            $selfAssertedTokensOption = new SelfAssertedTokensOption((bool)$value);
68
+            $selfAssertedTokensOption = new SelfAssertedTokensOption((bool) $value);
69 69
         } catch (TypeError $e) {
70 70
             // get nice standard message, so we can throw it keeping the exception chain
71 71
             $doctrineExceptionMessage = ConversionException::conversionFailed(
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfVetOptionType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
                     "Encountered illegal self vet option %s '%s', expected a 
50 50
                     SelfVetOption instance",
51 51
                     get_debug_type($value),
52
-                    is_scalar($value) ? (string)$value : '',
52
+                    is_scalar($value) ? (string) $value : '',
53 53
                 ),
54 54
             );
55 55
         }
56 56
 
57
-        return (int)$value->isEnabled();
57
+        return (int) $value->isEnabled();
58 58
     }
59 59
 
60 60
     public function convertToPHPValue($value, AbstractPlatform $platform): ?SelfVetOption
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         try {
67
-            $selfVetOption = new SelfVetOption((bool)$value);
67
+            $selfVetOption = new SelfVetOption((bool) $value);
68 68
         } catch (TypeError $e) {
69 69
             // get nice standard message, so we can throw it keeping the exception chain
70 70
             $doctrineExceptionMessage = ConversionException::conversionFailed(
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NameIdType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             return null;
43 43
         }
44 44
 
45
-        return (string)$value;
45
+        return (string) $value;
46 46
     }
47 47
 
48 48
     public function convertToPHPValue($value, AbstractPlatform $platform): ?NameId
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VerifyEmailOptionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
48 48
                 sprintf(
49 49
                     "Encountered illegal location of type %s '%s', expected a VerifyEmailOption instance",
50 50
                     get_debug_type($value),
51
-                    is_scalar($value) ? (string)$value : '',
51
+                    is_scalar($value) ? (string) $value : '',
52 52
                 ),
53 53
             );
54 54
         }
55 55
 
56
-        return (int)$value->isEnabled();
56
+        return (int) $value->isEnabled();
57 57
     }
58 58
 
59 59
     public function convertToPHPValue($value, AbstractPlatform $platform): ?VerifyEmailOption
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VettingTypeHintsType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         }
45 45
 
46 46
         try {
47
-            $data = json_decode((string)$value, true);
47
+            $data = json_decode((string) $value, true);
48 48
             $vettingTypeHints = VettingTypeHintCollection::deserialize($data);
49 49
         } catch (InvalidArgumentException $e) {
50 50
             // get nice standard message, so we can throw it keeping the exception chain
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/AuthorityRoleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             return null;
47 47
         }
48 48
 
49
-        return (string)$value;
49
+        return (string) $value;
50 50
     }
51 51
 
52 52
     public function convertToPHPValue($value, AbstractPlatform $platform): ?AuthorityRole
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Response/JsonCollectionResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             $paginator->getNbResults(),
30 30
             $paginator->getCurrentPage(),
31 31
             $paginator->getMaxPerPage(),
32
-            (array)$paginator->getCurrentPageResults(),
32
+            (array) $paginator->getCurrentPageResults(),
33 33
             [],
34 34
             $filters,
35 35
         );
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/GatewayBundle/Projector/SecondFactorProjector.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->repository->save(
44 44
             new SecondFactor(
45
-                (string)$event->identityId,
46
-                (string)$event->nameId,
47
-                (string)$event->identityInstitution,
48
-                (string)$event->preferredLocale,
49
-                (string)$event->secondFactorId,
50
-                (string)$event->yubikeyPublicId,
45
+                (string) $event->identityId,
46
+                (string) $event->nameId,
47
+                (string) $event->identityInstitution,
48
+                (string) $event->preferredLocale,
49
+                (string) $event->secondFactorId,
50
+                (string) $event->yubikeyPublicId,
51 51
                 'yubikey',
52 52
                 true,
53 53
             ),
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $this->repository->save(
60 60
             new SecondFactor(
61
-                (string)$event->identityId,
62
-                (string)$event->targetNameId,
63
-                (string)$event->identityInstitution,
64
-                (string)$event->preferredLocale,
65
-                (string)$event->newSecondFactorId,
61
+                (string) $event->identityId,
62
+                (string) $event->targetNameId,
63
+                (string) $event->identityInstitution,
64
+                (string) $event->preferredLocale,
65
+                (string) $event->newSecondFactorId,
66 66
                 $event->secondFactorIdentifier,
67 67
                 $event->secondFactorType,
68 68
                 $this->isIdentityVetted($event->vettingType),
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $this->repository->save(
76 76
             new SecondFactor(
77
-                (string)$event->identityId,
78
-                (string)$event->nameId,
79
-                (string)$event->identityInstitution,
80
-                (string)$event->preferredLocale,
81
-                (string)$event->secondFactorId,
77
+                (string) $event->identityId,
78
+                (string) $event->nameId,
79
+                (string) $event->identityInstitution,
80
+                (string) $event->preferredLocale,
81
+                (string) $event->secondFactorId,
82 82
                 $event->secondFactorIdentifier,
83 83
                 $event->secondFactorType,
84 84
                 $this->isIdentityVetted($event->vettingType),
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
     ): void {
92 92
         $this->repository->save(
93 93
             new SecondFactor(
94
-                (string)$event->identityId,
95
-                (string)$event->nameId,
96
-                (string)$event->identityInstitution,
97
-                (string)$event->preferredLocale,
98
-                (string)$event->secondFactorId,
94
+                (string) $event->identityId,
95
+                (string) $event->nameId,
96
+                (string) $event->identityInstitution,
97
+                (string) $event->preferredLocale,
98
+                (string) $event->secondFactorId,
99 99
                 $event->secondFactorIdentifier,
100 100
                 $event->secondFactorType,
101 101
                 $this->isIdentityVetted($event->vettingType),
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $secondFactors = $this->repository->findByIdentityId($event->identityId);
147 147
 
148 148
         foreach ($secondFactors as $secondFactor) {
149
-            $secondFactor->displayLocale = (string)$event->preferredLocale;
149
+            $secondFactor->displayLocale = (string) $event->preferredLocale;
150 150
             $this->repository->save($secondFactor);
151 151
         }
152 152
     }
Please login to merge, or discard this patch.