Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rename property to arrayProperty
  • Loading branch information
AD7six committed Nov 14, 2014
1 parent d8ba6c2 commit 339e8f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Template/Bake/Controller/controller.ctp
Expand Up @@ -37,8 +37,8 @@ use <%= $namespace %>\Controller\AppController;
<% endforeach; %>
*/
class <%= $name %>Controller extends AppController {
<%= $this->Class->property('helpers', $helpers); %>
<%= $this->Class->property('components', $components); %>
<%= $this->Class->arrayProperty('helpers', $helpers); %>
<%= $this->Class->arrayProperty('components', $components); %>
<% if (!empty($actions)): %>

<% echo trim($actions); %>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/View/Helper/ClassHelper.php
Expand Up @@ -17,7 +17,7 @@ class ClassHelper extends Helper {
protected $_defaultConfig = [];

/**
* property
* arrayProperty
*
* Used for generating formatted properties such as component and helper arrays
*
Expand All @@ -26,7 +26,7 @@ class ClassHelper extends Helper {
* @param array $params
* @return string
*/
public function property($name, $value, $params = []) {
public function arrayProperty($name, $value, $params = []) {
if (!$value) {
return '';
}
Expand All @@ -38,7 +38,7 @@ public function property($name, $value, $params = []) {
'name' => $name,
'value' => $value
];
return $this->_View->element('property', $params);
return $this->_View->element('arrayProperty', $params);
}

}

0 comments on commit 339e8f9

Please sign in to comment.