@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function create($totalWidth, $columns, $index = 0, $height = 5.0, $autoNewLine = false, $maxLines = 1) |
| 59 | 59 | { |
| 60 | 60 | $totalCoef |
| 61 | - = ($totalWidth - 1) / array_reduce($columns, function ($carry, $item) { |
|
| 61 | + = ($totalWidth - 1) / array_reduce($columns, function($carry, $item) { |
|
| 62 | 62 | return $carry + $item['width']; |
| 63 | 63 | }); |
| 64 | 64 | |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | /** @var AbstractChatCommand $command */ |
| 70 | 70 | $command = $manialink->getData('command'); |
| 71 | 71 | |
| 72 | - $column1Width = $manialink->getContentFrame()->getWidth() * (2/3); |
|
| 73 | - $column2Width = $manialink->getContentFrame()->getWidth() * (1/3) - 1; |
|
| 72 | + $column1Width = $manialink->getContentFrame()->getWidth() * (2 / 3); |
|
| 73 | + $column2Width = $manialink->getContentFrame()->getWidth() * (1 / 3) - 1; |
|
| 74 | 74 | |
| 75 | 75 | /* |
| 76 | 76 | * COLUMN 1 Description of the chat command |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $column1Width - 21, |
| 125 | 125 | [ |
| 126 | 126 | [ |
| 127 | - 'text' => "Use '/" . $this->currentCommand->getCommand() . " -h' to get help on the usage of the command.", |
|
| 127 | + 'text' => "Use '/".$this->currentCommand->getCommand()." -h' to get help on the usage of the command.", |
|
| 128 | 128 | 'width' => 1, |
| 129 | 129 | 'translatable' => false |
| 130 | 130 | |