@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | $this->text = $text; |
| 15 | 15 | $batches = $this->splitText(); |
| 16 | - $lengths = array_map(function ($it) { |
|
| 16 | + $lengths = array_map(function($it) { |
|
| 17 | 17 | return strlen($it); |
| 18 | 18 | }, $batches); |
| 19 | 19 | $this->width = max($lengths); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function render(): GlyphInline |
| 31 | 31 | { |
| 32 | 32 | $batches = $this->splitText(); |
| 33 | - $lengths = array_map(function ($it) { |
|
| 33 | + $lengths = array_map(function($it) { |
|
| 34 | 34 | return strlen($it); |
| 35 | 35 | }, $batches); |
| 36 | 36 | $this->height = count($batches); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | $symbols = str_split($resultString) ?? []; |
| 52 | 52 | |
| 53 | - $this->renderMap = $this->getWidth() ? array_chunk(array_map(function ($value) { |
|
| 53 | + $this->renderMap = $this->getWidth() ? array_chunk(array_map(function($value) { |
|
| 54 | 54 | return new Symbol($value); |
| 55 | 55 | }, $symbols), $this->getWidth()) : []; |
| 56 | 56 | $this->height = count($this->renderMap); |