@@ -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 | |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | |
| 136 | 136 | public function getHeight() |
| 137 | 137 | { |
| 138 | - return $this->height+2; |
|
| 138 | + return $this->height + 2; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
@@ -66,9 +66,9 @@ |
||
| 66 | 66 | public function render(\DOMDocument $domDocument) |
| 67 | 67 | { |
| 68 | 68 | $containerFrame = new Frame(); |
| 69 | - $containerFrame->setPosition($this->posX-1, $this->posY+1) |
|
| 69 | + $containerFrame->setPosition($this->posX - 1, $this->posY + 1) |
|
| 70 | 70 | ->setZ($this->posZ) |
| 71 | - ->setSize($this->getWidth(), $this->getHeight()+1) |
|
| 71 | + ->setSize($this->getWidth(), $this->getHeight() + 1) |
|
| 72 | 72 | ->setScale($this->scale) |
| 73 | 73 | ->addClasses(['uiContainer', 'uiCheckbox']) |
| 74 | 74 | ->addDataAttribute('checked', $this->isChecked() ? "1" : "0") |