Skip to content

Commit c3e0c82

Browse files
committed
cs fixes
1 parent dd47bba commit c3e0c82

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

Enhancer/FieldByClassEnhancer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use Symfony\Component\HttpFoundation\Request;
66

7-
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
8-
97
/**
108
* This enhancer sets a field if not yet existing from the class of an object
119
* in another field.

Enhancer/RouteContentEnhancer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
namespace Symfony\Cmf\Component\Routing\Enhancer;
44

5-
use Symfony\Component\Routing\Route;
65
use Symfony\Component\HttpFoundation\Request;
76

87
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
98

109
/**
11-
* This enhancer sets the content to target field if the route provides content
10+
* This enhancer sets the content to target field if the route provides content.
1211
*
1312
* Only works with RouteObjectInterface routes that can return a referenced
1413
* content.
@@ -56,6 +55,7 @@ public function enhance(array $defaults, Request $request)
5655
// we can't determine the content
5756
return $defaults;
5857
}
58+
/** @var $route RouteObjectInterface */
5959
$route = $defaults[$this->routefield];
6060

6161
$content = $route->getContent();

Enhancer/RouteEnhancerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Symfony\Cmf\Component\Routing\Enhancer;
44

5-
use Symfony\Component\Routing\Route;
65
use Symfony\Component\HttpFoundation\Request;
76

87
/**
@@ -19,9 +18,10 @@ interface RouteEnhancerInterface
1918
/**
2019
* Update the defaults based on its own data and the request.
2120
*
22-
* @param array $defaults the getRouteDefaults array
21+
* @param array $defaults the getRouteDefaults array.
2322
*
24-
* @return array the modified defaults. Each enhancer MUST return the $defaults but may add or remove values
23+
* @return array the modified defaults. Each enhancer MUST return the
24+
* $defaults but may add or remove values.
2525
*/
2626
public function enhance(array $defaults, Request $request);
2727
}

NestedMatcher/NestedMatcher.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Symfony\Component\HttpFoundation\Request;
66
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
77
use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
8-
use Symfony\Component\Routing\Route;
98
use Symfony\Cmf\Component\Routing\RouteProviderInterface;
109

1110
/**
@@ -55,7 +54,7 @@ class NestedMatcher implements RequestMatcherInterface
5554
/**
5655
* Constructs a new NestedMatcher
5756
*
58-
* @param RouteProviderInterface $provider The Route Provider this matcher
57+
* @param RouteProviderInterface $provider The route provider this matcher
5958
* should use
6059
* @param FinalMatcherInterface $final The Final Matcher to match the
6160
* routes
@@ -135,7 +134,7 @@ public function matchRequest(Request $request)
135134
throw new ResourceNotFoundException();
136135
}
137136

138-
// Route Filters are expected to throw an exception themselves if they
137+
// Route filters are expected to throw an exception themselves if they
139138
// end up filtering the list down to 0.
140139
foreach ($this->getRouteFilters() as $filter) {
141140
$collection = $filter->filter($collection, $request);

0 commit comments

Comments
 (0)