Fix delete space, restored return

This commit is contained in:
LustyRain 2017-10-04 21:02:48 +09:00
parent 1f09318724
commit 0f00d73c70
3 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ class ConsoleErrorHandler {
}
if ($log === LOG_ERR) {
$this->_stop(1);
return $this->_stop(1);
}
}

View file

@ -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) {

View file

@ -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);
}
/**