Completed
Push — master ( 46b7df...4cf19c )
by Emily
02:25
created
src/Exception/PropertyNotReadableException.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct($class, $property, $previous = null)
10 10
     {
11
-        parent::__construct
12
-        (
11
+        parent::__construct(
13 12
               'Tried to read unreadable property '
14 13
             . $class . '::$' . $property,
15 14
             0,
Please login to merge, or discard this patch.
src/Exception/PropertyNotWritableException.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct($class, $property, $previous = null)
10 10
     {
11
-        parent::__construct
12
-        (
11
+        parent::__construct(
13 12
               'Tried to write to unwritable property '
14 13
             . $class . '::$' . $property,
15 14
             0,
Please login to merge, or discard this patch.
src/Service/PropertyAccessor.php 1 patch
Spacing   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,14 +36,12 @@  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
         }
44 43
 
45
-        $this->setAnyValue
46
-        (
44
+        $this->setAnyValue(
47 45
             $this->reflect->properties[$property],
48 46
             $value
49 47
         );
@@ -57,8 +55,7 @@  discard block
 block discarded – undo
57 55
         }
58 56
         else
59 57
         {
60
-            $this->setNonNullValue
61
-            (
58
+            $this->setNonNullValue(
62 59
                 $property->name,
63 60
                 $value,
64 61
                 $property->type
@@ -125,8 +122,7 @@  discard block
 block discarded – undo
125 122
         }
126 123
         elseif (is_object($value) && method_exists([$value, $method]))
127 124
         {
128
-            $this->setScalarValue
129
-            (
125
+            $this->setScalarValue(
130 126
                 $property,
131 127
                 $value->$method(),
132 128
                 $method,
@@ -165,8 +161,7 @@  discard block
 block discarded – undo
165 161
 
166 162
     private function throwError($property, $expected, $value)
167 163
     {
168
-        throw new IllegalPropertyTypeException
169
-        (
164
+        throw new IllegalPropertyTypeException(
170 165
             get_class($this->object),
171 166
             $property,
172 167
             $expected,
Please login to merge, or discard this patch.
src/Service/ConditionalPropertyAccessor.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
         }
16 16
         else
17 17
         {
18
-            throw new PropertyNotWritableException
19
-            (
18
+            throw new PropertyNotWritableException(
20 19
                 get_class($this->object),
21 20
                 $property->name
22 21
             );
@@ -27,16 +26,14 @@  discard block
 block discarded – undo
27 26
     {
28 27
         if (!$this->reflect->properties->contains($property))
29 28
         {
30
-            throw new CannotReadPropertyException
31
-            (
29
+            throw new CannotReadPropertyException(
32 30
                 get_class($this->object),
33 31
                 $property
34 32
             );
35 33
         }
36 34
         elseif (!$this->reflect->properties[$property]->readable)
37 35
         {
38
-            throw new PropertyNotReadableException
39
-            (
36
+            throw new PropertyNotReadableException(
40 37
                 get_class($this->object),
41 38
                 $property
42 39
             );
Please login to merge, or discard this patch.