Completed
Push — master ( a52326...01a9e5 )
by Emily
02:33
created
src/Traits/PropertyAccessTrait.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
         if (!static::$reflectionComposite)
15 15
         {
16 16
             static::$reflectComposite =
17
-                ReflectionCompositeFactory::fromClassName
18
-                (
17
+                ReflectionCompositeFactory::fromClassName(
19 18
                     get_called_class()
20 19
                 )
21 20
                 ->build();
@@ -36,8 +35,7 @@  discard block
 block discarded – undo
36 35
 
37 36
     protected function initPropertyAccessTrait()
38 37
     {
39
-        $this->accessor = new ConditionalPropertyAccessor
40
-        (
38
+        $this->accessor = new ConditionalPropertyAccessor(
41 39
             $this,
42 40
             self::getReflectionComposite()
43 41
         );
Please login to merge, or discard this patch.
src/Factory/Reflection/ReflectionCompositeFactory.php 1 patch
Spacing   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,13 +21,11 @@  discard block
 block discarded – undo
21 21
             (new ReflectionFileFactory($this->reflector->getFileName()))
22 22
                 ->build();
23 23
         $this->accessor->setRawValue('file', $file);
24
-        $this->accessor->setRawValue
25
-        (
24
+        $this->accessor->setRawValue(
26 25
             'classname',
27 26
             $this->reflector->name
28 27
         );
29
-        $this->accessor->setRawValue
30
-        (
28
+        $this->accessor->setRawValue(
31 29
             'namespace',
32 30
             $file->namespaces[$this->reflector->getNamespaceName()]
33 31
         );
@@ -53,15 +51,13 @@  discard block
 block discarded – undo
53 51
 
54 52
     protected function buildProperty($reflect)
55 53
     {
56
-        $properties = $this->accessor->getRawValue
57
-        (
54
+        $properties = $this->accessor->getRawValue(
58 55
             'properties'
59 56
         );
60 57
 
61 58
         $properties[$reflect->getName()] = 
62 59
             (new ReflectionPropertyFactory($reflect))
63
-                ->build
64
-                (
60
+                ->build(
65 61
                     $this->object,
66 62
                     $this->reflector
67 63
                         ->getDefaultProperties()[$reflect->getName()]
@@ -70,8 +66,7 @@  discard block
 block discarded – undo
70 66
 
71 67
     protected function buildMethod($reflect)
72 68
     {
73
-        $this->accessor->rawAddToValue
74
-        (
69
+        $this->accessor->rawAddToValue(
75 70
             'methods',
76 71
             (new ReflectionMethodFactory($reflect))
77 72
                 ->build($this->object)
Please login to merge, or discard this patch.