Completed
Push — master ( ba5f17...e08424 )
by Michał
02:48
created
src/notify/interfaces/Transport.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
      * @param   Notifiable                  $notifiable     The Notifiable to send the Notification to.
18 18
      * @param   Notification                $notification   The Notification to send.
19 19
      * @throws  \InvalidArgumentException                   When the Notification is not supported by this Transport.
20
+     * @return void
20 21
      */
21 22
     public function send(Notifiable $notifiable, Notification $notification);
22 23
 
Please login to merge, or discard this patch.
src/notify/transports/mail/interfaces/drivers/Process.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -19,11 +19,13 @@
 block discarded – undo
19 19
 {
20 20
     /**
21 21
      * Starts the Driver's process.
22
+     * @return void
22 23
      */
23 24
     public function start();
24 25
 
25 26
     /**
26 27
      * Stops the Driver's process.
28
+     * @return void
27 29
      */
28 30
     public function stop();
29 31
 
Please login to merge, or discard this patch.
src/console/input/Option.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      *
56 56
      * @return  string
57 57
      */
58
-    public function getShortcut() : ?string
58
+    public function getShortcut() : ? string
59 59
     {
60 60
         return $this->shortcut;
61 61
     }
Please login to merge, or discard this patch.
src/console/Input.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function arguments() : ?input\parameter\values\Arguments
64
+    public function arguments() : ? input\parameter\values\Arguments
65 65
     {
66 66
         return $this->arguments;
67 67
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * {@inheritdoc}
71 71
      */
72
-    public function options() : ?input\parameter\values\Options
72
+    public function options() : ? input\parameter\values\Options
73 73
     {
74 74
         return $this->options;
75 75
     }
Please login to merge, or discard this patch.
src/console/input/formats/tokens/Argv.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function get($parameter, $default = null)
27 27
     {
28 28
         foreach ($this->items as $token) {
29
-            if ($token === $parameter || 0 === strpos($token, $parameter . '=')) {
29
+            if ($token === $parameter || 0 === strpos($token, $parameter.'=')) {
30 30
                 if (false !== $pos = strpos($parameter, '=')) {
31 31
                     return substr($token, $pos + 1);
32 32
                 }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function has($parameter) : bool
45 45
     {
46 46
         foreach ($this->items as $token) {
47
-            if ($token === $parameter || 0 === strpos($token, $parameter . '=')) {
47
+            if ($token === $parameter || 0 === strpos($token, $parameter.'=')) {
48 48
                 return true;
49 49
             }
50 50
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function remove($parameter) : core\collections\interfaces\Map
59 59
     {
60 60
         foreach ($this->items as $key => $token) {
61
-            if ($token === $parameter || 0 === strpos($token, $parameter . '=')) {
61
+            if ($token === $parameter || 0 === strpos($token, $parameter.'=')) {
62 62
                 unset($this->items[$key]);
63 63
             }
64 64
         }
Please login to merge, or discard this patch.
src/console/input/formats/interfaces/Parser.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@
 block discarded – undo
19 19
      * @param   Tokens              $input      The Tokens to be parsed.
20 20
      * @param   values\Arguments    $arguments  The Input Arguments to fill.
21 21
      * @param   values\Options      $options    The Input Options to fill.
22
+     * @return void
22 23
      */
23 24
     public function parse(Tokens $input, values\Arguments $arguments, values\Options $options) : void;
24 25
 }
Please login to merge, or discard this patch.
src/console/output/formatting/interfaces/Style.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      * @throws  \InvalidArgumentException   When the given color is not available.
18 18
      * @return  $this
19 19
      */
20
-    public function setForeground(?string $color) : Style;
20
+    public function setForeground(? string $color) : Style;
21 21
 
22 22
     /**
23 23
      * Sets the background color of this Style.
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @throws  \InvalidArgumentException   When the given color is not available.
27 27
      * @return  $this
28 28
      */
29
-    public function setBackground(?string $color) : Style;
29
+    public function setBackground(? string $color) : Style;
30 30
 
31 31
     /**
32 32
      * Sets one or more emphasis option(s) for this Style.
Please login to merge, or discard this patch.
src/console/output/formatting/styles/Map.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
      * Sets the given Style in the Collection.
45 45
      *
46 46
      * @param   string  $name   The name the Style should be set as.
47
-     * @param   mixed   $value  The Style to set.
48 47
      * @return  $this
49 48
      */
50 49
     public function set(string $name, interfaces\Style $style) : Map
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param   mixed   $default    The default value to return when the given Style does not exist in the Collection.
36 36
      * @return  interfaces\Style    The Style or the default value given if the Style couldn't be found.
37 37
      */
38
-    public function get(string $name, $default = null) : ?interfaces\Style
38
+    public function get(string $name, $default = null) : ? interfaces\Style
39 39
     {
40 40
         return $this->items[strtolower($name)] ?? $default;
41 41
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @param   interfaces\Style    $style  The Style to search for.
110 110
      * @return  string                      The name of the Style or null if it couldn't be found.
111 111
      */
112
-    public function name(interfaces\Style $style) : ?string
112
+    public function name(interfaces\Style $style) : ? string
113 113
     {
114 114
         foreach ($this->items as $key => $value) {
115 115
             if ($value === $style) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * @see Map::get()
125 125
      */
126
-    public function __get(string $name) : ?interfaces\Style
126
+    public function __get(string $name) : ? interfaces\Style
127 127
     {
128 128
         return $this->get($name);
129 129
     }
Please login to merge, or discard this patch.
src/console/output/formatting/Style.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *                                  Defaults to: ['foreground' => 'color', 'background' => 'bg'].
85 85
      * @return  Style                   The Style that was created based on it.
86 86
      */
87
-    public static function fromString(string $string, array $properties = null) : ?Style
87
+    public static function fromString(string $string, array $properties = null) : ? Style
88 88
     {
89 89
         if (!preg_match_all('/([^:]+):([^;]+)(;|$)/', strtolower($string), $matches, PREG_SET_ORDER)) {
90 90
             return null;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param   string  $background     The background color to be set.
119 119
      * @param   array   $options        An array of additional options emphasis to be set.
120 120
      */
121
-    public function __construct(?string $foreground, string $background = null, array $options = null)
121
+    public function __construct(? string $foreground, string $background = null, array $options = null)
122 122
     {
123 123
         if (isset($foreground)) {
124 124
             $this->setForeground($foreground);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * {@inheritDoc}
138 138
      */
139
-    public function setForeground(?string $color) : interfaces\Style
139
+    public function setForeground(? string $color) : interfaces\Style
140 140
     {
141 141
         return $this->setColor('foreground', $color);
142 142
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     /**
145 145
      * {@inheritdoc}
146 146
      */
147
-    public function setBackground(?string $color) : interfaces\Style
147
+    public function setBackground(? string $color) : interfaces\Style
148 148
     {
149 149
         return $this->setColor('background', $color);
150 150
     }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * @param   string  $color  The color to set.
207 207
      * @return  $this
208 208
      */
209
-    protected function setColor(string $type, ?string $color) : interfaces\Style
209
+    protected function setColor(string $type, ? string $color) : interfaces\Style
210 210
     {
211 211
         if (isset($color) && !isset(static::${$type.'s'}[$color])) {
212 212
             throw new \InvalidArgumentException("The $type color [$color] is not recognized.");
Please login to merge, or discard this patch.