@@ -76,7 +76,7 @@ |
||
| 76 | 76 | */ |
| 77 | 77 | public function getTime(): float |
| 78 | 78 | { |
| 79 | - return (float)($this->data[self::TIME_KEYWORD] * 1000); |
|
| 79 | + return (float) ($this->data[self::TIME_KEYWORD] * 1000); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | return array_reduce( |
| 68 | 68 | $declared, |
| 69 | - function ($classList, string $className) use ($includedFiles) { |
|
| 69 | + function($classList, string $className) use ($includedFiles) { |
|
| 70 | 70 | $reflClass = new \ReflectionClass($className); |
| 71 | 71 | $sourceFile = $reflClass->getFileName(); |
| 72 | 72 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | ); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - foreach ($fixtures as $fixture){ |
|
| 61 | + foreach ($fixtures as $fixture) { |
|
| 62 | 62 | $this->loadFixture($fixture); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $indexList->loadData(); |
| 74 | 74 | $indexList->loadIndexes(); |
| 75 | - $this->io->writeln('Loaded fixture: '. get_class($indexList)); |
|
| 75 | + $this->io->writeln('Loaded fixture: '.get_class($indexList)); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | { |
| 102 | 102 | return array_filter( |
| 103 | 103 | $options, |
| 104 | - function ($value) { |
|
| 104 | + function($value) { |
|
| 105 | 105 | return !empty($value) || is_int($value) || is_bool($value) || is_float($value); |
| 106 | 106 | } |
| 107 | 107 | ); |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | public function setFilters($filters) |
| 92 | 92 | { |
| 93 | - $this->filters = (array)$filters ?? []; |
|
| 93 | + $this->filters = (array) $filters ?? []; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | return implode( |
| 88 | 88 | ',', |
| 89 | 89 | array_map( |
| 90 | - function (array $host) { |
|
| 90 | + function(array $host) { |
|
| 91 | 91 | return sprintf("%s:%d", $host['host'], $host['port']); |
| 92 | 92 | }, |
| 93 | 93 | $hosts |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | if (method_exists($item, 'toDateTime')) { |
| 49 | - return 'ISODate("' . $item->toDateTime()->format('c') . '")'; |
|
| 49 | + return 'ISODate("'.$item->toDateTime()->format('c').'")'; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | if (method_exists($item, '__toString')) { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | if (is_array($item) || is_object($item)) { |
| 61 | - return self::prepareUnserializableData((array)$item); |
|
| 61 | + return self::prepareUnserializableData((array) $item); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | return $item; |