Skip to content

Commit ca9b88d

Browse files
committed
CS cleanups
1 parent 4ea7758 commit ca9b88d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+36
-80
lines changed

Candidates/Candidates.php

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

1212
namespace Symfony\Cmf\Component\Routing\Candidates;
1313

14-
use Doctrine\ODM\PHPCR\DocumentManager;
1514
use Symfony\Component\HttpFoundation\Request;
1615

1716
/**
@@ -98,7 +97,7 @@ public function getCandidates(Request $request)
9897
/**
9998
* Determine the locale of this URL.
10099
*
101-
* @param string $url The url to determine the locale from.
100+
* @param string $url The url to determine the locale from.
102101
*
103102
* @return string|boolean The locale if $url starts with one of the allowed locales.
104103
*/
@@ -125,7 +124,7 @@ protected function determineLocale($url)
125124
* @param string $prefix A prefix to prepend to every pattern.
126125
*
127126
* @return array Paths that could represent routes that match $url and are
128-
* child of $prefix.
127+
* child of $prefix.
129128
*/
130129
protected function getCandidatesFor($url, $prefix = '')
131130
{

Candidates/CandidatesInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface CandidatesInterface
2626
*
2727
* @return array a list of PHPCR-ODM ids
2828
*/
29-
function getCandidates(Request $request);
29+
public function getCandidates(Request $request);
3030

3131
/**
3232
* Determine if $name is a valid candidate, e.g. in getRouteByName.
@@ -35,13 +35,13 @@ function getCandidates(Request $request);
3535
*
3636
* @return boolean
3737
*/
38-
function isCandidate($name);
38+
public function isCandidate($name);
3939

4040
/**
4141
* Provide a best effort query restriction to limit a query to only find
4242
* routes that are supported.
4343
*
4444
* @param object $queryBuilder A query builder suited for the storage backend.
4545
*/
46-
function restrictQuery($queryBuilder);
46+
public function restrictQuery($queryBuilder);
4747
}

ChainRouteCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing;
1413

1514
use Symfony\Component\Config\Resource\ResourceInterface;
@@ -60,6 +59,7 @@ public function count()
6059
foreach ($this->routeCollections as $routeCollection) {
6160
$count+= $routeCollection->count();
6261
}
62+
6363
return $count;
6464
}
6565

@@ -128,7 +128,7 @@ public function remove($name)
128128
* Adds a route collection at the end of the current set by appending all
129129
* routes of the added collection.
130130
*
131-
* @param RouteCollection $collection A RouteCollection instance
131+
* @param RouteCollection $collection A RouteCollection instance
132132
*/
133133
public function addCollection(RouteCollection $collection)
134134
{

ChainRouter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing;
1413

1514
use Symfony\Component\Routing\RouterInterface;

ChainedRouterInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing;
1413

1514
use Symfony\Component\Routing\RouterInterface;

ContentAwareGenerator.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing;
1413

1514
use Doctrine\Common\Collections\Collection;
@@ -58,10 +57,11 @@ public function setContentRepository(ContentRepositoryInterface $contentReposito
5857
/**
5958
* {@inheritDoc}
6059
*
61-
* @param string $name ignored
60+
* @param string $name ignored.
6261
* @param array $parameters must either contain the field 'route' with a
63-
* RouteObjectInterface or the field 'content_id' with a document
64-
* id to get the route for (implementing RouteReferrersReadInterface)
62+
* RouteObjectInterface or the field 'content_id'
63+
* with the id of a document implementing
64+
* RouteReferrersReadInterface.
6565
*
6666
* @throws RouteNotFoundException If there is no such route in the database
6767
*/
@@ -152,7 +152,7 @@ protected function getBestLocaleRoute(SymfonyRoute $route, $parameters)
152152
*
153153
* @param mixed $name
154154
* @param array $parameters which should contain a content field containing
155-
* a RouteReferrersReadInterface object
155+
* a RouteReferrersReadInterface object
156156
*
157157
* @return SymfonyRoute the route instance
158158
*
@@ -225,8 +225,9 @@ protected function getRouteByLocale($routes, $locale)
225225
* @param SymfonyRoute $route
226226
* @param string $locale
227227
*
228-
* @return bool TRUE if there is either no $locale, no _locale requirement
229-
* on the route or if the requirement and the passed $locale match.
228+
* @return bool true if there is either no $locale, no _locale requirement
229+
* on the route or if the requirement and the passed $locale
230+
* match.
230231
*/
231232
private function checkLocaleRequirement(SymfonyRoute $route, $locale)
232233
{
@@ -242,8 +243,8 @@ private function checkLocaleRequirement(SymfonyRoute $route, $locale)
242243
* @param array $parameters the parameters determined by the route
243244
*
244245
* @return string the locale following of the parameters or any other
245-
* information the router has available. defaultLocale if no other locale
246-
* can be determined.
246+
* information the router has available. defaultLocale if no
247+
* other locale can be determined.
247248
*/
248249
protected function getLocale($parameters)
249250
{

ContentRepositoryInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing;
1413

1514
/**

DependencyInjection/Compiler/RegisterRouteEnhancersPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing\DependencyInjection\Compiler;
1413

1514
use Symfony\Component\DependencyInjection\ContainerBuilder;

DependencyInjection/Compiler/RegisterRoutersPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing\DependencyInjection\Compiler;
1413

1514
use Symfony\Component\DependencyInjection\ContainerBuilder;

DynamicRouter.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Component\Routing;
1413

1514
use Symfony\Component\HttpFoundation\Request;
@@ -191,13 +190,13 @@ public function supports($name)
191190
* exceptions documented below.
192191
*
193192
* @param string $pathinfo The path info to be parsed (raw format, i.e. not
194-
* urldecoded)
193+
* urldecoded)
195194
*
196195
* @return array An array of parameters
197196
*
198197
* @throws ResourceNotFoundException If the resource could not be found
199198
* @throws MethodNotAllowedException If the resource was found but the
200-
* request method is not allowed
199+
* request method is not allowed
201200
*
202201
* @api
203202
*/
@@ -236,7 +235,7 @@ public function match($pathinfo)
236235
*
237236
* @throws ResourceNotFoundException If no matching resource could be found
238237
* @throws MethodNotAllowedException If a matching resource was found but
239-
* the request method is not allowed
238+
* the request method is not allowed
240239
*/
241240
public function matchRequest(Request $request)
242241
{

0 commit comments

Comments
 (0)