@@ -52,8 +52,7 @@ |
||
| 52 | 52 | * @class TypeCheck |
| 53 | 53 | * @package Platine\Collection |
| 54 | 54 | */ |
| 55 | -class TypeCheck |
|
| 56 | -{ |
|
| 55 | +class TypeCheck { |
|
| 57 | 56 | /** |
| 58 | 57 | * |
| 59 | 58 | * @param mixed $value1 |
@@ -63,8 +63,7 @@ |
||
| 63 | 63 | * Create new instance |
| 64 | 64 | * @param array<int|string, T> $data |
| 65 | 65 | */ |
| 66 | - public function __construct(protected array $data = []) |
|
| 67 | - { |
|
| 66 | + public function __construct(protected array $data = []) { |
|
| 68 | 67 | } |
| 69 | 68 | |
| 70 | 69 | /** |
@@ -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 | } |