@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @return self |
77 | 77 | */ |
78 | - public function foreach(\Closure $function): self; |
|
78 | + public function foreach (\Closure $function): self; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @return self |
77 | 77 | */ |
78 | - public function foreach(\Closure $function): self; |
|
78 | + public function foreach (\Closure $function): self; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
@@ -8,6 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | interface SetInterface extends SizeableInterface, PrimitiveInterface, \Countable, \Iterator |
10 | 10 | { |
11 | + /** |
|
12 | + * @return void |
|
13 | + */ |
|
11 | 14 | public function __construct(string $type); |
12 | 15 | |
13 | 16 | /** |
@@ -198,7 +198,7 @@ |
||
198 | 198 | /** |
199 | 199 | * {@inheritdoc} |
200 | 200 | */ |
201 | - public function foreach(\Closure $function): SequenceInterface |
|
201 | + public function foreach (\Closure $function): SequenceInterface |
|
202 | 202 | { |
203 | 203 | foreach ($this->values as $value) { |
204 | 204 | $function($value); |
@@ -266,7 +266,7 @@ |
||
266 | 266 | /** |
267 | 267 | * {@inheritdoc} |
268 | 268 | */ |
269 | - public function foreach(\Closure $function): MapInterface |
|
269 | + public function foreach (\Closure $function): MapInterface |
|
270 | 270 | { |
271 | 271 | foreach ($this->keys as $index => $key) { |
272 | 272 | $function($key, $this->values->get($index)); |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @return self |
77 | 77 | */ |
78 | - public function foreach(\Closure $function): self; |
|
78 | + public function foreach (\Closure $function): self; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
@@ -8,6 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | interface SetInterface extends SizeableInterface, PrimitiveInterface, \Countable, \Iterator |
10 | 10 | { |
11 | + /** |
|
12 | + * @return void |
|
13 | + */ |
|
11 | 14 | public function __construct(string $type); |
12 | 15 | |
13 | 16 | /** |
@@ -185,7 +185,7 @@ |
||
185 | 185 | /** |
186 | 186 | * {@inheritdoc} |
187 | 187 | */ |
188 | - public function foreach(\Closure $function): SetInterface |
|
188 | + public function foreach (\Closure $function): SetInterface |
|
189 | 189 | { |
190 | 190 | $this->values->foreach($function); |
191 | 191 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | public function __construct(string $type) |
16 | 16 | { |
17 | - $this->function = 'is_' . $type; |
|
17 | + $this->function = 'is_'.$type; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | private function getSpecFor(string $type): SpecificationInterface |
21 | 21 | { |
22 | - if (function_exists('is_' . $type)) { |
|
22 | + if (function_exists('is_'.$type)) { |
|
23 | 23 | return new PrimitiveType($type); |
24 | 24 | } |
25 | 25 |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | */ |
532 | 532 | public function append(string $string): self |
533 | 533 | { |
534 | - return new self((string) $this . $string); |
|
534 | + return new self((string) $this.$string); |
|
535 | 535 | } |
536 | 536 | |
537 | 537 | /** |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | */ |
544 | 544 | public function prepend(string $string): self |
545 | 545 | { |
546 | - return new self($string . (string) $this); |
|
546 | + return new self($string.(string) $this); |
|
547 | 547 | } |
548 | 548 | |
549 | 549 | /** |