Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typos & strict errors.

  • Loading branch information...
commit 869d556d072b47f4baa6a5a12d968b6e7218cfcb 1 parent 3ba2db7
@markstory markstory authored
View
2  lib/Cake/Test/Case/Routing/DispatcherTest.php
@@ -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)
View
6 lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Routing/Filter/Test2DispatcherFilter.php
@@ -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);
}
-}
+}
View
6 lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Routing/Filter/TestDispatcherFilter.php
@@ -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);
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.