Skip to content

Commit

Permalink
Fix delete space, restored return
Browse files Browse the repository at this point in the history
  • Loading branch information
lustyrain committed Oct 4, 2017
1 parent 1f09318 commit 0f00d73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Console/ConsoleErrorHandler.php
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Event/CakeEventManager.php
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/BehaviorCollection.php
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 0f00d73

Please sign in to comment.