Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Nov 21, 2012
1 parent 39f1b79 commit 4f219c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Routing/Loader/RestRouteLoader.php
Expand Up @@ -45,8 +45,8 @@ class RestRouteLoader extends Loader
public function __construct(ContainerInterface $container,
FileLocatorInterface $locator,
ControllerNameParser $controllerParser,
RestControllerReader $controllerReader, $defaultFormat = 'html')
{
RestControllerReader $controllerReader, $defaultFormat = 'html'
) {
$this->container = $container;
$this->locator = $locator;
$this->controllerParser = $controllerParser;
Expand Down Expand Up @@ -95,7 +95,8 @@ public function supports($resource, $type = null)
{
return is_string($resource)
&& 'rest' === $type
&& !in_array(pathinfo($resource, PATHINFO_EXTENSION), array('xml', 'yml'));
&& !in_array(pathinfo($resource, PATHINFO_EXTENSION), array('xml', 'yml')
);
}

/**
Expand Down

0 comments on commit 4f219c0

Please sign in to comment.