@@ -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 |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | * Class Pair |
51 | 51 | * @package Platine\Collection\Map |
52 | 52 | */ |
53 | -class Pair |
|
54 | -{ |
|
53 | +class Pair { |
|
55 | 54 | /** |
56 | 55 | * |
57 | 56 | * @var mixed |
@@ -69,8 +68,7 @@ discard block |
||
69 | 68 | * @param mixed $key |
70 | 69 | * @param mixed $value |
71 | 70 | */ |
72 | - public function __construct($key, $value) |
|
73 | - { |
|
71 | + public function __construct($key, $value) { |
|
74 | 72 | $this->key = $key; |
75 | 73 | $this->value = $value; |
76 | 74 | } |
@@ -79,8 +77,7 @@ discard block |
||
79 | 77 | * |
80 | 78 | * @return mixed |
81 | 79 | */ |
82 | - public function getKey() |
|
83 | - { |
|
80 | + public function getKey() { |
|
84 | 81 | return $this->key; |
85 | 82 | } |
86 | 83 | |
@@ -88,8 +85,7 @@ discard block |
||
88 | 85 | * |
89 | 86 | * @return mixed |
90 | 87 | */ |
91 | - public function getValue() |
|
92 | - { |
|
88 | + public function getValue() { |
|
93 | 89 | return $this->value; |
94 | 90 | } |
95 | 91 |
@@ -50,8 +50,7 @@ |
||
50 | 50 | * Class MapInterface |
51 | 51 | * @package Platine\Collection\Map |
52 | 52 | */ |
53 | -interface MapInterface |
|
54 | -{ |
|
53 | +interface MapInterface { |
|
55 | 54 | /** |
56 | 55 | * Add element to the collection |
57 | 56 | * @param mixed $key |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @package Platine\Collection |
52 | 52 | * @template T |
53 | 53 | */ |
54 | -interface MergeableInterface |
|
55 | -{ |
|
54 | +interface MergeableInterface { |
|
56 | 55 | /** |
57 | 56 | * Merge with the given collection |
58 | 57 | * @param BaseCollection<T> $collection |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @package Platine\Collection |
52 | 52 | * @template T |
53 | 53 | */ |
54 | -interface SortableInterface |
|
55 | -{ |
|
54 | +interface SortableInterface { |
|
56 | 55 | /** |
57 | 56 | * Sort the collection |
58 | 57 | * @param callable $callback |
@@ -50,8 +50,7 @@ |
||
50 | 50 | * Class CollectionInterface |
51 | 51 | * @package Platine\Collection |
52 | 52 | */ |
53 | -interface CollectionInterface |
|
54 | -{ |
|
53 | +interface CollectionInterface { |
|
55 | 54 | /** |
56 | 55 | * Add element to the collection |
57 | 56 | * @param mixed $value |