@@ -82,7 +82,7 @@ |
||
82 | 82 | |
83 | 83 | $opForEach = static::OPERATOR_FOR_EACH; |
84 | 84 | if (preg_match("/^[{$opForEach}]+$/", $key)) { |
85 | - for ($i = 0; $i < strlen($key) - 1; ++$i) { |
|
85 | + for ($i = 0; $i < strlen($key)-1; ++$i) { |
|
86 | 86 | $pathStack[] = static::OPERATOR_FOR_EACH; |
87 | 87 | } |
88 | 88 | $key = static::OPERATOR_FOR_EACH; |
@@ -126,11 +126,11 @@ |
||
126 | 126 | $i = 0; |
127 | 127 | |
128 | 128 | while ($bitmap) { |
129 | - if ($bitmap % 2) { |
|
129 | + if ($bitmap%2) { |
|
130 | 130 | $result[] = $i; |
131 | 131 | } |
132 | 132 | |
133 | - $bitmap = (int)($bitmap / 2); |
|
133 | + $bitmap = (int) ($bitmap/2); |
|
134 | 134 | ++$i; |
135 | 135 | } |
136 | 136 |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | */ |
271 | 271 | protected static function getPropertyGetterName(string $propertyName): string |
272 | 272 | { |
273 | - return 'get' . ucfirst($propertyName); |
|
273 | + return 'get'.ucfirst($propertyName); |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | /** |
@@ -282,6 +282,6 @@ discard block |
||
282 | 282 | */ |
283 | 283 | protected static function getPropertySetterName(string $propertyName): string |
284 | 284 | { |
285 | - return 'set' . ucfirst($propertyName); |
|
285 | + return 'set'.ucfirst($propertyName); |
|
286 | 286 | } |
287 | 287 | } |
@@ -229,7 +229,7 @@ |
||
229 | 229 | * |
230 | 230 | * @return TValue|null |
231 | 231 | */ |
232 | - protected static function &getRefFromArrayAccess(ArrayAccess &$container, $key, $defaultValue) |
|
232 | + protected static function &getRefFromArrayAccess(ArrayAccess & $container, $key, $defaultValue) |
|
233 | 233 | { |
234 | 234 | if (!static::existsInArrayAccess($container, $key)) { |
235 | 235 | /** @var TValue $defaultValue */ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** @var numeric $source */ |
57 | 57 | return date($format, intval($source)); |
58 | 58 | } |
59 | - return gmdate($format, $source + 3600 * $timezone); |
|
59 | + return gmdate($format, $source+3600*$timezone); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | if ($source === null || !is_scalar($source)) { |
89 | 89 | throw SchematorException::createAsBadFilterSource($context); |
90 | 90 | } |
91 | - return explode($delimiter, (string)$source); |
|
91 | + return explode($delimiter, (string) $source); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if ($source === null || !is_array($source)) { |
119 | 119 | throw SchematorException::createAsBadFilterSource($context); |
120 | 120 | } |
121 | - return array_sum($source) / count($source); |
|
121 | + return array_sum($source)/count($source); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |