Skip to content

Commit 78c2120

Browse files
Cleanup @return annotations
1 parent f242c65 commit 78c2120

14 files changed

+14
-14
lines changed

Generator/Dumper/GeneratorDumperInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function dump(array $options = []);
3131
/**
3232
* Gets the routes to dump.
3333
*
34-
* @return RouteCollection A RouteCollection instance
34+
* @return RouteCollection
3535
*/
3636
public function getRoutes();
3737
}

Loader/AnnotationClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function setRouteAnnotationClass(string $class)
104104
*
105105
* @param string $class A class name
106106
*
107-
* @return RouteCollection A RouteCollection instance
107+
* @return RouteCollection
108108
*
109109
* @throws \InvalidArgumentException When route can't be parsed
110110
*/

Loader/AnnotationDirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AnnotationDirectoryLoader extends AnnotationFileLoader
2828
* @param string $path A directory path
2929
* @param string|null $type The resource type
3030
*
31-
* @return RouteCollection A RouteCollection instance
31+
* @return RouteCollection
3232
*
3333
* @throws \InvalidArgumentException When the directory does not exist or its routes cannot be parsed
3434
*/

Loader/AnnotationFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(FileLocatorInterface $locator, AnnotationClassLoader
4343
* @param string $file A PHP file path
4444
* @param string|null $type The resource type
4545
*
46-
* @return RouteCollection|null A RouteCollection instance
46+
* @return RouteCollection|null
4747
*
4848
* @throws \InvalidArgumentException When the file does not exist or its routes cannot be parsed
4949
*/

Loader/ClosureLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ClosureLoader extends Loader
2929
* @param \Closure $closure A Closure
3030
* @param string|null $type The resource type
3131
*
32-
* @return RouteCollection A RouteCollection instance
32+
* @return RouteCollection
3333
*/
3434
public function load($closure, string $type = null)
3535
{

Loader/PhpFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PhpFileLoader extends FileLoader
3333
* @param string $file A PHP file path
3434
* @param string|null $type The resource type
3535
*
36-
* @return RouteCollection A RouteCollection instance
36+
* @return RouteCollection
3737
*/
3838
public function load($file, string $type = null)
3939
{

Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class XmlFileLoader extends FileLoader
4040
* @param string $file An XML file path
4141
* @param string|null $type The resource type
4242
*
43-
* @return RouteCollection A RouteCollection instance
43+
* @return RouteCollection
4444
*
4545
* @throws \InvalidArgumentException when the file cannot be loaded or when the XML cannot be
4646
* parsed because it does not validate against the scheme

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class YamlFileLoader extends FileLoader
4444
* @param string $file A Yaml file path
4545
* @param string|null $type The resource type
4646
*
47-
* @return RouteCollection A RouteCollection instance
47+
* @return RouteCollection
4848
*
4949
* @throws \InvalidArgumentException When a route can't be parsed because YAML is invalid
5050
*/

Matcher/Dumper/MatcherDumperInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function dump(array $options = []);
3131
/**
3232
* Gets the routes to dump.
3333
*
34-
* @return RouteCollection A RouteCollection instance
34+
* @return RouteCollection
3535
*/
3636
public function getRoutes();
3737
}

Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public function setCondition(?string $condition)
439439
/**
440440
* Compiles the route.
441441
*
442-
* @return CompiledRoute A CompiledRoute instance
442+
* @return CompiledRoute
443443
*
444444
* @throws \LogicException If the Route cannot be compiled because the
445445
* path or host pattern is invalid

RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function all()
112112
/**
113113
* Gets a route by name.
114114
*
115-
* @return Route|null A Route instance or null when not found
115+
* @return Route|null
116116
*/
117117
public function get(string $name)
118118
{

RouteCompilerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface RouteCompilerInterface
2121
/**
2222
* Compiles the current route instance.
2323
*
24-
* @return CompiledRoute A CompiledRoute instance
24+
* @return CompiledRoute
2525
*
2626
* @throws \LogicException If the Route cannot be compiled because the
2727
* path or host pattern is invalid

Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function (ConfigCacheInterface $cache) {
303303
/**
304304
* Gets the UrlGenerator instance associated with this Router.
305305
*
306-
* @return UrlGeneratorInterface A UrlGeneratorInterface instance
306+
* @return UrlGeneratorInterface
307307
*/
308308
public function getGenerator()
309309
{

RouterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface
2929
* WARNING: This method should never be used at runtime as it is SLOW.
3030
* You might use it in a cache warmer though.
3131
*
32-
* @return RouteCollection A RouteCollection instance
32+
* @return RouteCollection
3333
*/
3434
public function getRouteCollection();
3535
}

0 commit comments

Comments
 (0)