Skip to content
Permalink
Browse files

Merge pull request #8905 from cakephp/optimizations

Remove redundant code.
  • Loading branch information...
markstory committed May 30, 2016
2 parents 64a806b + b8fbd46 commit 445e0cc71bfae18405b0c8ab19c20d7a4520b51c
Showing with 1 addition and 4 deletions.
  1. +0 −3 src/View/Helper/FormHelper.php
  2. +1 −1 src/View/Widget/FileWidget.php
@@ -1132,9 +1132,6 @@ protected function _getInput($fieldName, $options)
$opts = $options['options'];
unset($options['options']);
return $this->multicheckbox($fieldName, $opts, $options);
case 'url':
$options = $this->_initInputField($fieldName, $options);
return $this->widget($options['type'], $options);
default:
return $this->{$options['type']}($fieldName, $options);
}
@@ -65,7 +65,7 @@ public function render(array $data, ContextInterface $context)
'templateVars' => $data['templateVars'],
'attrs' => $this->_templates->formatAttributes(
$data,
['name', 'val']
['name']
)
]);
}

0 comments on commit 445e0cc

Please sign in to comment.
You can’t perform that action at this time.