@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | */ |
| 484 | 484 | public function contains($value, $index = null) |
| 485 | 485 | { |
| 486 | - return (bool) $this->first(function ($val, $key) use ($value, $index) { |
|
| 486 | + return (bool) $this->first(function($val, $key) use ($value, $index) { |
|
| 487 | 487 | if (is_callable($value)) { |
| 488 | 488 | $found = $value($val, $key); |
| 489 | 489 | } else { |
@@ -515,11 +515,11 @@ discard block |
||
| 515 | 515 | public function duplicates() |
| 516 | 516 | { |
| 517 | 517 | $dups = []; |
| 518 | - $this->walk(function ($val, $key) use (&$dups) { |
|
| 518 | + $this->walk(function($val, $key) use (&$dups) { |
|
| 519 | 519 | $dups[$val][] = $key; |
| 520 | 520 | }); |
| 521 | 521 | |
| 522 | - return static::factory($dups)->filter(function ($val) { |
|
| 522 | + return static::factory($dups)->filter(function($val) { |
|
| 523 | 523 | return count($val) > 1; |
| 524 | 524 | }); |
| 525 | 525 | } |
@@ -665,7 +665,7 @@ discard block |
||
| 665 | 665 | public function pairs() |
| 666 | 666 | { |
| 667 | 667 | return static::factory(array_map( |
| 668 | - function ($key, $val) { |
|
| 668 | + function($key, $val) { |
|
| 669 | 669 | return [$key, $val]; |
| 670 | 670 | }, |
| 671 | 671 | array_keys($this->data), |
@@ -898,7 +898,7 @@ discard block |
||
| 898 | 898 | } |
| 899 | 899 | } |
| 900 | 900 | // if row contains an array it isn't tabular |
| 901 | - if (array_reduce($row, function ($carry, $item) { |
|
| 901 | + if (array_reduce($row, function($carry, $item) { |
|
| 902 | 902 | return is_array($item) && $carry; |
| 903 | 903 | }, true)) { |
| 904 | 904 | return false; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use BadMethodCallException; |
| 14 | 14 | use InvalidArgumentException; |
| 15 | - |
|
| 16 | 15 | use SplObjectStorage; |
| 17 | 16 | use function Noz\is_traversable; |
| 18 | 17 | |