diff --git a/lib/Cake/Console/ConsoleErrorHandler.php b/lib/Cake/Console/ConsoleErrorHandler.php index 6a07d0128..3df0bf734 100644 --- a/lib/Cake/Console/ConsoleErrorHandler.php +++ b/lib/Cake/Console/ConsoleErrorHandler.php @@ -88,7 +88,7 @@ class ConsoleErrorHandler { } if ($log === LOG_ERR) { - $this->_stop(1); + return $this->_stop(1); } } diff --git a/lib/Cake/Event/CakeEventManager.php b/lib/Cake/Event/CakeEventManager.php index e4b74a096..ef53ea4c1 100644 --- a/lib/Cake/Event/CakeEventManager.php +++ b/lib/Cake/Event/CakeEventManager.php @@ -167,7 +167,7 @@ class CakeEventManager { public function detach($callable, $eventKey = null) { if ($callable instanceof CakeEventListener) { $this->_detachSubscriber($callable, $eventKey); - return ; + return; } if (empty($eventKey)) { foreach (array_keys($this->_listeners) as $eventKey) { diff --git a/lib/Cake/Model/BehaviorCollection.php b/lib/Cake/Model/BehaviorCollection.php index db10a8762..faae57064 100644 --- a/lib/Cake/Model/BehaviorCollection.php +++ b/lib/Cake/Model/BehaviorCollection.php @@ -204,7 +204,7 @@ class BehaviorCollection extends ObjectCollection implements CakeEventListener { * @deprecated 3.0.0 Will be removed in 3.0. Use unload instead. */ public function detach($name) { - $this->unload($name); + return $this->unload($name); } /**