Skip to content

Commit 87e59d1

Browse files
authored
Merge pull request #257 from symfony-cmf/fix-ci
adjust for symfony cs rules
2 parents fe8f981 + 4ece661 commit 87e59d1

12 files changed

+14
-35
lines changed

.styleci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ preset: symfony
1818

1919
enabled:
2020
- combine_consecutive_unsets
21-
- short_array_syntax
22-
- newline_after_open_tag
23-
- no_php4_constructor
2421
- no_useless_else
2522
- ordered_use
26-
- strict
27-
- php_unit_construct
2823

2924
disabled:
3025
- single_line_class_definition

src/Candidates/CandidatesInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
interface CandidatesInterface
2323
{
2424
/**
25-
* @param Request $request
26-
*
2725
* @return array a list of paths
2826
*/
2927
public function getCandidates(Request $request);

src/ChainRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ChainRouter implements ChainRouterInterface, WarmableInterface
5555
private $routeCollection;
5656

5757
/**
58-
* @var null|LoggerInterface
58+
* @var LoggerInterface|null
5959
*/
6060
protected $logger;
6161

src/ContentAwareGenerator.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ class ContentAwareGenerator extends ProviderBasedGenerator
4747

4848
/**
4949
* Set an optional content repository to find content by ids.
50-
*
51-
* @param ContentRepositoryInterface $contentRepository
5250
*/
5351
public function setContentRepository(ContentRepositoryInterface $contentRepository)
5452
{
@@ -109,7 +107,6 @@ public function generate($name, $parameters = [], $absolute = UrlGeneratorInterf
109107
* Get the route by a string name.
110108
*
111109
* @param string $name
112-
* @param array $parameters
113110
*
114111
* @return SymfonyRoute
115112
*
@@ -129,8 +126,7 @@ protected function getRouteByName($name, array $parameters)
129126
* Determine if there is a route with matching locale associated with the
130127
* given route via associated content.
131128
*
132-
* @param SymfonyRoute $route
133-
* @param array $parameters
129+
* @param array $parameters
134130
*
135131
* @return SymfonyRoute either the passed route or an alternative with better locale
136132
*/
@@ -252,8 +248,7 @@ protected function getRouteByLocale($routes, $locale)
252248
}
253249

254250
/**
255-
* @param SymfonyRoute $route
256-
* @param string $locale
251+
* @param string $locale
257252
*
258253
* @return bool true if there is either no $locale, no _locale requirement
259254
* on the route or if the requirement and the passed $locale

src/DynamicRouter.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ class DynamicRouter implements RouterInterface, RequestMatcherInterface, Chained
8080
private $routeCollection;
8181

8282
/**
83-
* @param RequestContext $context
8483
* @param RequestMatcherInterface|UrlMatcherInterface $matcher
85-
* @param UrlGeneratorInterface $generator
8684
* @param string $uriFilterRegexp
87-
* @param EventDispatcherInterface|null $eventDispatcher
8885
* @param RouteProviderInterface $provider
8986
*
9087
* @throws \InvalidArgumentException If the matcher is not a request or url matcher

src/Enhancer/FieldPresenceEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class FieldPresenceEnhancer implements RouteEnhancerInterface
4444
private $value;
4545

4646
/**
47-
* @param null|string $source the field name of the class, null to disable the check
47+
* @param string|null $source the field name of the class, null to disable the check
4848
* @param string $target the field name to set from the map
4949
* @param string $value value to set target field to if source field exists
5050
*/

src/Enhancer/RouteEnhancerTrait.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ trait RouteEnhancerTrait
3737
/**
3838
* Apply the route enhancers to the defaults, according to priorities.
3939
*
40-
* @param array $defaults
41-
* @param Request $request
40+
* @param array $defaults
4241
*
4342
* @return array
4443
*/
@@ -58,8 +57,7 @@ protected function applyRouteEnhancers($defaults, Request $request)
5857
* The order of the enhancers is determined by the priority, the higher the
5958
* value, the earlier the enhancer is run.
6059
*
61-
* @param RouteEnhancerInterface $enhancer
62-
* @param int $priority
60+
* @param int $priority
6361
*
6462
* @return self
6563
*/

src/Event/RouterGenerateEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public function getParameters()
9191

9292
/**
9393
* Set the route parameters.
94-
*
95-
* @param array $parameters
9694
*/
9795
public function setParameters(array $parameters)
9896
{

src/NestedMatcher/NestedMatcher.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ public function setRouteProvider(RouteProviderInterface $provider)
9999
*
100100
* Partial matchers will be run in the order in which they are added.
101101
*
102-
* @param RouteFilterInterface $filter
103-
* @param int $priority (optional) The priority of the
104-
* filter. Higher number filters will
105-
* be used first. Defaults to 0
102+
* @param int $priority (optional) The priority of the
103+
* filter. Higher number filters will
104+
* be used first. Defaults to 0
106105
*
107106
* @return NestedMatcher this object to have a fluent interface
108107
*/

src/ProviderBasedGenerator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ class ProviderBasedGenerator extends UrlGenerator implements VersatileGeneratorI
3232
protected $provider;
3333

3434
/**
35-
* @param RouteProviderInterface $provider
36-
* @param LoggerInterface $logger
35+
* @param LoggerInterface $logger
3736
*/
3837
public function __construct(RouteProviderInterface $provider, LoggerInterface $logger = null)
3938
{

0 commit comments

Comments
 (0)