@@ -61,8 +61,7 @@ |
||
61 | 61 | if (is_int($key)) |
62 | 62 | { |
63 | 63 | array_splice($this->collection, $key, 1); |
64 | - } |
|
65 | - else if (is_string($key)) |
|
64 | + } else if (is_string($key)) |
|
66 | 65 | { |
67 | 66 | unset($this->collection[$key]); |
68 | 67 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @throws \Fusion\Collection\Exceptions\CollectionException |
46 | 46 | */ |
47 | - public function __construct(CollectionValidationInterface $validator ,string $acceptedType, array $items = []) |
|
47 | + public function __construct(CollectionValidationInterface $validator, string $acceptedType, array $items = []) |
|
48 | 48 | { |
49 | 49 | $validator->validateNonEmptyAcceptedType($acceptedType); |
50 | 50 | $this->acceptedType = $acceptedType; |