@@ -216,9 +216,9 @@ discard block |
||
| 216 | 216 | : null; |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | - /** |
|
| 220 | - * {@inheritedoc} |
|
| 221 | - */ |
|
| 219 | + /** |
|
| 220 | + * {@inheritedoc} |
|
| 221 | + */ |
|
| 222 | 222 | public function equals(BaseCollection $collection): bool |
| 223 | 223 | { |
| 224 | 224 | if (!$collection instanceof self) { |
@@ -243,9 +243,9 @@ discard block |
||
| 243 | 243 | $this->initializePairs($data); |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | - /** |
|
| 247 | - * {@inheritedoc} |
|
| 248 | - */ |
|
| 246 | + /** |
|
| 247 | + * {@inheritedoc} |
|
| 248 | + */ |
|
| 249 | 249 | public function get($key) |
| 250 | 250 | { |
| 251 | 251 | return $this->data->offsetExists($key) |
@@ -253,10 +253,10 @@ discard block |
||
| 253 | 253 | : null; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - /** |
|
| 257 | - * {@inheritedoc} |
|
| 258 | - * @param HashMap<T> $collection |
|
| 259 | - */ |
|
| 256 | + /** |
|
| 257 | + * {@inheritedoc} |
|
| 258 | + * @param HashMap<T> $collection |
|
| 259 | + */ |
|
| 260 | 260 | public function merge(BaseCollection $collection): BaseCollection |
| 261 | 261 | { |
| 262 | 262 | TypeCheck::isEqual( |
@@ -284,9 +284,9 @@ discard block |
||
| 284 | 284 | ); |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | - /** |
|
| 288 | - * {@inheritedoc} |
|
| 289 | - */ |
|
| 287 | + /** |
|
| 288 | + * {@inheritedoc} |
|
| 289 | + */ |
|
| 290 | 290 | public function remove($key): void |
| 291 | 291 | { |
| 292 | 292 | if ($this->isEmpty()) { |
@@ -303,9 +303,9 @@ discard block |
||
| 303 | 303 | $this->data->offsetUnset($key); |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | - /** |
|
| 307 | - * {@inheritedoc} |
|
| 308 | - */ |
|
| 306 | + /** |
|
| 307 | + * {@inheritedoc} |
|
| 308 | + */ |
|
| 309 | 309 | public function slice(int $offset, ?int $length = null): ?BaseCollection |
| 310 | 310 | { |
| 311 | 311 | $newData = array_slice($this->all(), $offset, $length, true); |
@@ -319,9 +319,9 @@ discard block |
||
| 319 | 319 | : null; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | - /** |
|
| 323 | - * {@inheritedoc} |
|
| 324 | - */ |
|
| 322 | + /** |
|
| 323 | + * {@inheritedoc} |
|
| 324 | + */ |
|
| 325 | 325 | public function sort(callable $callback): ?BaseCollection |
| 326 | 326 | { |
| 327 | 327 | $data = $this->all(); |
@@ -335,9 +335,9 @@ discard block |
||
| 335 | 335 | : null; |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | - /** |
|
| 339 | - * {@inheritedoc} |
|
| 340 | - */ |
|
| 338 | + /** |
|
| 339 | + * {@inheritedoc} |
|
| 340 | + */ |
|
| 341 | 341 | public function update($key, $value): bool |
| 342 | 342 | { |
| 343 | 343 | $this->validateEntry($key, $value); |