Skip to content

Commit f44b9cd

Browse files
Run php-cs-fixer
1 parent 0420340 commit f44b9cd

15 files changed

+0
-42
lines changed

Loader/AnnotationClassLoader.php

-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ public function setRouteAnnotationClass(string $class)
102102
/**
103103
* Loads from annotations from a class.
104104
*
105-
* @return RouteCollection
106-
*
107105
* @throws \InvalidArgumentException When route can't be parsed
108106
*/
109107
public function load(mixed $class, string $type = null): RouteCollection

Loader/AnnotationDirectoryLoader.php

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
class AnnotationDirectoryLoader extends AnnotationFileLoader
2424
{
2525
/**
26-
* @return RouteCollection
27-
*
2826
* @throws \InvalidArgumentException When the directory does not exist or its routes cannot be parsed
2927
*/
3028
public function load(mixed $path, string $type = null): RouteCollection

Loader/AnnotationFileLoader.php

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public function __construct(FileLocatorInterface $locator, AnnotationClassLoader
4040
/**
4141
* Loads from annotations from a file.
4242
*
43-
* @return RouteCollection|null
44-
*
4543
* @throws \InvalidArgumentException When the file does not exist or its routes cannot be parsed
4644
*/
4745
public function load(mixed $file, string $type = null): ?RouteCollection

Loader/ClosureLoader.php

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class ClosureLoader extends Loader
2525
{
2626
/**
2727
* Loads a Closure.
28-
*
29-
* @return RouteCollection
3028
*/
3129
public function load(mixed $closure, string $type = null): RouteCollection
3230
{

Loader/Configurator/CollectionConfigurator.php

-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public function __construct(RouteCollection $parent, string $name, self $parentC
3838
$this->parentPrefixes = $parentPrefixes;
3939
}
4040

41-
/**
42-
* @return array
43-
*/
4441
public function __sleep(): array
4542
{
4643
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

Loader/Configurator/ImportConfigurator.php

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ public function __construct(RouteCollection $parent, RouteCollection $route)
3030
$this->route = $route;
3131
}
3232

33-
/**
34-
* @return array
35-
*/
3633
public function __sleep(): array
3734
{
3835
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

Loader/ObjectLoader.php

-4
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@ abstract class ObjectLoader extends Loader
2727
*
2828
* For example, if your application uses a service container,
2929
* the $id may be a service id.
30-
*
31-
* @return object
3230
*/
3331
abstract protected function getObject(string $id): object;
3432

3533
/**
3634
* Calls the object method that will load the routes.
37-
*
38-
* @return RouteCollection
3935
*/
4036
public function load(mixed $resource, string $type = null): RouteCollection
4137
{

Loader/PhpFileLoader.php

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class PhpFileLoader extends FileLoader
2929
{
3030
/**
3131
* Loads a PHP file.
32-
*
33-
* @return RouteCollection
3432
*/
3533
public function load(mixed $file, string $type = null): RouteCollection
3634
{

Loader/XmlFileLoader.php

-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ class XmlFileLoader extends FileLoader
3535
public const SCHEME_PATH = '/schema/routing/routing-1.0.xsd';
3636

3737
/**
38-
* @return RouteCollection
39-
*
4038
* @throws \InvalidArgumentException when the file cannot be loaded or when the XML cannot be
4139
* parsed because it does not validate against the scheme
4240
*/
@@ -214,8 +212,6 @@ protected function parseImport(RouteCollection $collection, \DOMElement $node, s
214212
}
215213

216214
/**
217-
* @return \DOMDocument
218-
*
219215
* @throws \InvalidArgumentException When loading of XML file fails because of syntax errors
220216
* or when the XML structure is not as expected by the scheme -
221217
* see validate()

Loader/YamlFileLoader.php

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class YamlFileLoader extends FileLoader
3939
private $yamlParser;
4040

4141
/**
42-
* @return RouteCollection
43-
*
4442
* @throws \InvalidArgumentException When a route can't be parsed because YAML is invalid
4543
*/
4644
public function load(mixed $file, string $type = null): RouteCollection

Matcher/Dumper/MatcherDumperInterface.php

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public function dump(array $options = []): string;
3030

3131
/**
3232
* Gets the routes to dump.
33-
*
34-
* @return RouteCollection
3533
*/
3634
public function getRoutes(): RouteCollection;
3735
}

Route.php

-2
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,6 @@ public function setCondition(?string $condition): static
433433
/**
434434
* Compiles the route.
435435
*
436-
* @return CompiledRoute
437-
*
438436
* @throws \LogicException If the Route cannot be compiled because the
439437
* path or host pattern is invalid
440438
*

RouteCollection.php

-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ public function all(): array
100100

101101
/**
102102
* Gets a route by name.
103-
*
104-
* @return Route|null
105103
*/
106104
public function get(string $name): ?Route
107105
{

RouteCompilerInterface.php

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ interface RouteCompilerInterface
2121
/**
2222
* Compiles the current route instance.
2323
*
24-
* @return CompiledRoute
25-
*
2624
* @throws \LogicException If the Route cannot be compiled because the
2725
* path or host pattern is invalid
2826
*/

Router.php

-8
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ function (ConfigCacheInterface $cache) {
297297

298298
/**
299299
* Gets the UrlGenerator instance associated with this Router.
300-
*
301-
* @return UrlGeneratorInterface
302300
*/
303301
public function getGenerator(): UrlGeneratorInterface
304302
{
@@ -337,17 +335,11 @@ public function addExpressionLanguageProvider(ExpressionFunctionProviderInterfac
337335
$this->expressionLanguageProviders[] = $provider;
338336
}
339337

340-
/**
341-
* @return GeneratorDumperInterface
342-
*/
343338
protected function getGeneratorDumperInstance(): GeneratorDumperInterface
344339
{
345340
return new $this->options['generator_dumper_class']($this->getRouteCollection());
346341
}
347342

348-
/**
349-
* @return MatcherDumperInterface
350-
*/
351343
protected function getMatcherDumperInstance(): MatcherDumperInterface
352344
{
353345
return new $this->options['matcher_dumper_class']($this->getRouteCollection());

0 commit comments

Comments
 (0)