@@ -206,12 +206,12 @@ discard block |
||
206 | 206 | : null; |
207 | 207 | } |
208 | 208 | |
209 | - /** |
|
210 | - * |
|
211 | - * @param BaseCollection<T> $collection |
|
212 | - * @return bool |
|
213 | - * @throws InvalidOperationException |
|
214 | - */ |
|
209 | + /** |
|
210 | + * |
|
211 | + * @param BaseCollection<T> $collection |
|
212 | + * @return bool |
|
213 | + * @throws InvalidOperationException |
|
214 | + */ |
|
215 | 215 | public function equals(BaseCollection $collection): bool |
216 | 216 | { |
217 | 217 | if (!$collection instanceof self) { |
@@ -236,11 +236,11 @@ discard block |
||
236 | 236 | $this->initializePairs($data); |
237 | 237 | } |
238 | 238 | |
239 | - /** |
|
240 | - * Return the value for given key |
|
241 | - * @param mixed $key |
|
242 | - * @return T|null |
|
243 | - */ |
|
239 | + /** |
|
240 | + * Return the value for given key |
|
241 | + * @param mixed $key |
|
242 | + * @return T|null |
|
243 | + */ |
|
244 | 244 | public function get(mixed $key): mixed |
245 | 245 | { |
246 | 246 | return $this->data->offsetExists($key) |
@@ -248,11 +248,11 @@ discard block |
||
248 | 248 | : null; |
249 | 249 | } |
250 | 250 | |
251 | - /** |
|
252 | - * {@inheritedoc} |
|
253 | - * @param HashMap<T> $collection |
|
254 | - * @return HashMap<T> |
|
255 | - */ |
|
251 | + /** |
|
252 | + * {@inheritedoc} |
|
253 | + * @param HashMap<T> $collection |
|
254 | + * @return HashMap<T> |
|
255 | + */ |
|
256 | 256 | public function merge(BaseCollection $collection): BaseCollection |
257 | 257 | { |
258 | 258 | TypeCheck::isEqual( |
@@ -296,9 +296,9 @@ discard block |
||
296 | 296 | throw new InvalidOperationException('Can not call this method in map'); |
297 | 297 | } |
298 | 298 | |
299 | - /** |
|
300 | - * {@inheritedoc} |
|
301 | - */ |
|
299 | + /** |
|
300 | + * {@inheritedoc} |
|
301 | + */ |
|
302 | 302 | public function remove(mixed $key): void |
303 | 303 | { |
304 | 304 | if ($this->isEmpty()) { |
@@ -315,12 +315,12 @@ discard block |
||
315 | 315 | $this->data->offsetUnset($key); |
316 | 316 | } |
317 | 317 | |
318 | - /** |
|
319 | - * |
|
320 | - * @param int $offset |
|
321 | - * @param int|null $length |
|
322 | - * @return HashMap<T>|null |
|
323 | - */ |
|
318 | + /** |
|
319 | + * |
|
320 | + * @param int $offset |
|
321 | + * @param int|null $length |
|
322 | + * @return HashMap<T>|null |
|
323 | + */ |
|
324 | 324 | public function slice(int $offset, ?int $length = null): ?BaseCollection |
325 | 325 | { |
326 | 326 | $newData = array_slice($this->all(), $offset, $length, true); |
@@ -334,11 +334,11 @@ discard block |
||
334 | 334 | : null; |
335 | 335 | } |
336 | 336 | |
337 | - /** |
|
338 | - * |
|
339 | - * @param callable $callback |
|
340 | - * @return HashMap<T>|null |
|
341 | - */ |
|
337 | + /** |
|
338 | + * |
|
339 | + * @param callable $callback |
|
340 | + * @return HashMap<T>|null |
|
341 | + */ |
|
342 | 342 | public function sort(callable $callback): ?BaseCollection |
343 | 343 | { |
344 | 344 | $data = $this->all(); |