@@ -19,17 +19,17 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function getArrayCopy() |
| 21 | 21 | { |
| 22 | - $data = []; |
|
| 22 | + $data = [ ]; |
|
| 23 | 23 | $properties = get_object_vars($this); |
| 24 | 24 | $reflectionClass = new \Zend_Reflection_Class($this); |
| 25 | 25 | foreach ($properties as $property => $value) { |
| 26 | 26 | // Skip property if it is not accessible |
| 27 | - if (! $reflectionClass->hasProperty($property)) { |
|
| 27 | + if (!$reflectionClass->hasProperty($property)) { |
|
| 28 | 28 | continue; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | // Only process properties that aren't null |
| 32 | - if (! is_null($value)) { |
|
| 32 | + if (!is_null($value)) { |
|
| 33 | 33 | // Gather phpdoc from property |
| 34 | 34 | $phpDoc = $reflectionClass->getProperty($property)->getDocComment(); |
| 35 | 35 | $type = $phpDoc->getTag('var')->getDescription(); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | // Prepend 'get' to the getter method. |
| 39 | 39 | $getter = 'get' . ucfirst($property); |
| 40 | - if (is_object($value) && ! $this->$property instanceof Expr) { |
|
| 40 | + if (is_object($value) && !$this->$property instanceof Expr) { |
|
| 41 | 41 | $object = true; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // Abort if the method does not exist |
| 55 | - if (! method_exists($this, $getter)) { |
|
| 55 | + if (!method_exists($this, $getter)) { |
|
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |