@@ -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 | . '(.*)' |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | private function getScalar($value) |
| 28 | 28 | { |
| 29 | 29 | return |
| 30 | - (is_object($value) ? spl_object_hash($value) |
|
| 30 | + (is_object($value) ? spl_object_hash($value) |
|
| 31 | 31 | : (is_array($value) ? implode($value) |
| 32 | 32 | : ( (string)$value))); |
| 33 | 33 | } |
@@ -43,7 +43,9 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function popMultiple($i = 1) |
| 45 | 45 | { |
| 46 | - if ($i < 1) return NULL; |
|
| 46 | + if ($i < 1) { |
|
| 47 | + return NULL; |
|
| 48 | + } |
|
| 47 | 49 | |
| 48 | 50 | $ret = array_slice($this->data, -1 * $i); |
| 49 | 51 | $this->data = array_slice($this->data, 0, -1 * $i); |
@@ -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 |