@@ -50,8 +50,7 @@ |
||
| 50 | 50 | * @class IterableInterface |
| 51 | 51 | * @package Platine\Collection |
| 52 | 52 | */ |
| 53 | -interface IterableInterface |
|
| 54 | -{ |
|
| 53 | +interface IterableInterface { |
|
| 55 | 54 | /** |
| 56 | 55 | * Loop on each collection element with the given callback |
| 57 | 56 | * @param callable $callback |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | * @param array<mixed, mixed> $data |
| 68 | 68 | * @param string $type The type of this collection elements |
| 69 | 69 | */ |
| 70 | - public function __construct(array $data = [], protected string $type = '') |
|
| 71 | - { |
|
| 70 | + public function __construct(array $data = [], protected string $type = '') { |
|
| 72 | 71 | foreach ($data as $value) { |
| 73 | 72 | $this->validateEntry($value); |
| 74 | 73 | } |