Completed
Push — master ( 5fca22...233410 )
by Emily
01:43
created
src/Factory/Reflection/ReflectionCompositeFactory.php 1 patch
Spacing   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param PHPNativeReflectionClass $reflect
79 79
      * @param ReflectionCompositeProviderInterface $provider
80 80
      */
81
-    public function __construct
82
-    (
81
+    public function __construct(
83 82
         PHPNativeReflectionClass $reflect,
84 83
         ReflectionCompositeProviderInterface $provider
85 84
     )
@@ -117,13 +116,11 @@  discard block
 block discarded – undo
117 116
         $file = (new ReflectionFileFactory($fileName))->build();
118 117
         $this->accessor->setRawValue('file', $file);
119 118
 
120
-        $this->accessor->setRawValue
121
-        (
119
+        $this->accessor->setRawValue(
122 120
             'classname',
123 121
             $this->reflector->name
124 122
         );
125
-        $this->accessor->setRawValue
126
-        (
123
+        $this->accessor->setRawValue(
127 124
             'namespace',
128 125
             $file->namespaces[$this->reflector->getNamespaceName()]
129 126
         );
@@ -146,8 +143,7 @@  discard block
 block discarded – undo
146 143
             $size = count($this->reflector->{'get' . $name}());
147 144
             foreach ($prefixes as $prefix)
148 145
             {
149
-                $this->accessor->setRawValue
150
-                (
146
+                $this->accessor->setRawValue(
151 147
                     $prefix . $name,
152 148
                     new FixedList($size)
153 149
                 );
@@ -177,8 +173,7 @@  discard block
 block discarded – undo
177 173
      * @param bool $checkFile
178 174
      * @param string $singular
179 175
      */
180
-    protected function addItems
181
-    (
176
+    protected function addItems(
182 177
         string $name,
183 178
         bool $checkFile,
184 179
         string $signular
@@ -209,8 +204,7 @@  discard block
 block discarded – undo
209 204
                     new $factory($item),
210 205
                     $item
211 206
                 );
212
-                $this->accessor->rawAddToValue
213
-                (
207
+                $this->accessor->rawAddToValue(
214 208
                     'local' . ucfirst($name),
215 209
                     $item
216 210
                 );
@@ -227,8 +221,7 @@  discard block
 block discarded – undo
227 221
      * @param PHPNativeReflectionClass $reflect
228 222
      * @param string $method
229 223
      */
230
-    protected function addInheritance
231
-    (
224
+    protected function addInheritance(
232 225
         string $group,
233 226
         PHPNativeReflectionClass $reflect,
234 227
         string $method = 'rawAddToValue'
@@ -248,15 +241,13 @@  discard block
 block discarded – undo
248 241
      * @param ReflectionPropertyFactory $factory
249 242
      * @return ReflectionProperty
250 243
      */
251
-    protected function buildProperty
252
-    (
244
+    protected function buildProperty(
253 245
         ReflectionPropertyFactory $factory,
254 246
         PHPNativeReflectionProperty $reflect
255 247
     )
256 248
     : ReflectionProperty
257 249
     {
258
-        return $factory->build
259
-        (
250
+        return $factory->build(
260 251
             $this->object,
261 252
             $this->reflector
262 253
                 ->getDefaultProperties()[$reflect->getName()]
Please login to merge, or discard this patch.
src/Model/Reflection/Type/ObjectType.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function equals($type) : bool
52 52
     {
53
-        if
54
-        (
53
+        if (
55 54
             $type instanceof ObjectType &&
56 55
             $type->classname->equals($this->classname)
57 56
         )
Please login to merge, or discard this patch.
src/Model/Collection/IterableIterator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
                 }
74 74
                 else
75 75
                 {
76
-                    throw new DomainException
77
-                    (
76
+                    throw new DomainException(
78 77
                         'The given IteratorAggregate\'s ' .
79 78
                         'getIterator() method should return an ' .
80 79
                         'Iterator or IteratorAggregate, but it did not'
Please login to merge, or discard this patch.
src/Service/TypeComparator.php 1 patch
Spacing   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,15 +32,13 @@  discard block
 block discarded – undo
32 32
      * @param AbstractType $child
33 33
      * @return boolean
34 34
      */
35
-    public function compatible
36
-    (
35
+    public function compatible(
37 36
         AbstractType $parent,
38 37
         AbstractType $child
39 38
     )
40 39
     : bool
41 40
     {
42
-        if
43
-        (
41
+        if (
44 42
             ($child instanceof NullType && $parent->nullable) ||
45 43
             ($parent instanceof MixedType)
46 44
         )
@@ -53,11 +51,9 @@  discard block
 block discarded – undo
53 51
         }
54 52
         elseif ($parent instanceof ObjectType)
55 53
         {
56
-            if
57
-            (
54
+            if (
58 55
                 $child instanceof ObjectType && 
59
-                is_a
60
-                (
56
+                is_a(
61 57
                     $child->classname->__toString(),
62 58
                     $parent->classname->__toString(),
63 59
                     true
@@ -70,8 +66,7 @@  discard block
 block discarded – undo
70 66
             return false;
71 67
         }
72 68
 
73
-        throw new \DomainException
74
-        (
69
+        throw new \DomainException(
75 70
             'Unknown type: ' . get_class($parent)
76 71
         );
77 72
     }
Please login to merge, or discard this patch.
src/Factory/Reflection/TypeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
         }
147 147
         elseif ($i + 2 !== strlen($value))
148 148
         {
149
-            if (!in_array($value{$i + 2}, ['>',',']))
149
+            if (!in_array($value{$i + 2}, ['>', ',']))
150 150
             {
151 151
                 throw new \Exception('Unexpected char after collection');
152 152
             }
Please login to merge, or discard this patch.