@@ -45,10 +45,9 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * {@inheritDoc} |
| 47 | 47 | */ |
| 48 | - public function splice |
|
| 49 | - ( |
|
| 48 | + public function splice( |
|
| 50 | 49 | int $offset, |
| 51 | - ?int $length = null, |
|
| 50 | + ? int $length = null, |
|
| 52 | 51 | array $replacement = [] |
| 53 | 52 | ) |
| 54 | 53 | { |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | if ($offset === null) |
| 30 | 30 | { |
| 31 | 31 | $this->push($value); |
| 32 | - } |
|
| 33 | - else |
|
| 32 | + } else |
|
| 34 | 33 | { |
| 35 | 34 | $this->splice($offset, 0, [$value]); |
| 36 | 35 | } |
@@ -33,10 +33,9 @@ |
||
| 33 | 33 | * @param int $length The number of elements to remove |
| 34 | 34 | * @param array $items Items to add |
| 35 | 35 | */ |
| 36 | - public function splice |
|
| 37 | - ( |
|
| 36 | + public function splice( |
|
| 38 | 37 | int $offset, |
| 39 | - ?int$length = null, |
|
| 38 | + ? int$length = null, |
|
| 40 | 39 | array $items = [] |
| 41 | 40 | ); |
| 42 | 41 | |