From 7ab9b9c9df31fdabda291350592b68263098e40a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 28 Dec 2015 01:19:05 -0500 Subject: [PATCH] Fix Scrutinizer CS violations --- src/View/Helper/CrudViewHelper.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/View/Helper/CrudViewHelper.php b/src/View/Helper/CrudViewHelper.php index 4a4d7c96..bc4517d2 100644 --- a/src/View/Helper/CrudViewHelper.php +++ b/src/View/Helper/CrudViewHelper.php @@ -8,6 +8,11 @@ use Cake\View\Helper; use Cake\View\Helper\FormHelper; +/** + * @property \Cake\View\Helper\FormHelper $Form + * @property \Cake\View\Helper\HtmlHelper $Html + * @property \Cake\View\Helper\TimeHelper $Time + */ class CrudViewHelper extends Helper { @@ -16,7 +21,7 @@ class CrudViewHelper extends Helper * * @var array */ - public $helpers = ['Form', 'Html', 'Time', 'Paginator']; + public $helpers = ['Form', 'Html', 'Time']; /** * Context @@ -67,7 +72,7 @@ public function process($field, Entity $data, array $options = []) } if ($options['formatter'] === 'relation') { - $relation = $this->relation($field, $value, $options); + $relation = $this->relation($field); if ($relation) { return $relation['output']; } @@ -112,8 +117,7 @@ public function fieldValue(Entity $data = null, $field = null) */ public function introspect($field, $value, array $options = []) { - $output = $this->relation($field, $value, $options); - + $output = $this->relation($field); if ($output) { return $output['output']; } @@ -138,7 +142,7 @@ public function introspect($field, $value, array $options = []) return $this->formatTime($field, $value, $options); } - $value = $this->formatString($field, $value, $options); + $value = $this->formatString($field, $value); if ($field === $this->getViewVar('displayField')) { $value = $this->createViewLink($value, ['escape' => false]);