Completed
Push — master ( e6acee...1b9949 )
by Chris
04:07
created
src/MatchTester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
             return false;
54 54
         }
55 55
 
56
-        $superTypeName = (string)$superTypeName;
57
-        $subTypeName = (string)$subTypeName;
56
+        $superTypeName = (string) $superTypeName;
57
+        $subTypeName = (string) $subTypeName;
58 58
 
59 59
         // Sub type cannot be nullable unless the super type is as well
60 60
         if ($subTypeNullable && !$superTypeNullable) {
Please login to merge, or discard this patch.
src/Type.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * Nullable types are either explicitly ?type (PHP>=7.1) or with a default value of null
14 14
      */
15
-    const NULLABLE  = 0x02;
15
+    const NULLABLE = 0x02;
16 16
 
17 17
     /**
18 18
      * Reference types must always match
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
     protected function __construct($typeName, $flags, $allowsCovariance, $allowsContravariance)
71 71
     {
72 72
         $this->typeName = $typeName !== null
73
-            ? (string)$typeName
73
+            ? (string) $typeName
74 74
             : null;
75 75
 
76
-        $this->isNullable = (bool)($flags & self::NULLABLE);
77
-        $this->isByReference = (bool)($flags & self::REFERENCE);
78
-        $this->isWeak = (bool)($flags & self::WEAK);
79
-        $this->allowsCovariance = (bool)$allowsCovariance;
80
-        $this->allowsContravariance = (bool)$allowsContravariance;
76
+        $this->isNullable = (bool) ($flags & self::NULLABLE);
77
+        $this->isByReference = (bool) ($flags & self::REFERENCE);
78
+        $this->isWeak = (bool) ($flags & self::WEAK);
79
+        $this->allowsCovariance = (bool) $allowsCovariance;
80
+        $this->allowsContravariance = (bool) $allowsContravariance;
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
src/CallbackType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $returnType = $candidate->getReturnType();
95 95
 
96 96
         if ($returnType !== null) {
97
-            $typeName = (string)$returnType;
97
+            $typeName = (string) $returnType;
98 98
             $nullable = $returnType->allowsNull();
99 99
         } else {
100 100
             $typeName = null;
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
             if ($parameter->hasType()) {
114 114
                 $type = $parameter->getType();
115
-                $typeName = (string)$type;
115
+                $typeName = (string) $type;
116 116
                 $nullable = $type->allowsNull();
117 117
             } else {
118 118
                 $typeName = null;
Please login to merge, or discard this patch.
src/ReturnType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $typeReflection = $reflection->getReturnType();
31 31
 
32 32
         if ($typeReflection !== null) {
33
-            $typeName = (string)$typeReflection;
33
+            $typeName = (string) $typeReflection;
34 34
 
35 35
             if ($typeReflection->allowsNull()) {
36 36
                 $flags |= self::NULLABLE;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function __construct($typeName = null, $flags = self::COVARIANT)
48 48
     {
49
-        $flags = (int)$flags;
49
+        $flags = (int) $flags;
50 50
 
51 51
         parent::__construct($typeName, $flags, $flags & self::COVARIANT, $flags & self::CONTRAVARIANT);
52 52
     }
Please login to merge, or discard this patch.
src/ParameterType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $typeReflection = $reflection->getType();
74 74
 
75 75
         if ($typeReflection !== null) {
76
-            $typeName = (string)$typeReflection;
76
+            $typeName = (string) $typeReflection;
77 77
 
78 78
             if ($typeReflection->allowsNull()) {
79 79
                 $flags |= self::NULLABLE;
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function __construct($parameterName, $typeName = null, $flags = self::CONTRAVARIANT)
92 92
     {
93
-        $flags = (int)$flags;
93
+        $flags = (int) $flags;
94 94
 
95 95
         parent::__construct($typeName, $flags, $flags & self::COVARIANT, $flags & self::CONTRAVARIANT);
96 96
 
97
-        $this->parameterName = (string)$parameterName;
98
-        $this->isOptional = (bool)($flags & self::OPTIONAL);
99
-        $this->isVariadic = (bool)($flags & self::VARIADIC);
97
+        $this->parameterName = (string) $parameterName;
98
+        $this->isOptional = (bool) ($flags & self::OPTIONAL);
99
+        $this->isVariadic = (bool) ($flags & self::VARIADIC);
100 100
     }
101 101
 
102 102
     /**
Please login to merge, or discard this patch.