@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | return $this->newCopy(array_filter( |
| 29 | 29 | $this->items(), |
| 30 | - function ($item) use ($others) : bool |
|
| 30 | + function($item) use ($others) : bool |
|
| 31 | 31 | { |
| 32 | 32 | foreach ($others as $otherCollection) { |
| 33 | 33 | if (in_array($item, $otherCollection->items())) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function find($item) : int |
| 49 | 49 | { |
| 50 | - $position = $this->positionOf($item); |
|
| 50 | + $position=$this->positionOf($item); |
|
| 51 | 51 | $this->mustBeValid($position, $item); |
| 52 | 52 | return $position; |
| 53 | 53 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function findThe($object) : int |
| 61 | 61 | { |
| 62 | - $position = array_search($object, $this->items(), true); |
|
| 62 | + $position=array_search($object, $this->items(), true); |
|
| 63 | 63 | $this->mustBeValid($position, $object); |
| 64 | 64 | return $position; |
| 65 | 65 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @param bool|null $save_indexes Ignored parameter. |
| 46 | 46 | * @return self|static |
| 47 | 47 | */ |
| 48 | - final public static function fromArray($array, $save_indexes = null) : self |
|
| 48 | + final public static function fromArray($array, $save_indexes=null) : self |
|
| 49 | 49 | { |
| 50 | 50 | return new static(...$array); |
| 51 | 51 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @param mixed $initial |
| 25 | 25 | * @return mixed |
| 26 | 26 | */ |
| 27 | - public function reduce(Closure $function, $initial = null) |
|
| 27 | + public function reduce(Closure $function, $initial=null) |
|
| 28 | 28 | { |
| 29 | 29 | return array_reduce($this->items(), $function, $initial); |
| 30 | 30 | } |