@@ -88,7 +88,7 @@ |
||
88 | 88 | public static function find(array $conditions = [], array $options = []): Generator |
89 | 89 | { |
90 | 90 | $conditions = self::filterByFields($conditions); |
91 | - $with = array_key_exists('with', $options) ? (array)$options['with'] : false; |
|
91 | + $with = array_key_exists('with', $options) ? (array) $options['with'] : false; |
|
92 | 92 | unset($options['with']); |
93 | 93 | $result = static::db()->find(static::table(), $conditions, $options); |
94 | 94 | $pk = static::pk(); |
@@ -229,7 +229,7 @@ |
||
229 | 229 | */ |
230 | 230 | protected function progressBar(int $counter, int $total): void |
231 | 231 | { |
232 | - $length = (int) (($counter/$total) * 100); |
|
232 | + $length = (int) (($counter / $total) * 100); |
|
233 | 233 | $active = ($counter === $total) ? '' : '>'; |
234 | 234 | $loadbar = sprintf( |
235 | 235 | "\r[%-100s] %d%% (%s/%s)", |
@@ -144,7 +144,7 @@ |
||
144 | 144 | * @param array|BSONDocument $document |
145 | 145 | * @return array |
146 | 146 | */ |
147 | - private function out(array|BSONDocument $document): array |
|
147 | + private function out(array | BSONDocument $document): array |
|
148 | 148 | { |
149 | 149 | if (is_array($document)) { |
150 | 150 | if (isset($document['_id'])) { |