Completed
Pull Request — master (#3)
by Emily
01:57
created
src/Service/ReflectionCompositeProvider.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
         return static::$default;
40 40
     }
41 41
 
42
-    public static function setDefault
43
-    (
42
+    public static function setDefault(
44 43
         ReflectionCompositeProviderInterface $default
45 44
     )
46 45
     {
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
         {
61 60
             $this->cache[$classname] =
62 61
                 (
63
-                    ReflectionCompositeFactory::fromClassName
64
-                    (
62
+                    ReflectionCompositeFactory::fromClassName(
65 63
                         $classname
66 64
                     )
67 65
                 )
Please login to merge, or discard this patch.
src/Model/Collection/AbstractList.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
         if ($offset === null)
30 30
         {
31 31
             $this->add($value);
32
-        }
33
-        else
32
+        } else
34 33
         {
35 34
             $this->set($offset, $value);
36 35
         }
Please login to merge, or discard this patch.
src/Factory/Reflection/ReflectionCompositeFactory.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      *
131 131
      * @param string $name
132 132
      * @param bool $checkFile
133
-     * @param string $singular
133
+     * @param string $signular
134 134
      */
135 135
     protected function addItems
136 136
     (
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 
15 15
 namespace Spaark\CompositeUtils\Factory\Reflection;
16 16
 
17
-use Spaark\CompositeUtils\Factory\BaseFactory;
18 17
 use Spaark\CompositeUtils\Model\Reflection\ReflectionComposite;
19 18
 use Spaark\CompositeUtils\Model\Reflection\ReflectionProperty;
20 19
 use Spaark\CompositeUtils\Model\Reflection\ReflectionMethod;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
             else
158 158
             {
159 159
                 $factory =
160
-                      '\Spaark\CompositeUtils\Factory\Reflection'
160
+                        '\Spaark\CompositeUtils\Factory\Reflection'
161 161
                     . '\Reflection' . $signular . 'Factory';
162 162
                 $item = $this->{'build' . $signular}
163 163
                 (
Please login to merge, or discard this patch.
Spacing   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param PHPNativeReflectionClass $reflect
72 72
      * @param ReflectionCompositeProviderInterface $provider
73 73
      */
74
-    public function __construct
75
-    (
74
+    public function __construct(
76 75
         PHPNativeReflectionClass $reflect,
77 76
         ReflectionCompositeProviderInterface $provider
78 77
     )
@@ -110,13 +109,11 @@  discard block
 block discarded – undo
110 109
         $file = (new ReflectionFileFactory($fileName))->build();
111 110
         $this->accessor->setRawValue('file', $file);
112 111
 
113
-        $this->accessor->setRawValue
114
-        (
112
+        $this->accessor->setRawValue(
115 113
             'classname',
116 114
             $this->reflector->name
117 115
         );
118
-        $this->accessor->setRawValue
119
-        (
116
+        $this->accessor->setRawValue(
120 117
             'namespace',
121 118
             $file->namespaces[$this->reflector->getNamespaceName()]
122 119
         );
@@ -148,8 +145,7 @@  discard block
 block discarded – undo
148 145
 
149 146
     protected function initFixedList(string $name, string $prefix = '')
150 147
     {
151
-        $this->accessor->setRawValue
152
-        (
148
+        $this->accessor->setRawValue(
153 149
             $prefix . $name,
154 150
             new FixedList(count($this->reflector->{'get' . $name}()))
155 151
         );
@@ -163,8 +159,7 @@  discard block
 block discarded – undo
163 159
      * @param bool $checkFile
164 160
      * @param string $singular
165 161
      */
166
-    protected function addItems
167
-    (
162
+    protected function addItems(
168 163
         string $name,
169 164
         bool $checkFile,
170 165
         string $signular
@@ -195,8 +190,7 @@  discard block
 block discarded – undo
195 190
                     new $factory($item),
196 191
                     $item
197 192
                 );
198
-                $this->accessor->rawAddToValue
199
-                (
193
+                $this->accessor->rawAddToValue(
200 194
                     'local' . ucfirst($name),
201 195
                     $item
202 196
                 );
@@ -213,8 +207,7 @@  discard block
 block discarded – undo
213 207
      * @param PHPNativeReflectionClass $reflect
214 208
      * @param string $method
215 209
      */
216
-    protected function addInheritance
217
-    (
210
+    protected function addInheritance(
218 211
         string $group,
219 212
         PHPNativeReflectionClass $reflect,
220 213
         string $method = 'rawAddToValue'
@@ -234,15 +227,13 @@  discard block
 block discarded – undo
234 227
      * @param ReflectionPropertyFactory $factory
235 228
      * @return ReflectionProperty
236 229
      */
237
-    protected function buildProperty
238
-    (
230
+    protected function buildProperty(
239 231
         ReflectionPropertyFactory $factory,
240 232
         PHPNativeReflectionProperty $reflect
241 233
     )
242 234
     : ReflectionProperty
243 235
     {
244
-        return $factory->build
245
-        (
236
+        return $factory->build(
246 237
             $this->object,
247 238
             $this->reflector
248 239
                 ->getDefaultProperties()[$reflect->getName()]
Please login to merge, or discard this patch.