Test Failed
Push — master ( 1b72cc...b6de3d )
by Kirill
05:40
created
src/Definition/Behaviour/HasTypeIndication.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 use Railt\Reflection\Contracts\Definition\Behaviour\ProvidesTypeIndication;
13 13
 use Railt\Reflection\Contracts\Definition\TypeDefinition;
14
-use Railt\Reflection\Contracts\Dictionary;
15 14
 
16 15
 /**
17 16
  * Trait HasTypeIndication
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function __toString(): string
67 67
     {
68
-        $parent = $this->getDictionary()->find($this->definition) ?: $this->definition . '<?>';
68
+        $parent = $this->getDictionary()->find($this->definition) ?: $this->definition.'<?>';
69 69
 
70 70
         if ($this->isNonNull()) {
71 71
             $parent .= '!';
72 72
         }
73 73
 
74 74
         if ($this->isList()) {
75
-            $parent = '[' . $parent . ']';
75
+            $parent = '['.$parent.']';
76 76
         }
77 77
 
78 78
         if ($this->isListOfNonNulls()) {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function isNonNull(): bool
89 89
     {
90
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL);
90
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL);
91 91
     }
92 92
 
93 93
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function isList(): bool
97 97
     {
98
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST);
98
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST);
99 99
     }
100 100
 
101 101
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function isListOfNonNulls(): bool
105 105
     {
106
-        return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL);
106
+        return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL);
107 107
     }
108 108
 
109 109
     /**
Please login to merge, or discard this patch.