Permalink
Browse files

Fix typos & strict errors.

  • Loading branch information...
1 parent 3ba2db7 commit 869d556d072b47f4baa6a5a12d968b6e7218cfcb @markstory markstory committed Nov 25, 2012
@@ -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)
@@ -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);
}
-}
+}
@@ -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.