Skip to content

Commit

Permalink
Update doc blocks and coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 12, 2014
1 parent 80d3a0e commit a2a4c8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/View/Input/Checkbox.php
Expand Up @@ -14,8 +14,6 @@
*/
namespace Cake\View\Input;

use Cake\View\StringTemplate;

/**
* Input widget for creating checkbox widgets.
*/
Expand All @@ -40,7 +38,17 @@ public function __construct($templates) {
/**
* Render a checkbox element.
*
* Data supports the following keys:
*
* - `name` - The name of the input.
* - `value` - The value attribute. Defaults to '1'.
* - `checked` - Whether or not the checkbox should be checked.
* - `disabled` - Whether or not the checkbox should be disabled.
*
* Any other attributes passed in will be treated as HTML attributes.
*
* @param array $data The data to create a checkbox with.
* @return string Generated HTML string.
*/
public function render($data) {
$data += [
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/View/Input/CheckboxTest.php
Expand Up @@ -165,5 +165,4 @@ public function testRenderCheckedValue() {
$this->assertTags($result, $expected);
}


}

0 comments on commit a2a4c8c

Please sign in to comment.