Skip to content

Commit

Permalink
Rename nested to nesting.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 20, 2014
1 parent b66577f commit e9f4489
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 deletions.
4 changes: 2 additions & 2 deletions src/View/Helper/FormHelper.php
Expand Up @@ -96,7 +96,7 @@ class FormHelper extends Helper {
'inputContainer' => '<div class="input {{type}}{{required}}">{{content}}</div>',
'inputContainerError' => '<div class="input {{type}}{{required}} error">{{content}}{{error}}</div>',
'label' => '<label{{attrs}}>{{text}}</label>',
'nestedLabel' => '<label{{attrs}}>{{input}}{{text}}</label>',
'nestingLabel' => '<label{{attrs}}>{{input}}{{text}}</label>',
'legend' => '<legend>{{text}}</legend>',
'option' => '<option value="{{value}}"{{attrs}}>{{text}}</option>',
'optgroup' => '<optgroup label="{{label}}"{{attrs}}>{{content}}</optgroup>',
Expand Down Expand Up @@ -744,7 +744,7 @@ public function label($fieldName, $text = null, array $options = []) {
'text' => $text,
];
if (isset($options['input'])) {
return $this->widget('nestedLabel', $attrs);
return $this->widget('nestingLabel', $attrs);
}
return $this->widget('label', $attrs);
}
Expand Down
34 changes: 0 additions & 34 deletions src/View/Widget/NestedLabel.php

This file was deleted.

6 changes: 3 additions & 3 deletions src/View/Widget/WidgetRegistry.php
Expand Up @@ -48,9 +48,9 @@ class WidgetRegistry {
'checkbox' => ['Cake\View\Widget\Checkbox'],
'file' => ['Cake\View\Widget\File'],
'label' => ['Cake\View\Widget\Label'],
'nestedLabel' => ['Cake\View\Widget\NestedLabel'],
'multicheckbox' => ['Cake\View\Widget\MultiCheckbox', 'nestedLabel'],
'radio' => ['Cake\View\Widget\Radio', 'nestedLabel'],
'nestingLabel' => ['Cake\View\Widget\NestingLabel'],
'multicheckbox' => ['Cake\View\Widget\MultiCheckbox', 'nestingLabel'],
'radio' => ['Cake\View\Widget\Radio', 'nestingLabel'],
'select' => ['Cake\View\Widget\SelectBox'],
'textarea' => ['Cake\View\Widget\Textarea'],
'datetime' => ['Cake\View\Widget\DateTime', 'select'],
Expand Down

0 comments on commit e9f4489

Please sign in to comment.