Navigation Menu

Skip to content

Commit

Permalink
Fix typos & strict errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 25, 2012
1 parent 3ba2db7 commit 869d556
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Routing/DispatcherTest.php
Expand Up @@ -1195,7 +1195,7 @@ public function testTestPluginDispatch() {
*
* @return void
*/
public function testDispatcherFilterSuscriber() {
public function testDispatcherFilterSubscriber() {
App::build(array(
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS),
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
Expand Down
Expand Up @@ -20,14 +20,14 @@

class Test2DispatcherFilter extends DispatcherFilter {

public function beforeDispatch($event) {
public function beforeDispatch(CakeEvent $event) {
$event->data['response']->statusCode(500);
$event->stopPropagation();
return $event->data['response'];
}

public function afterDispatch($event) {
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(200);
}

}
}
Expand Up @@ -20,12 +20,12 @@

class TestDispatcherFilter extends DispatcherFilter {

public function beforeDispatch($event) {
public function beforeDispatch(CakeEvent $event) {
$event->data['request']->params['altered'] = true;
}

public function afterDispatch($event) {
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(304);
}

}
}

0 comments on commit 869d556

Please sign in to comment.