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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 0 additions & 2 deletions
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

0 commit comments

Comments
 (0)