@@ -134,7 +134,7 @@ |
||
134 | 134 | // fallback to the actual property. |
135 | 135 | if (isset($property)) { |
136 | 136 | throw $e; // Static property exists, |
137 | - // so you cannot create a new field. |
|
137 | + // so you cannot create a new field. |
|
138 | 138 | } else { |
139 | 139 | $this->ins->$name = $value; // Property does not exists |
140 | 140 | // so you can create a new field. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $rm = $rc->getMethod($name); |
36 | 36 | if (!$rm->isStatic()) { |
37 | 37 | throw new ProxyException( |
38 | - "Non-static method called statically: " . |
|
38 | + "Non-static method called statically: ". |
|
39 | 39 | "$rc->name::$name()"); |
40 | 40 | } |
41 | 41 | $rm->setAccessible(true); |
@@ -55,14 +55,14 @@ discard block |
||
55 | 55 | $rp = $rc->getProperty($name); |
56 | 56 | if (!$rp->isStatic()) { |
57 | 57 | throw new ProxyException( |
58 | - "Access to undeclared static property: " . |
|
58 | + "Access to undeclared static property: ". |
|
59 | 59 | "$rc->name::\$$name"); |
60 | 60 | } |
61 | 61 | $rp->setAccessible(true); |
62 | 62 | return $rp; |
63 | 63 | } |
64 | 64 | throw new ProxyException( |
65 | - "Access to undeclared static property: " . |
|
65 | + "Access to undeclared static property: ". |
|
66 | 66 | "$rc->name::\$$name"); |
67 | 67 | } |
68 | 68 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | return $this->ins->$name(...$args); |
148 | 148 | } |
149 | 149 | throw new ProxyException( |
150 | - "Call to undefined method: " . |
|
150 | + "Call to undefined method: ". |
|
151 | 151 | "{$this->ro->name}::$name()"); |
152 | 152 | } |
153 | 153 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | ->getValue($this->ins); |
175 | 175 | } catch (ProxyException $e) { |
176 | 176 | try { |
177 | - return $this->__call('__get', [$name]); |
|
177 | + return $this->__call('__get', [ $name ]); |
|
178 | 178 | } catch (ProxyException $_) { |
179 | 179 | throw $e; |
180 | 180 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $property->setValue($this->ins, $value); |
194 | 194 | } catch (ProxyException $e) { |
195 | 195 | try { |
196 | - $this->__call('__set', [$name, $value]); |
|
196 | + $this->__call('__set', [ $name, $value ]); |
|
197 | 197 | return; |
198 | 198 | } catch (ProxyException $_) { } // If __set() is undefined, |
199 | 199 | // fallback to the actual property. |