Completed
Push — master ( e4c266...3c5e1d )
by Michał
02:49
created
src/diagnostics/Debug.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * Returns the Dumper in use.
128 128
      *
129
-     * @return  interfaces\Dumper|callable
129
+     * @return  interfaces\Dumper
130 130
      */
131 131
     public static function getDumper() : interfaces\Dumper
132 132
     {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     /**
180 180
      * Returns a default variable dumper to be used by self::dump() if no other has been set.
181 181
      *
182
-     * @return  interfaces\Dumper|callable  $dumper
182
+     * @return  string  $dumper
183 183
      */
184 184
     protected static function getDefaultDumper()
185 185
     {
Please login to merge, or discard this patch.
src/console/input/parameter/definitions/Arguments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @param   input\parameter\values\Arguments    $values
52 52
      * @return  input\Argument
53 53
      */
54
-    public function getNextDefinition(input\parameter\values\Arguments $values) : ?input\Argument
54
+    public function getNextDefinition(input\parameter\values\Arguments $values) : ? input\Argument
55 55
     {
56 56
         $nextIndex = $values->count();
57 57
 
Please login to merge, or discard this patch.
src/console/input/Definition.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -70,6 +70,7 @@
 block discarded – undo
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).
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/core/collections/traits/Collection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/console/input/formats/tokens/Argv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/console/interfaces/Input.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/core/collections/interfaces/NamedObjectSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/core/collections/traits/NamedObjectSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/utils/Func.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.