Completed
Push — master ( fb21bc...46b7df )
by Emily
02:00
created
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.