@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | preg_match_all |
41 | 41 | ( |
42 | - '/^' |
|
42 | + '/^' |
|
43 | 43 | . '[ \t]*\*[ \t]*' |
44 | 44 | . '@([a-zA-Z]+)' |
45 | 45 | . '(.*)' |
@@ -110,8 +110,7 @@ |
||
110 | 110 | $prop->setAccessible(true); |
111 | 111 | |
112 | 112 | return $prop; |
113 | - } |
|
114 | - catch (ReflectionException $e) |
|
113 | + } catch (ReflectionException $e) |
|
115 | 114 | { |
116 | 115 | throw new $class |
117 | 116 | ( |
@@ -93,8 +93,7 @@ discard block |
||
93 | 93 | { |
94 | 94 | $as .= $token[1]; |
95 | 95 | } |
96 | - } |
|
97 | - elseif ($matching) |
|
96 | + } elseif ($matching) |
|
98 | 97 | { |
99 | 98 | switch ($token[0]) |
100 | 99 | { |
@@ -105,8 +104,7 @@ discard block |
||
105 | 104 | case T_AS: |
106 | 105 | $matching = T_AS; |
107 | 106 | } |
108 | - } |
|
109 | - else |
|
107 | + } else |
|
110 | 108 | { |
111 | 109 | switch ($token[0]) |
112 | 110 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | parent::__construct |
19 | 19 | ( |
20 | - 'Tried to set an illegal property type for ' |
|
20 | + 'Tried to set an illegal property type for ' |
|
21 | 21 | . $class .'::$' . $property . '. Excpected ' . $expected |
22 | 22 | . ', got ' . $got, |
23 | 23 | 0, |
@@ -12,8 +12,7 @@ discard block |
||
12 | 12 | if ($property->writable) |
13 | 13 | { |
14 | 14 | parent::setAnyValue($property, $value); |
15 | - } |
|
16 | - else |
|
15 | + } else |
|
17 | 16 | { |
18 | 17 | throw new PropertyNotWritableException |
19 | 18 | ( |
@@ -32,8 +31,7 @@ discard block |
||
32 | 31 | get_class($this->object), |
33 | 32 | $property |
34 | 33 | ); |
35 | - } |
|
36 | - elseif (!$this->reflect->properties[$property]->readable) |
|
34 | + } elseif (!$this->reflect->properties[$property]->readable) |
|
37 | 35 | { |
38 | 36 | throw new PropertyNotReadableException |
39 | 37 | ( |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | parent::__construct |
58 | 58 | ( |
59 | - 'Cannot ' . static::ACCESS_TYPE . ' property: ' |
|
59 | + 'Cannot ' . static::ACCESS_TYPE . ' property: ' |
|
60 | 60 | . $class . '::$' . $property . '. ' . static::ERROR_REASON, |
61 | 61 | 0, |
62 | 62 | $previous |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | parent::__construct |
41 | 41 | ( |
42 | - 'Missing required parameter in constructor. ' |
|
42 | + 'Missing required parameter in constructor. ' |
|
43 | 43 | . $class . ' requires a value for ' . $parameter, |
44 | 44 | 0, |
45 | 45 | $previous |
@@ -29,8 +29,7 @@ |
||
29 | 29 | if ($offset === null) |
30 | 30 | { |
31 | 31 | $this->add($value); |
32 | - } |
|
33 | - else |
|
32 | + } else |
|
34 | 33 | { |
35 | 34 | $this->set($offset, $value); |
36 | 35 | } |
@@ -157,7 +157,7 @@ |
||
157 | 157 | else |
158 | 158 | { |
159 | 159 | $factory = |
160 | - '\Spaark\CompositeUtils\Factory\Reflection' |
|
160 | + '\Spaark\CompositeUtils\Factory\Reflection' |
|
161 | 161 | . '\Reflection' . $signular . 'Factory'; |
162 | 162 | $item = $this->{'build' . $signular} |
163 | 163 | ( |
@@ -174,8 +174,7 @@ |
||
174 | 174 | { |
175 | 175 | $key = $value; |
176 | 176 | $type = ''; |
177 | - } |
|
178 | - else |
|
177 | + } else |
|
179 | 178 | { |
180 | 179 | $key = substr($value, 0, $space); |
181 | 180 | $type = substr($value, $space); |