Skip to content
Permalink
Browse files

Fix coding standards in Event/

  • Loading branch information...
markstory committed Mar 4, 2012
1 parent 60989ad commit 15e6e9d9817fa016e6cef4947c52b4fa9b64f7b6
Showing with 5 additions and 4 deletions.
  1. +1 −2 lib/Cake/Event/CakeEvent.php
  2. +2 −1 lib/Cake/Event/CakeEventListener.php
  3. +2 −1 lib/Cake/Event/CakeEventManager.php
@@ -102,7 +102,6 @@ public function name() {
return $this->_name;
}
/**
* Returns the subject of this event
*
@@ -130,4 +129,4 @@ public function isStopped() {
return $this->_stopped;
}
}
}
@@ -44,4 +44,5 @@ interface CakeEventListener {
* that should be called in the object when the respective event is fired
*/
public function implementedEvents();
}
}
@@ -56,7 +56,6 @@ class CakeEventManager {
*/
protected $_isGlobal = false;
/**
* Returns the globally available instance of a CakeEventManager
* this is used for dispatching events attached from outside the scope
@@ -97,6 +96,8 @@ public static function instance($manager = null) {
* when the listener is called. If $called is an instance of CakeEventListener, this parameter will be ignored
*
* @return void
* @throws InvalidArgumentException When event key is missing or callable is not an
* instance of CakeEventListener.
*/
public function attach($callable, $eventKey = null, $options = array()) {
if (!$eventKey && !($callable instanceof CakeEventListener)) {

0 comments on commit 15e6e9d

Please sign in to comment.
You can’t perform that action at this time.