@@ -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."); |