Permalink
Browse files

Fix: revert return

  • Loading branch information...
lustyrain committed Oct 4, 2017
1 parent 0f00d73 commit e1e5a292f216efbed2c11b037de5c28fd341ca43
Showing with 3 additions and 5 deletions.
  1. +1 −2 lib/Cake/Event/CakeEventManager.php
  2. +2 −3 lib/Cake/Utility/File.php
@@ -166,8 +166,7 @@ protected function _extractCallable($function, $object) {
*/
public function detach($callable, $eventKey = null) {
if ($callable instanceof CakeEventListener) {
$this->_detachSubscriber($callable, $eventKey);
return;
return $this->_detachSubscriber($callable, $eventKey);
}
if (empty($eventKey)) {
foreach (array_keys($this->_listeners) as $eventKey) {
@@ -581,11 +581,10 @@ public function mime() {
*/
public function clearStatCache($all = false) {
if ($all === false && version_compare(PHP_VERSION, '5.3.0') >= 0) {
clearstatcache(true, $this->path);
return;
return clearstatcache(true, $this->path);
}
clearstatcache();
return clearstatcache();
}
/**

0 comments on commit e1e5a29

Please sign in to comment.