Completed
Pull Request — master (#8)
by Timo
07:02 queued 04:24
created
src/Models/DataTable.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -254,9 +254,9 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Models/Column.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     private function _getValue(Model $rowModel) : string 
101 101
     {
102
-        if(!property_exists($rowModel, $this->_name)) 
102
+        if (!property_exists($rowModel, $this->_name)) 
103 103
         {
104 104
             return '';
105 105
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function getValue(Model $rowModel) : string
117 117
     {
118
-        if($this->_relation !== null)
118
+        if ($this->_relation !== null)
119 119
         {
120 120
             return $this->_getValueFromRelation($rowModel);
121 121
         }
Please login to merge, or discard this patch.