@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | Assertion::inArray($position, [self::POSITION_CENTER, self::POSITION_RIGHT, self::POSITION_LEFT]); |
43 | 43 | |
44 | 44 | $this->setText($text); |
45 | - $this->position = $position; |
|
45 | + $this->position = $position; |
|
46 | 46 | $this->alternateText = $alt; |
47 | 47 | } |
48 | 48 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $padding = $style->getContentWidth() - $this->artLength; |
60 | 60 | |
61 | - return array_map(function ($row) use ($padding) { |
|
61 | + return array_map(function($row) use ($padding) { |
|
62 | 62 | switch ($this->position) { |
63 | 63 | case self::POSITION_LEFT: |
64 | 64 | break; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | break; |
68 | 68 | case self::POSITION_CENTER: |
69 | 69 | default: |
70 | - $left = ceil($padding / 2); |
|
70 | + $left = ceil($padding/2); |
|
71 | 71 | $row = sprintf('%s%s', str_repeat(' ', $left), $row); |
72 | 72 | break; |
73 | 73 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function setText(string $text) : void |
107 | 107 | { |
108 | - $this->text = implode("\n", array_map(function (string $line) { |
|
108 | + $this->text = implode("\n", array_map(function(string $line) { |
|
109 | 109 | return rtrim($line, ' '); |
110 | 110 | }, explode("\n", $text))); |
111 | 111 |