Completed
Push — master ( fb21bc...46b7df )
by Emily
02:00
created
src/Exception/IllegalPropertyTypeException.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 class IllegalPropertyTypeException extends Exception
8 8
 {
9
-    public function __construct
10
-    (
9
+    public function __construct(
11 10
         string $class,
12 11
         string $property,
13 12
         string $expected,
@@ -15,10 +14,9 @@  discard block
 block discarded – undo
15 14
         Exception $previous = null
16 15
     )
17 16
     {
18
-        parent::__construct
19
-        (
17
+        parent::__construct(
20 18
               'Tried to set an illegal property type for '
21
-            . $class .'::$' . $property . '. Excpected ' . $expected
19
+            . $class . '::$' . $property . '. Excpected ' . $expected
22 20
             . ', got ' . $got,
23 21
             0,
24 22
             $previous
Please login to merge, or discard this patch.
src/Factory/Reflection/ReflectionCompositeFactory.php 1 patch
Spacing   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  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
             'namespace',
27 26
             $file->namespaces[$this->reflector->getNamespaceName()]
28 27
         );
@@ -48,15 +47,13 @@  discard block
 block discarded – undo
48 47
 
49 48
     protected function buildProperty($reflect)
50 49
     {
51
-        $properties = $this->accessor->getRawValue
52
-        (
50
+        $properties = $this->accessor->getRawValue(
53 51
             'properties'
54 52
         );
55 53
 
56 54
         $properties[$reflect->getName()] = 
57 55
             (new ReflectionPropertyFactory($reflect))
58
-                ->build
59
-                (
56
+                ->build(
60 57
                     $this->object,
61 58
                     $this->reflector
62 59
                         ->getDefaultProperties()[$reflect->getName()]
@@ -65,8 +62,7 @@  discard block
 block discarded – undo
65 62
 
66 63
     protected function buildMethod($reflect)
67 64
     {
68
-        $this->accessor->rawAddToValue
69
-        (
65
+        $this->accessor->rawAddToValue(
70 66
             'methods',
71 67
             (new ReflectionMethodFactory($reflect))
72 68
                 ->build($this->object)
Please login to merge, or discard this patch.
src/Service/PropertyAccessor.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         if (!$this->reflect->properties->contains($property))
38 38
         {
39
-            throw new CannotWritePropertyException
40
-            (
39
+            throw new CannotWritePropertyException(
41 40
                 get_class($this->object), $property
42 41
             );
43 42
         }
@@ -113,8 +112,7 @@  discard block
 block discarded – undo
113 112
         }
114 113
         elseif (is_object($value) && method_exists([$value, $method]))
115 114
         {
116
-            $this->setScalarValue
117
-            (
115
+            $this->setScalarValue(
118 116
                 $property,
119 117
                 $value->$method(),
120 118
                 $method,
@@ -153,8 +151,7 @@  discard block
 block discarded – undo
153 151
 
154 152
     private function throwError($property, $expected, $value)
155 153
     {
156
-        throw new IllegalPropertyTypeException
157
-        (
154
+        throw new IllegalPropertyTypeException(
158 155
             get_class($this->object),
159 156
             $property,
160 157
             $expected,
Please login to merge, or discard this patch.