Passed
Pull Request — main (#540)
by
unknown
22:35 queued 17:16
created
ApiBundle/Doctrine/Type/ShowRaaContactInformationOptionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@
 block discarded – undo
47 47
                 sprintf(
48 48
                     "Encountered illegal location of type %s '%s', expected a ShowRaaContactInformationOption 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
         }
54 54
 
55
-        return (int)$value->isEnabled();
55
+        return (int) $value->isEnabled();
56 56
     }
57 57
 
58 58
     public function convertToPHPValue($value, AbstractPlatform $platform): ?ShowRaaContactInformationOption
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorTypeType.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): ?SecondFactorType
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorStatusType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 sprintf(
52 52
                     "Encountered illegal second factor status of type %s '%s', expected a SecondFactorStatus instance",
53 53
                     get_debug_type($value),
54
-                    is_scalar($value) ? (string)$value : '',
54
+                    is_scalar($value) ? (string) $value : '',
55 55
                 ),
56 56
             );
57 57
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             return 40;
69 69
         }
70 70
 
71
-        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value));
71
+        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value));
72 72
     }
73 73
 
74 74
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function convertToPHPValue(mixed $value, AbstractPlatform $platform): SecondFactorStatus
78 78
     {
79 79
         if (is_scalar($value)) {
80
-            $value = (string)$value;
80
+            $value = (string) $value;
81 81
         }
82 82
         if ($value === '0') {
83 83
             return SecondFactorStatus::unverified();
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             sprintf(
96 96
                 "Encountered illegal second factor status of type %s '%s', expected it to be one of [0,10,20,30,40]",
97 97
                 get_debug_type($value),
98
-                is_scalar($value) ? (string)$value : '',
98
+                is_scalar($value) ? (string) $value : '',
99 99
             ),
100 100
         );
101 101
     }
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocaleType.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): ?Locale
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         try {
58 58
             $locale = new Locale($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.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DocumentNumberType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 sprintf(
53 53
                     "Encountered illegal document number of type %s '%s', expected a DocumentNumber instance",
54 54
                     get_debug_type($value),
55
-                    is_scalar($value) ? (string)$value : '',
55
+                    is_scalar($value) ? (string) $value : '',
56 56
                 ),
57 57
             );
58 58
         }
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Doctrine/Type/RecoveryTokenStatusType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 sprintf(
46 46
                     "Encountered illegal recovery token status of type %s '%s', expected a RecoveryTokenStatus instance",
47 47
                     get_debug_type($value),
48
-                    is_scalar($value) ? (string)$value : '',
48
+                    is_scalar($value) ? (string) $value : '',
49 49
                 ),
50 50
             );
51 51
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             return 20;
59 59
         }
60 60
 
61
-        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string)$value));
61
+        throw new ConversionException(sprintf("Encountered inconvertible second factor status '%s'", (string) $value));
62 62
     }
63 63
 
64 64
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function convertToPHPValue(mixed $value, AbstractPlatform $platform): RecoveryTokenStatus
68 68
     {
69 69
         if (is_scalar($value)) {
70
-            $value = (string)$value;
70
+            $value = (string) $value;
71 71
         }
72 72
 
73 73
         if ($value === '0') {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             sprintf(
83 83
                 "Encountered illegal recovery token status of type %s '%s', expected it to be one of [0,10,20]",
84 84
                 get_debug_type($value),
85
-                is_scalar($value) ? (string)$value : '',
85
+                is_scalar($value) ? (string) $value : '',
86 86
             ),
87 87
         );
88 88
     }
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionRoleType.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 location of type %s '%s', expected a InstitutionRole 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.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/CommonNameType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             return null;
44 44
         }
45 45
 
46
-        return (string)$value;
46
+        return (string) $value;
47 47
     }
48 48
 
49 49
     public function convertToPHPValue($value, AbstractPlatform $platform): ?CommonName
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         try {
56 56
             $commonName = new CommonName($value);
57
-        } catch (InvalidArgumentException|TypeError $e) {
57
+        } catch (InvalidArgumentException | TypeError $e) {
58 58
             // get nice standard message, so we can throw it keeping the exception chain
59 59
             $doctrineExceptionMessage = ConversionException::conversionFailed(
60 60
                 $value,
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionType.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): ?Institution
Please login to merge, or discard this patch.