@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @throws InvalidArgumentException |
| 40 | 40 | */ |
| 41 | - public function __construct( $content, array $attributes = [], $isRawContent = false ) { |
|
| 42 | - Assert::parameterType( 'string', $content, '$content' ); |
|
| 43 | - Assert::parameterType( 'boolean', $isRawContent, '$isRawContent' ); |
|
| 41 | + public function __construct($content, array $attributes = [], $isRawContent = false) { |
|
| 42 | + Assert::parameterType('string', $content, '$content'); |
|
| 43 | + Assert::parameterType('boolean', $isRawContent, '$isRawContent'); |
|
| 44 | 44 | |
| 45 | 45 | $this->content = $content; |
| 46 | 46 | $this->attributes = $attributes; |
@@ -65,10 +65,10 @@ discard block |
||
| 65 | 65 | * @return string HTML |
| 66 | 66 | */ |
| 67 | 67 | public function toHtml() { |
| 68 | - if ( $this->isRawContent ) { |
|
| 69 | - return Html::rawElement( 'td', $this->getAttributes(), $this->content ); |
|
| 68 | + if ($this->isRawContent) { |
|
| 69 | + return Html::rawElement('td', $this->getAttributes(), $this->content); |
|
| 70 | 70 | } else { |
| 71 | - return Html::element( 'td', $this->getAttributes(), $this->content ); |
|
| 71 | + return Html::element('td', $this->getAttributes(), $this->content); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |