mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-14 19:08:25 +00:00
Fix delete space, restored return
This commit is contained in:
parent
1f09318724
commit
0f00d73c70
3 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ class ConsoleErrorHandler {
|
|||
}
|
||||
|
||||
if ($log === LOG_ERR) {
|
||||
$this->_stop(1);
|
||||
return $this->_stop(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue