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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Service/AbstractNavigationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function getPagesFromConfig($config = null)
*/
protected function injectComponents(array $pages, RouteMatch $routeMatch = null, Router $router = null)
{
foreach($pages as &$page) {
foreach ($pages as &$page) {
$hasMvc = isset($page['action']) || isset($page['controller']) || isset($page['route']);
if ($hasMvc) {
if (!isset($page['routeMatch']) && $routeMatch) {
Expand Down
6 changes: 3 additions & 3 deletions test/Page/PageFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testShouldFailForInvalidType()
'type' => 'ZendTest\Navigation\TestAsset\InvalidPage',
'label' => 'My Invalid Page'
));
} catch(Navigation\Exception\InvalidArgumentException $e) {
} catch (Navigation\Exception\InvalidArgumentException $e) {
return;
}

Expand All @@ -124,7 +124,7 @@ public function testShouldFailForNonExistantType()

try {
$page = AbstractPage::factory($pageConfig);
} catch(Navigation\Exception\InvalidArgumentException $e) {
} catch (Navigation\Exception\InvalidArgumentException $e) {
return;
}

Expand All @@ -138,7 +138,7 @@ public function testShouldFailIfUnableToDetermineType()
$page = AbstractPage::factory(array(
'label' => 'My Invalid Page'
));
} catch(Navigation\Exception\InvalidArgumentException $e) {
} catch (Navigation\Exception\InvalidArgumentException $e) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/ServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function testMvcPagesGetInjectedWithComponents()
$container = $this->serviceManager->get('Navigation');

$recursive = function($that, $pages) use (&$recursive) {
foreach($pages as $page) {
foreach ($pages as $page) {
if ($page instanceof MvcPage) {
$that->assertInstanceOf('Zend\Mvc\Router\RouteStackInterface', $page->getRouter());
$that->assertInstanceOf('Zend\Mvc\Router\RouteMatch', $page->getRouteMatch());
Expand Down

0 comments on commit 2f43075

Please sign in to comment.