diff --git a/classes/Kohana/Tart/Column.php b/classes/Kohana/Tart/Column.php index 961ed37..1b75a24 100644 --- a/classes/Kohana/Tart/Column.php +++ b/classes/Kohana/Tart/Column.php @@ -185,7 +185,7 @@ protected static function render_field(Jam_Model $item, Jam_Field $field) return '-'; $time = is_numeric($value) ? $value : strtotime($value); - return ''.Tart_Html::date_span($time).''; + return ''.Tart_Html::date_span($time).''; } elseif ($field instanceof Jam_Field_Weblink) { @@ -204,4 +204,4 @@ protected static function render_field(Jam_Model $item, Jam_Field $field) return HTML::chars($value); } } -} \ No newline at end of file +} diff --git a/tests/tests/columnTest.php b/tests/tests/columnTest.php index 71a592c..024a325 100644 --- a/tests/tests/columnTest.php +++ b/tests/tests/columnTest.php @@ -74,7 +74,7 @@ public function test_default_fields() $rendered = $column->name('created_at')->render(); $year_diff = ( (int) date('Y')) - ( (int) date('Y', $this->city->created_at)); - $this->assertEquals(''.$year_diff.' years ago', $rendered); + $this->assertEquals(''.$year_diff.' years ago', $rendered); $rendered = $column->name('url')->render(); $this->assertEquals('http://example.com/ths-is-a-ve… ', $rendered);