@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * {@inheritDoc} |
| 72 | - * @return $this |
|
| 72 | + * @return Dictionary |
|
| 73 | 73 | */ |
| 74 | 74 | public function groupBy($callback) |
| 75 | 75 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * {@inheritDoc} |
| 93 | - * @return $this |
|
| 93 | + * @return Dictionary |
|
| 94 | 94 | */ |
| 95 | 95 | public function indexBy($callback) |
| 96 | 96 | { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * @param $key - The key to set a value. |
| 23 | 23 | * @param $value - The value to add. |
| 24 | 24 | * |
| 25 | - * @return - A shallow copy of the updated current collection itself. |
|
| 25 | + * @return Dictionary A shallow copy of the updated current collection itself. |
|
| 26 | 26 | */ |
| 27 | 27 | public function add($key, $value); |
| 28 | 28 | } |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | */ |
| 111 | 111 | public function removeAll(Iterable $iterable) |
| 112 | 112 | { |
| 113 | - $iterable->each(function ($item) { |
|
| 113 | + $iterable->each(function($item) { |
|
| 114 | 114 | if ($this->contains($item)) { |
| 115 | 115 | $this->remove($item); |
| 116 | 116 | } |
@@ -242,8 +242,8 @@ |
||
| 242 | 242 | { |
| 243 | 243 | /** @var MapInterface $results */ |
| 244 | 244 | $results = new static(); |
| 245 | - $this->each(function (Iterable $subArray) use ($results) { |
|
| 246 | - $subArray->each(function ($item, $key) use ($results) { |
|
| 245 | + $this->each(function(Iterable $subArray) use ($results) { |
|
| 246 | + $subArray->each(function($item, $key) use ($results) { |
|
| 247 | 247 | $results->add($key, $item); |
| 248 | 248 | }); |
| 249 | 249 | }); |
@@ -245,8 +245,8 @@ |
||
| 245 | 245 | { |
| 246 | 246 | /** @var VectorInterface $results */ |
| 247 | 247 | $results = new static(); |
| 248 | - $this->each(function (Iterable $subArray) use ($results) { |
|
| 249 | - $subArray->each(function ($item) use ($results) { |
|
| 248 | + $this->each(function(Iterable $subArray) use ($results) { |
|
| 249 | + $subArray->each(function($item) use ($results) { |
|
| 250 | 250 | $results->add($item); |
| 251 | 251 | }); |
| 252 | 252 | }); |