@@ -254,9 +254,9 @@ |
||
254 | 254 | $this->_initColumns(); |
255 | 255 | |
256 | 256 | return TableRenderer::open($this->_classes) . |
257 | - TableRenderer::renderHeaders($this->_fetchHeaders(), $this->_headerFormatters) . |
|
258 | - TableRenderer::renderBody($data, $this->_columns) . |
|
259 | - TableRenderer::close(); |
|
257 | + TableRenderer::renderHeaders($this->_fetchHeaders(), $this->_headerFormatters) . |
|
258 | + TableRenderer::renderBody($data, $this->_columns) . |
|
259 | + TableRenderer::close(); |
|
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
@@ -105,8 +105,7 @@ discard block |
||
105 | 105 | $html .= '<td>' . |
106 | 106 | $column->format( |
107 | 107 | $column->getRelation() !== null ? |
108 | - $this->_getColumnValueFromRelation($rowModel, $column) : |
|
109 | - $this->_getColumnValue($rowModel, $column) |
|
108 | + $this->_getColumnValueFromRelation($rowModel, $column) : $this->_getColumnValue($rowModel, $column) |
|
110 | 109 | ) . |
111 | 110 | '</td>'; |
112 | 111 | } |
@@ -125,7 +124,7 @@ discard block |
||
125 | 124 | private function _getColumnValue(Model $rowModel, Column $column) : string |
126 | 125 | { |
127 | 126 | $columnName = $column->getName(); |
128 | - if(!property_exists($rowModel, $columnName)) |
|
127 | + if (!property_exists($rowModel, $columnName)) |
|
129 | 128 | { |
130 | 129 | return ''; |
131 | 130 | } |