@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @param mixed $value |
|
| 33 | + * @param string $value |
|
| 34 | 34 | * |
| 35 | 35 | * @return ImmutableCollection |
| 36 | 36 | */ |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param callable $fn |
| 34 | + * @return void |
|
| 34 | 35 | */ |
| 35 | 36 | public function forAll(callable $fn); |
| 36 | 37 | |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataStructure\Container; |
| 15 | 15 | |
| 16 | +use ArrayAccess; |
|
| 16 | 17 | use Graze\DataStructure\Exception\RegisteredKeyException; |
| 17 | 18 | use IteratorAggregate; |
| 18 | -use ArrayAccess; |
|
| 19 | 19 | |
| 20 | 20 | interface ContainerInterface extends IteratorAggregate, ArrayAccess |
| 21 | 21 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @param string $key |
| 32 | - * @param mixed $value |
|
| 32 | + * @param string $value |
|
| 33 | 33 | * |
| 34 | 34 | * @return ImmutableContainer |
| 35 | 35 | */ |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | { |
| 108 | 108 | $coll = new ImmutableCollection(['foo', 'bar', 'baz']); |
| 109 | 109 | $result = $coll->reduce(function ($carry, $item) { |
| 110 | - return $carry . $item; |
|
| 110 | + return $carry.$item; |
|
| 111 | 111 | }); |
| 112 | 112 | |
| 113 | 113 | $this->assertEquals('foobarbaz', $result); |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | { |
| 102 | 102 | $coll = new Collection(['foo', 'bar', 'baz']); |
| 103 | 103 | $result = $coll->reduce(function ($carry, $item) { |
| 104 | - return $carry . $item; |
|
| 104 | + return $carry.$item; |
|
| 105 | 105 | }); |
| 106 | 106 | |
| 107 | 107 | $this->assertEquals('foobarbaz', $result); |