@@ -70,6 +70,7 @@ |
||
| 70 | 70 | * pass a Definition as the first argument to this method right |
| 71 | 71 | * away, in which case the default of "true" will be used). |
| 72 | 72 | * @param Definition ...$definitions The Definitions to merge with this one. |
| 73 | + * @param Definition[] $definitions |
|
| 73 | 74 | * @return Definition The merged Definition as a new instance. |
| 74 | 75 | * @throws \InvalidArgumentException When one or more of the parameters is not a Definition |
| 75 | 76 | * instance (not including the $mergeArguments bool). |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | public function __construct($arguments = null, $options = null) |
| 36 | 36 | { |
| 37 | 37 | $this->arguments = $arguments instanceof definitions\Arguments ? $arguments : new definitions\Arguments($arguments); |
| 38 | - $this->options = $arguments instanceof definitions\Options ? $options : new definitions\Options($options); |
|
| 38 | + $this->options = $arguments instanceof definitions\Options ? $options : new definitions\Options($options); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -294,7 +294,7 @@ |
||
| 294 | 294 | * retain the functionality of methods like map() or reduce() which return new instances of the Collection. |
| 295 | 295 | * |
| 296 | 296 | * @param mixed $items The items to populate the new Collection with. |
| 297 | - * @return interfaces\Collection |
|
| 297 | + * @return Collection |
|
| 298 | 298 | */ |
| 299 | 299 | protected function derive($items) : interfaces\Collection |
| 300 | 300 | { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | foreach ($this->items as $token) { |
| 29 | 29 | |
| 30 | - if ($token === $parameter || 0 === strpos($token, $parameter . '=')) { |
|
| 30 | + if ($token === $parameter || 0 === strpos($token, $parameter.'=')) { |
|
| 31 | 31 | if (false !== $pos = strpos($parameter, '=')) { |
| 32 | 32 | return substr($token, $pos + 1); |
| 33 | 33 | } |
@@ -38,12 +38,12 @@ |
||
| 38 | 38 | * |
| 39 | 39 | * @return console\input\parameter\values\Arguments |
| 40 | 40 | */ |
| 41 | - public function arguments() : ?console\input\parameter\values\Arguments; |
|
| 41 | + public function arguments() : ? console\input\parameter\values\Arguments; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Returns the Input Options collection. |
| 45 | 45 | * |
| 46 | 46 | * @return console\input\parameter\values\Options |
| 47 | 47 | */ |
| 48 | - public function options() : ?console\input\parameter\values\Options; |
|
| 48 | + public function options() : ? console\input\parameter\values\Options; |
|
| 49 | 49 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * the Set. |
| 27 | 27 | * @return core\interfaces\Named The object or the default value given if the item couldn't be found. |
| 28 | 28 | */ |
| 29 | - public function get(string $name, core\interfaces\Named $default = null) : ?core\interfaces\Named; |
|
| 29 | + public function get(string $name, core\interfaces\Named $default = null) : ? core\interfaces\Named; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Adds the given Named Object to the Set. |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * @see \nyx\core\collections\interfaces\NamedObjectSet::get() |
| 47 | 47 | */ |
| 48 | - public function get(string $name, core\interfaces\Named $default = null) : ?core\interfaces\Named |
|
| 48 | + public function get(string $name, core\interfaces\Named $default = null) : ? core\interfaces\Named |
|
| 49 | 49 | { |
| 50 | 50 | return $this->items[$name] ?? $default; |
| 51 | 51 | } |
@@ -77,6 +77,7 @@ discard block |
||
| 77 | 77 | * Example: Func::compose(f, g, h)(x) is the equivalent of f(g(h(x))). |
| 78 | 78 | * |
| 79 | 79 | * @param callable[] ...$callables The callables to compose. |
| 80 | + * @param string $callables |
|
| 80 | 81 | * @return \Closure |
| 81 | 82 | */ |
| 82 | 83 | public static function compose(callable ...$callables) : \Closure |
@@ -185,6 +186,7 @@ discard block |
||
| 185 | 186 | * |
| 186 | 187 | * @param callable $callback The callable to wrap. |
| 187 | 188 | * @param mixed ...$prependedArgs The arguments to prepend to the callback. |
| 189 | + * @param string $prependedArgs |
|
| 188 | 190 | * @return \Closure The wrapper. |
| 189 | 191 | */ |
| 190 | 192 | public static function partial(callable $callback, ...$prependedArgs) : \Closure |
@@ -200,6 +202,7 @@ discard block |
||
| 200 | 202 | * |
| 201 | 203 | * @param callable $callback The callable to wrap. |
| 202 | 204 | * @param mixed ...$appendedArgs The arguments to append to the callback. |
| 205 | + * @param string $appendedArgs |
|
| 203 | 206 | * @return \Closure The wrapper. |
| 204 | 207 | */ |
| 205 | 208 | public static function partialRight(callable $callback, ...$appendedArgs) : \Closure |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @see \nyx\core\collections\interfaces\Sequence::prepend() |
| 47 | + * @param \nyx\diagnostics\debug\Frame $item |
|
| 47 | 48 | */ |
| 48 | 49 | public function prepend($item) : interfaces\Sequence |
| 49 | 50 | { |
@@ -84,6 +85,7 @@ discard block |
||
| 84 | 85 | |
| 85 | 86 | /** |
| 86 | 87 | * @see \nyx\core\collections\interfaces\Sequence::contains() |
| 88 | + * @param \nyx\diagnostics\debug\Frame $item |
|
| 87 | 89 | */ |
| 88 | 90 | public function contains($item) : bool |
| 89 | 91 | { |
@@ -18,6 +18,7 @@ |
||
| 18 | 18 | * Handles a Throwable. |
| 19 | 19 | * |
| 20 | 20 | * @param \Throwable $throwable |
| 21 | + * @return void |
|
| 21 | 22 | */ |
| 22 | 23 | public function handle(\Throwable $throwable); |
| 23 | 24 | } |