From 903eb4f4fee8af02d50f83688246ba0d382303c8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 28 Dec 2015 01:43:59 -0500 Subject: [PATCH] Fix ScrutinizerCS violation --- src/Listener/ViewListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Listener/ViewListener.php b/src/Listener/ViewListener.php index c5e1f343..faeca6e6 100644 --- a/src/Listener/ViewListener.php +++ b/src/Listener/ViewListener.php @@ -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');