Skip to content

Commit

Permalink
Fix ScrutinizerCS violation
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Dec 28, 2015
1 parent 7ab9b9c commit 903eb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ public function beforeRender(Event $event)
*
* If it doesn't, load the defaults file
*
* @return array
* @return bool
*/
public function ensureConfig()
{
$config = Configure::read('CrudView');
if ($config !== null) {
return $config;
return true;
}

return Configure::load('CrudView.defaults');
Expand Down

0 comments on commit 903eb4f

Please sign in to comment.