Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej Andb committed Sep 1, 2012
1 parent 758f399 commit c519377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Mvc/View/Http/RouteNotFoundStrategy.php
Expand Up @@ -204,7 +204,7 @@ public function prepareNotFoundViewModel(MvcEvent $e)
// Only handle 404 responses // Only handle 404 responses
return; return;
} }

if (!$vars instanceof ViewModel) { if (!$vars instanceof ViewModel) {
$model = new ViewModel(); $model = new ViewModel();
if (is_string($vars)) { if (is_string($vars)) {
Expand All @@ -218,7 +218,7 @@ public function prepareNotFoundViewModel(MvcEvent $e)
$model->setVariable('message', 'Page not found.'); $model->setVariable('message', 'Page not found.');
} }
} }

$model->setTemplate($this->getNotFoundTemplate()); $model->setTemplate($this->getNotFoundTemplate());


// If displaying reasons, inject the reason // If displaying reasons, inject the reason
Expand Down
4 changes: 2 additions & 2 deletions tests/ZendTest/Mvc/View/RouteNotFoundStrategyTest.php
Expand Up @@ -37,9 +37,9 @@ public function testMessageParamsInViewModel()
$event = new MvcEvent(); $event = new MvcEvent();
$event->setResponse($response); $event->setResponse($response);
$response->setStatusCode(404); $response->setStatusCode(404);

$event->setResult(null); $event->setResult(null);

$testCase = array( $testCase = array(
'assertEquals' => array ( 'assertEquals' => array (
'bar', 'bar',
Expand Down

0 comments on commit c519377

Please sign in to comment.