Completed
Push — master ( 6962e4...5fca22 )
by Emily
02:24
created
src/Factory/Reflection/ReflectionMethodFactory.php 1 patch
Spacing   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public static function fromName(string $class, string $method)
66 66
     {
67
-        return new static(new PHPNativeReflectionMethod
68
-        (
67
+        return new static(new PHPNativeReflectionMethod(
69 68
             $class, $method
70 69
         ));
71 70
     }
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
     {
90 89
         $this->typeParser = new TypeParser($parent);
91 90
         $this->accessor->setRawValue('owner', $parent);
92
-        $this->accessor->setRawValue
93
-        (
91
+        $this->accessor->setRawValue(
94 92
             'name',
95 93
             $this->reflector->getName()
96 94
         );
@@ -118,8 +116,7 @@  discard block
 block discarded – undo
118 116
         $type = $this->reflector->getReturnType();
119 117
         if ($type)
120 118
         {
121
-            $this->accessor->setRawValue
122
-            (
119
+            $this->accessor->setRawValue(
123 120
                 'nativeReturnType',
124 121
                 !$type->isBuiltin() ? '\\' . $type : (string)$type
125 122
             );
@@ -136,13 +133,11 @@  discard block
 block discarded – undo
136 133
      */
137 134
     protected function initParams()
138 135
     {
139
-        $this->accessor->setRawValue
140
-        (
136
+        $this->accessor->setRawValue(
141 137
             'parameters',
142 138
             new FixedList(count($this->reflector->getParameters()))
143 139
         );
144
-        $this->accessor->setRawValue
145
-        (
140
+        $this->accessor->setRawValue(
146 141
             'nativeParameters',
147 142
             new FixedList(count($this->reflector->getParameters()))
148 143
         );
@@ -163,8 +158,7 @@  discard block
 block discarded – undo
163 158
 
164 159
         if (!$this->parameters->containsKey($param))
165 160
         {
166
-            throw new \Exception
167
-            (
161
+            throw new \Exception(
168 162
                   'Tried to set param annotation for non existant '
169 163
                 . 'parameter: ' . $param
170 164
             );
@@ -177,8 +171,7 @@  discard block
 block discarded – undo
177 171
 
178 172
         if (!$comparator->compatible($nativeType, $type))
179 173
         {
180
-            throw new \Exception
181
-            (
174
+            throw new \Exception(
182 175
                   'Types are incompatible for: '
183 176
                 . $this->reflector->getName() . '::' . $items[1]
184 177
             );
@@ -193,8 +186,7 @@  discard block
 block discarded – undo
193 186
      *
194 187
      * @param PHPNativeReflectionParameter $reflect
195 188
      */
196
-    protected function addParameter
197
-    (
189
+    protected function addParameter(
198 190
         PHPNativeReflectionParameter $reflect
199 191
     )
200 192
     : void
Please login to merge, or discard this patch.
src/Factory/Reflection/TypeParser.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function parseObjectName($var) : ObjectType
91 91
     {
92
-        return $this->parse(str_replace
93
-        (
92
+        return $this->parse(str_replace(
94 93
             [GenericNameProvider::BASE, '_g', '_e', '_c'],
95 94
             ['', '<', '>', ','],
96 95
             get_class($var)
@@ -135,7 +134,7 @@  discard block
 block discarded – undo
135 134
                     $item = $stack->pop();
136 135
                     if ($value{$i - 1} !== '>')
137 136
                     {
138
-                        $item->generics[] =$this->resolveName();
137
+                        $item->generics[] = $this->resolveName();
139 138
                     }
140 139
 
141 140
                     if ($i + 1 !== strlen($value) && $value{$i + 1} === '[')
@@ -183,7 +182,7 @@  discard block
 block discarded – undo
183 182
         }
184 183
         elseif ($i + 2 !== strlen($value))
185 184
         {
186
-            if (!in_array($value{$i + 2}, ['>',',']))
185
+            if (!in_array($value{$i + 2}, ['>', ',']))
187 186
             {
188 187
                 throw new \Exception('Unexpected char after collection');
189 188
             }
Please login to merge, or discard this patch.
src/Model/Collection/Map/HashMap.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 block discarded – undo
41 41
         return static::$defaultHashProducer;
42 42
     }
43 43
 
44
-    public static function setDefaultHashProducer
45
-    (
44
+    public static function setDefaultHashProducer(
46 45
         HashProducerInterface $hashProducer
47 46
     )
48 47
     : HashProducerInterface
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
      */
61 60
     protected $hashProducer;
62 61
 
63
-    public function __construct
64
-    (
62
+    public function __construct(
65 63
         ?HashProducerInterface $hashProducer = null
66 64
     )
67 65
     {
Please login to merge, or discard this patch.
src/Model/Collection/ListCollection/FlexibleList.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * {@inheritDoc}
47 47
      */
48
-    public function splice
49
-    (
48
+    public function splice(
50 49
         int $offset,
51 50
         ?int $length = null,
52 51
         array $replacement = []
Please login to merge, or discard this patch.
src/Model/Collection/ListCollection/FixedList.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
     /**
57 57
      * {@inheritDoc}
58 58
      */
59
-    public function splice
60
-    (
59
+    public function splice(
61 60
         int $offset,
62 61
         ?int $length = null,
63 62
         array $replacement = []
Please login to merge, or discard this patch.
src/Model/Collection/ListCollection/ArrayList.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
      * @param int $length The number of elements to remove
44 44
      * @param array $items Items to add
45 45
      */
46
-    public function splice
47
-    (
46
+    public function splice(
48 47
         int $offset,
49 48
         ?int$length = null,
50 49
         array $items = []
Please login to merge, or discard this patch.