Skip to content

Commit

Permalink
Fix for CakePHP code standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Kyselov committed Nov 15, 2014
1 parent 3118ee4 commit 300fede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Widget/WidgetRegistry.php
Expand Up @@ -64,7 +64,7 @@ public function __construct(StringTemplate $templates, View $view, $widgets = []
if (!empty($widgets)) {
$this->add($widgets);
foreach ($this->_widgets as $key => $widget) {
if(is_string($widget) && !class_exists($widget)) {
if (is_string($widget) && !class_exists($widget)) {
$this->load($widget);
unset($this->_widgets[$key]);
}
Expand Down

0 comments on commit 300fede

Please sign in to comment.