Skip to content

Commit 7155dcb

Browse files
dbuStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent d24d49a commit 7155dcb

14 files changed

+42
-42
lines changed

Candidates/Candidates.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class Candidates implements CandidatesInterface
4040
protected $limit;
4141

4242
/**
43-
* @param array $locales The locales to support.
44-
* @param int $limit A limit to apply to the candidates generated.
43+
* @param array $locales The locales to support
44+
* @param int $limit A limit to apply to the candidates generated
4545
*/
4646
public function __construct(array $locales = array(), $limit = 20)
4747
{
@@ -52,7 +52,7 @@ public function __construct(array $locales = array(), $limit = 20)
5252
/**
5353
* Set the locales to support by this strategy.
5454
*
55-
* @param array $locales The locales to support.
55+
* @param array $locales The locales to support
5656
*/
5757
public function setLocales(array $locales)
5858
{
@@ -97,9 +97,9 @@ public function getCandidates(Request $request)
9797
/**
9898
* Determine the locale of this URL.
9999
*
100-
* @param string $url The url to determine the locale from.
100+
* @param string $url The url to determine the locale from
101101
*
102-
* @return string|bool The locale if $url starts with one of the allowed locales.
102+
* @return string|bool The locale if $url starts with one of the allowed locales
103103
*/
104104
protected function determineLocale($url)
105105
{
@@ -120,11 +120,11 @@ protected function determineLocale($url)
120120
*
121121
* $prefix is prepended to every candidate generated.
122122
*
123-
* @param string $url The URL to split.
124-
* @param string $prefix A prefix to prepend to every pattern.
123+
* @param string $url The URL to split
124+
* @param string $prefix A prefix to prepend to every pattern
125125
*
126126
* @return array Paths that could represent routes that match $url and are
127-
* child of $prefix.
127+
* child of $prefix
128128
*/
129129
protected function getCandidatesFor($url, $prefix = '')
130130
{

Candidates/CandidatesInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function isCandidate($name);
4141
* Provide a best effort query restriction to limit a query to only find
4242
* routes that are supported.
4343
*
44-
* @param object $queryBuilder A query builder suited for the storage backend.
44+
* @param object $queryBuilder A query builder suited for the storage backend
4545
*/
4646
public function restrictQuery($queryBuilder);
4747
}

ChainRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function matchRequest(Request $request)
167167
*
168168
* @return array An array of parameters
169169
*
170-
* @throws ResourceNotFoundException If no router matched.
170+
* @throws ResourceNotFoundException If no router matched
171171
*/
172172
private function doMatch($pathinfo, Request $request = null)
173173
{

ChainRouterInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ interface ChainRouterInterface extends RouterInterface, RequestMatcherInterface
2525
* Add a Router to the index.
2626
*
2727
* @param RouterInterface $router The router instance. Instead of RouterInterface, may also
28-
* be RequestMatcherInterface and UrlGeneratorInterface.
28+
* be RequestMatcherInterface and UrlGeneratorInterface
2929
* @param int $priority The priority
3030
*/
3131
public function add($router, $priority = 0);
3232

3333
/**
3434
* Sorts the routers and flattens them.
3535
*
36-
* @return RouterInterface[] or RequestMatcherInterface and UrlGeneratorInterface.
36+
* @return RouterInterface[] or RequestMatcherInterface and UrlGeneratorInterface
3737
*/
3838
public function all();
3939
}

ContentAwareGenerator.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public function setContentRepository(ContentRepositoryInterface $contentReposito
5858
/**
5959
* {@inheritdoc}
6060
*
61-
* @param string $name ignored.
61+
* @param string $name ignored
6262
* @param array $parameters must either contain the field 'route' with a
6363
* RouteObjectInterface or the field 'content_id'
6464
* with the id of a document implementing
65-
* RouteReferrersReadInterface.
65+
* RouteReferrersReadInterface
6666
*
6767
* @throws RouteNotFoundException If there is no such route in the database
6868
*/
@@ -228,7 +228,7 @@ protected function getRouteByLocale($routes, $locale)
228228
*
229229
* @return bool true if there is either no $locale, no _locale requirement
230230
* on the route or if the requirement and the passed $locale
231-
* match.
231+
* match
232232
*/
233233
private function checkLocaleRequirement(SymfonyRoute $route, $locale)
234234
{
@@ -245,7 +245,7 @@ private function checkLocaleRequirement(SymfonyRoute $route, $locale)
245245
*
246246
* @return string the locale following of the parameters or any other
247247
* information the router has available. defaultLocale if no
248-
* other locale can be determined.
248+
* other locale can be determined
249249
*/
250250
protected function getLocale($parameters)
251251
{
@@ -300,9 +300,9 @@ public function getRouteDebugMessage($name, array $parameters = array())
300300
* and it is the default locale, remove it from the parameters so that we
301301
* do not get an unneeded ?_locale= query string.
302302
*
303-
* @param SymfonyRoute $route The route being generated.
303+
* @param SymfonyRoute $route The route being generated
304304
* @param array $parameters The parameters used, will be modified to
305-
* remove the _locale field if needed.
305+
* remove the _locale field if needed
306306
*/
307307
protected function unsetLocaleIfNotNeeded(SymfonyRoute $route, array &$parameters)
308308
{

ContentRepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface ContentRepositoryInterface
3030
*
3131
* @param string $id id of the content object
3232
*
33-
* @return object A content that matches this id.
33+
* @return object A content that matches this id
3434
*/
3535
public function findById($id);
3636

Enhancer/ConditionalEnhancer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ class ConditionalEnhancer implements RouteEnhancerInterface
2929
*
3030
* The enhancer has to implement RouteEnhancerInterface.
3131
*
32-
* @var array Ordered list of 'matcher', 'enhancer' pairs.
32+
* @var array Ordered list of 'matcher', 'enhancer' pairs
3333
*/
3434
private $enhancerMap;
3535

3636
/**
37-
* @param array $enhancerMap Ordered list of 'matcher', 'enhancer' pairs.
37+
* @param array $enhancerMap Ordered list of 'matcher', 'enhancer' pairs
3838
*/
3939
public function __construct(array $enhancerMap)
4040
{

Enhancer/RouteEnhancerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ interface RouteEnhancerInterface
2727
/**
2828
* Update the defaults based on its own data and the request.
2929
*
30-
* @param array $defaults the getRouteDefaults array.
31-
* @param Request $request the Request instance.
30+
* @param array $defaults the getRouteDefaults array
31+
* @param Request $request the Request instance
3232
*
3333
* @return array the modified defaults. Each enhancer MUST return the
34-
* $defaults but may add or remove values.
34+
* $defaults but may add or remove values
3535
*/
3636
public function enhance(array $defaults, Request $request);
3737
}

NestedMatcher/FinalMatcherInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ interface FinalMatcherInterface
2626
/**
2727
* Matches a request against a route collection and returns exactly one result.
2828
*
29-
* @param RouteCollection $collection The collection against which to match.
30-
* @param Request $request The request to match.
29+
* @param RouteCollection $collection The collection against which to match
30+
* @param Request $request The request to match
3131
*
3232
* @return array An array of parameters
3333
*

NestedMatcher/NestedMatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function __construct(
8383
/**
8484
* Sets the route provider for the matching plan.
8585
*
86-
* @param RouteProviderInterface $provider A source of routes.
86+
* @param RouteProviderInterface $provider A source of routes
8787
*
8888
* @return NestedMatcher this object to have a fluent interface
8989
*/
@@ -102,7 +102,7 @@ public function setRouteProvider(RouteProviderInterface $provider)
102102
* @param RouteFilterInterface $filter
103103
* @param int $priority (optional) The priority of the
104104
* filter. Higher number filters will
105-
* be used first. Defaults to 0.
105+
* be used first. Defaults to 0
106106
*
107107
* @return NestedMatcher this object to have a fluent interface
108108
*/
@@ -122,7 +122,7 @@ public function addRouteFilter(RouteFilterInterface $filter, $priority = 0)
122122
* Sets the final matcher for the matching plan.
123123
*
124124
* @param FinalMatcherInterface $final The final matcher that will have to
125-
* pick the route that will be used.
125+
* pick the route that will be used
126126
*
127127
* @return NestedMatcher this object to have a fluent interface
128128
*/

0 commit comments

Comments
 (0)