@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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. |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @param string $background The background color to be set. |
| 83 | 83 | * @param array $options An array of additional options emphasis to be set. |
| 84 | 84 | */ |
| 85 | - public function __construct(?string $foreground, string $background = null, array $options = null) |
|
| 85 | + public function __construct(? string $foreground, string $background = null, array $options = null) |
|
| 86 | 86 | { |
| 87 | 87 | if (isset($foreground)) { |
| 88 | 88 | $this->setForeground($foreground); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * {@inheritDoc} |
| 102 | 102 | */ |
| 103 | - public function setForeground(?string $color) : interfaces\Style |
|
| 103 | + public function setForeground(? string $color) : interfaces\Style |
|
| 104 | 104 | { |
| 105 | 105 | return $this->setColor('foreground', $color); |
| 106 | 106 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * {@inheritdoc} |
| 110 | 110 | */ |
| 111 | - public function setBackground(?string $color) : interfaces\Style |
|
| 111 | + public function setBackground(? string $color) : interfaces\Style |
|
| 112 | 112 | { |
| 113 | 113 | return $this->setColor('background', $color); |
| 114 | 114 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * @param string $color The color to set. |
| 171 | 171 | * @return $this |
| 172 | 172 | */ |
| 173 | - protected function setColor(string $type, ?string $color) : interfaces\Style |
|
| 173 | + protected function setColor(string $type, ? string $color) : interfaces\Style |
|
| 174 | 174 | { |
| 175 | 175 | if (isset($color) && !isset(static::${$type.'s'}[$color])) { |
| 176 | 176 | throw new \InvalidArgumentException("The $type color [$color] is not recognized."); |