Skip to content

Commit

Permalink
Fix coding standards in Event/
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 4, 2012
1 parent 60989ad commit 15e6e9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Cake/Event/CakeEvent.php
Expand Up @@ -102,7 +102,6 @@ public function name() {
return $this->_name;
}


/**
* Returns the subject of this event
*
Expand Down Expand Up @@ -130,4 +129,4 @@ public function isStopped() {
return $this->_stopped;
}

}
}
3 changes: 2 additions & 1 deletion lib/Cake/Event/CakeEventListener.php
Expand Up @@ -44,4 +44,5 @@ interface CakeEventListener {
* that should be called in the object when the respective event is fired
*/
public function implementedEvents();
}

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

0 comments on commit 15e6e9d

Please sign in to comment.