Passed
Push — type-parser ( bda507 )
by Michael
03:05
created
lib/Doctrine/Annotations/Type/MixedType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
      */
22 22
     public function validate($value) : bool
23 23
     {
24
-        return ! is_resource($value);
24
+        return !is_resource($value);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
lib/Doctrine/Annotations/Type/UnionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         return implode(
41 41
             '|',
42 42
             array_map(
43
-                static function (Type $subType) : string {
43
+                static function(Type $subType) : string {
44 44
                     if ($subType instanceof CompositeType) {
45 45
                         return sprintf('(%s)', $subType->describe());
46 46
                     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function validate($value) : bool
59 59
     {
60 60
         foreach ($this->subTypes as $subType) {
61
-            if (! $subType->validate($value)) {
61
+            if (!$subType->validate($value)) {
62 62
                 continue;
63 63
             }
64 64
 
Please login to merge, or discard this patch.
lib/Doctrine/Annotations/Type/ListType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function validate($value) : bool
37 37
     {
38
-        if (! is_array($value)) {
38
+        if (!is_array($value)) {
39 39
             return false;
40 40
         }
41 41
 
Please login to merge, or discard this patch.
lib/Doctrine/Annotations/TypeParser/TypeVisitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         if ($id === Nodes::UNION) {
115 115
             return new UnionType(
116 116
                 ...array_map(
117
-                    function (TreeNode $node) : Type {
117
+                    function(TreeNode $node) : Type {
118 118
                         return $this->visit($node);
119 119
                     },
120 120
                     $element->getChildren()
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         if ($id === Nodes::INTERSECTION) {
126 126
             return new IntersectionType(
127 127
                 ...array_map(
128
-                    function (TreeNode $node) : Type {
128
+                    function(TreeNode $node) : Type {
129 129
                         return $this->visit($node);
130 130
                     },
131 131
                     $element->getChildren()
Please login to merge, or discard this patch.