Skip to content

Commit

Permalink
Missing blank line before return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez authored Aug 30, 2016
1 parent 0b67ff4 commit 0763675
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function process($field, Entity $data, array $options = [])

if ($options['formatter'] === 'element') {
$context = $this->getContext();

return $this->_View->element($options['element'], compact('context', 'field', 'value', 'options'));
}

Expand Down Expand Up @@ -189,6 +190,7 @@ public function formatDate($field, $value, array $options)
if ($value === null) {
return $this->Html->label(__d('crud', 'N/A'), 'info');
}

return $this->Time->timeAgoInWords($value, $options);
}

Expand All @@ -206,6 +208,7 @@ public function formatTime($field, $value, array $options)
return $this->Html->label(__d('crud', 'N/A'), 'info');
}
$format = isset($options['format']) ? $options['format'] : null;

return $this->Time->nice($value, $format);
}

Expand Down

0 comments on commit 0763675

Please sign in to comment.