Completed
Push — master ( d7ca57...d113dd )
by Kirill
02:22
created
src/Support/Declaration.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,15 +50,21 @@
 block discarded – undo
50 50
      */
51 51
     public function typeOf($type)
52 52
     {
53
-        if ($this->inTypesArray($type)) return true;
53
+        if ($this->inTypesArray($type)) {
54
+            return true;
55
+        }
54 56
 
55 57
         $typeSynonyms = $this->getVarTypeSynonyms($type);
56 58
         foreach ($typeSynonyms as $typeSynonym) {
57
-            if ($this->inTypesArray($typeSynonym)) return true;
59
+            if ($this->inTypesArray($typeSynonym)) {
60
+                return true;
61
+            }
58 62
         }
59 63
 
60 64
         foreach ($this->types as $class) {
61
-            if (is_subclass_of($type, $class)) true;
65
+            if (is_subclass_of($type, $class)) {
66
+                true;
67
+            }
62 68
         }
63 69
 
64 70
         return false;
Please login to merge, or discard this patch.