Passed
Pull Request — main (#540)
by
unknown
22:35 queued 17:16
created
Surfnet/StepupMiddleware/ApiBundle/Controller/RecoveryTokenController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $query->institution = $request->get('institution');
72 72
         $query->email = $request->get('email');
73 73
         $query->name = $request->get('name');
74
-        $query->pageNumber = (int)$request->get('p', 1);
74
+        $query->pageNumber = (int) $request->get('p', 1);
75 75
         $query->orderBy = $request->get('orderBy');
76 76
         $query->orderDirection = $request->get('orderDirection');
77 77
 
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Controller/UnverifiedSecondFactorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $query = new UnverifiedSecondFactorQuery();
57 57
         $query->identityId = new IdentityId($request->get('identityId'));
58 58
         $query->verificationNonce = $request->get('verificationNonce');
59
-        $query->pageNumber = (int)$request->get('p', 1);
59
+        $query->pageNumber = (int) $request->get('p', 1);
60 60
 
61 61
         $paginator = $this->secondFactorService->searchUnverifiedSecondFactors($query);
62 62
 
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/RaLocationNameType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 sprintf(
48 48
                     "Encountered illegal RA location name of type %s '%s', expected a RaLocationName instance",
49 49
                     get_debug_type($value),
50
-                    is_scalar($value) ? (string)$value : '',
50
+                    is_scalar($value) ? (string) $value : '',
51 51
                 ),
52 52
             );
53 53
         }
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationLocationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 sprintf(
51 51
                     "Encountered illegal location of type %s '%s', expected a Location 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
         }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         try {
68 68
             $location = new Location($value);
69
-        } catch (InvalidArgumentException|TypeError $e) {
69
+        } catch (InvalidArgumentException | TypeError $e) {
70 70
             // get nice standard message, so we can throw it keeping the exception chain
71 71
             $doctrineExceptionMessage = ConversionException::conversionFailed(
72 72
                 $value,
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoOn2faOptionType.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 sso on 2fo vet option %s '%s', expected a 
50 50
                     SsoOn2faOption 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): ?SsoOn2faOption
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         try {
67
-            $ssoOn2faOption = new SsoOn2faOption((bool)$value);
67
+            $ssoOn2faOption = new SsoOn2faOption((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.
StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationInstitutionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 sprintf(
48 48
                     "Encountered illegal institution of type %s '%s', expected an Institution instance",
49 49
                     get_debug_type($value),
50
-                    is_scalar($value) ? (string)$value : '',
50
+                    is_scalar($value) ? (string) $value : '',
51 51
                 ),
52 52
             );
53 53
         }
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ContactInformationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             return null;
46 46
         }
47 47
 
48
-        return (string)$value;
48
+        return (string) $value;
49 49
     }
50 50
 
51 51
     public function convertToPHPValue($value, AbstractPlatform $platform): ?ContactInformation
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         try {
58 58
             $contactInformation = new ContactInformation($value);
59
-        } catch (InvalidArgumentException|TypeError $e) {
59
+        } catch (InvalidArgumentException | TypeError $e) {
60 60
             // get nice standard message, so we can throw it keeping the exception chain
61 61
             $doctrineExceptionMessage = ConversionException::conversionFailed(
62 62
                 $value,
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Doctrine/Type/NumberOfTokensPerIdentityType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     "Encountered illegal number of tokens per identity %s '%s', expected a 
50 50
                     NumberOfTokensPerIdentityOption 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
         }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         try {
67
-            $numberOfTokensPerIdentityOption = new NumberOfTokensPerIdentityOption((int)$value);
67
+            $numberOfTokensPerIdentityOption = new NumberOfTokensPerIdentityOption((int) $value);
68 68
         } catch (InvalidArgumentException $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/LocationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             return null;
46 46
         }
47 47
 
48
-        return (string)$value;
48
+        return (string) $value;
49 49
     }
50 50
 
51 51
     public function convertToPHPValue($value, AbstractPlatform $platform): ?Location
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         try {
58 58
             $location = new Location($value);
59
-        } catch (InvalidArgumentException|TypeError $e) {
59
+        } catch (InvalidArgumentException | TypeError $e) {
60 60
             // get nice standard message, so we can throw it keeping the exception chain
61 61
             $doctrineExceptionMessage = ConversionException::conversionFailed(
62 62
                 $value,
Please login to merge, or discard this patch.