@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | |
33 | 33 | public function dump($dataType, int $indent):string |
34 | 34 | { |
35 | - if(is_null($dataType)) { |
|
35 | + if (is_null($dataType)) { |
|
36 | 36 | return ''; |
37 | - } elseif(is_resource($dataType)) { |
|
37 | + } elseif (is_resource($dataType)) { |
|
38 | 38 | return get_resource_type($dataType); |
39 | 39 | } elseif (is_scalar($dataType)) { |
40 | 40 | return $this->dumpScalar($dataType); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | if (is_array($compound)) { |
63 | 63 | $iterator = new \ArrayIterator($compound); |
64 | 64 | $mask = '-'; |
65 | - $refKeys = range(0, count($compound)-1); |
|
65 | + $refKeys = range(0, count($compound) - 1); |
|
66 | 66 | if (array_keys($compound) !== $refKeys) { |
67 | 67 | $mask = '%s:'; |
68 | 68 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | foreach ($iterable as $key => $value) { |
114 | 114 | $separator = "\n"; |
115 | 115 | $valueIndent = $indent + self::INDENT; |
116 | - if (is_scalar($value) || $value instanceof Compact || $value instanceof \DateTime ) { |
|
116 | + if (is_scalar($value) || $value instanceof Compact || $value instanceof \DateTime) { |
|
117 | 117 | $separator = ' '; |
118 | 118 | $valueIndent = 0; |
119 | 119 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $max = count($subject); |
144 | 144 | $objectAsArray = is_array($subject) ? $subject : $subject->getArrayCopy(); |
145 | 145 | $source = $objectAsArray; |
146 | - if(array_keys($objectAsArray) === range(0, $max-1)) { |
|
146 | + if (array_keys($objectAsArray) === range(0, $max - 1)) { |
|
147 | 147 | $structureFormat = '[%s]'; |
148 | 148 | $keyFormat = ''; |
149 | 149 | } |