Permalink
Browse files

Fix delete space, restored return

  • Loading branch information...
lustyrain committed Oct 4, 2017
1 parent 1f09318 commit 0f00d73c707d720a9819796296c16a27bfc5b628
@@ -88,7 +88,7 @@ public function handleError($code, $description, $file = null, $line = null, $co
}
if ($log === LOG_ERR) {
$this->_stop(1);
return $this->_stop(1);
}
}
@@ -167,7 +167,7 @@ protected function _extractCallable($function, $object) {
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) {
@@ -204,7 +204,7 @@ public function unload($name) {
* @deprecated 3.0.0 Will be removed in 3.0. Use unload instead.
*/
public function detach($name) {
$this->unload($name);
return $this->unload($name);
}
/**

0 comments on commit 0f00d73

Please sign in to comment.