Passed
Push — feature/doctrine-dbal4 ( 5ae582...b202f7 )
by Johan
04:37
created
src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         if (!is_string($value)) {
68 68
             throw InvalidFormat::new(
69
-                is_scalar($value) ? (string)$value : get_debug_type($value),
69
+                is_scalar($value) ? (string) $value : get_debug_type($value),
70 70
                 $this->getName(),
71 71
                 $platform->getDateTimeFormatString(),
72 72
             );
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(mixed $value, AbstractPlatform $platform): ?Institution
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
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         }
44 44
 
45 45
         try {
46
-            $data = json_decode((string)$value, true);
46
+            $data = json_decode((string) $value, true);
47 47
             $vettingTypeHints = VettingTypeHintCollection::deserialize($data);
48 48
         } catch (InvalidArgumentException $e) {
49 49
             throw ValueNotConvertible::new(
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(mixed $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
             throw ValueNotConvertible::new(
61 61
                 $value,
62 62
                 $this->getName(),
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
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
                     "Encountered illegal self vet option %s '%s', expected a 
51 51
                     SelfVetOption 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(mixed $value, AbstractPlatform $platform): ?SelfVetOption
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
 
67 67
         try {
68
-            $selfVetOption = new SelfVetOption((bool)$value);
68
+            $selfVetOption = new SelfVetOption((bool) $value);
69 69
         } catch (TypeError $e) {
70 70
             throw ValueNotConvertible::new(
71 71
                 $value,
Please login to merge, or discard this patch.