@@ -72,10 +72,10 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | protected $align; |
| 74 | 74 | |
| 75 | - /** |
|
| 76 | - * @var bool |
|
| 77 | - */ |
|
| 78 | - protected $fit_content = FALSE; |
|
| 75 | + /** |
|
| 76 | + * @var bool |
|
| 77 | + */ |
|
| 78 | + protected $fit_content = FALSE; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * @var array |
@@ -514,27 +514,27 @@ discard block |
||
| 514 | 514 | } |
| 515 | 515 | |
| 516 | 516 | |
| 517 | - /** |
|
| 518 | - * Set column content fit |
|
| 519 | - * @param bool $fit_content |
|
| 520 | - * @return $this |
|
| 521 | - */ |
|
| 522 | - public function setFitContent($fit_content = TRUE) |
|
| 523 | - { |
|
| 524 | - $this->fit_content = $fit_content; |
|
| 517 | + /** |
|
| 518 | + * Set column content fit |
|
| 519 | + * @param bool $fit_content |
|
| 520 | + * @return $this |
|
| 521 | + */ |
|
| 522 | + public function setFitContent($fit_content = TRUE) |
|
| 523 | + { |
|
| 524 | + $this->fit_content = $fit_content; |
|
| 525 | 525 | |
| 526 | - return $this; |
|
| 527 | - } |
|
| 526 | + return $this; |
|
| 527 | + } |
|
| 528 | 528 | |
| 529 | 529 | |
| 530 | - /** |
|
| 531 | - * Has column some fit content? |
|
| 532 | - * @return bool |
|
| 533 | - */ |
|
| 534 | - public function hasFitContent() |
|
| 535 | - { |
|
| 536 | - return (bool) $this->fit_content; |
|
| 537 | - } |
|
| 530 | + /** |
|
| 531 | + * Has column some fit content? |
|
| 532 | + * @return bool |
|
| 533 | + */ |
|
| 534 | + public function hasFitContent() |
|
| 535 | + { |
|
| 536 | + return (bool) $this->fit_content; |
|
| 537 | + } |
|
| 538 | 538 | |
| 539 | 539 | |
| 540 | 540 | /** |
@@ -658,12 +658,12 @@ discard block |
||
| 658 | 658 | |
| 659 | 659 | $el->class[] = "text-{$this->getAlign()}"; |
| 660 | 660 | |
| 661 | - /** |
|
| 662 | - * If column fit content is true |
|
| 663 | - */ |
|
| 664 | - if ($this->hasFitContent()) { |
|
| 665 | - $el->class[] = 'fit-content'; |
|
| 666 | - } |
|
| 661 | + /** |
|
| 662 | + * If column fit content is true |
|
| 663 | + */ |
|
| 664 | + if ($this->hasFitContent()) { |
|
| 665 | + $el->class[] = 'fit-content'; |
|
| 666 | + } |
|
| 667 | 667 | |
| 668 | 668 | /** |
| 669 | 669 | * Method called from datagrid template, set appropriate classes and another attributes |