Skip to content

Commit b9dbd53

Browse files
committed
[CS] Remove @inheritdoc PHPDoc
1 parent baf38db commit b9dbd53

21 files changed

+0
-113
lines changed

Generator/Dumper/CompiledUrlGeneratorDumper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ public function getCompiledAliases(): array
8888
return $compiledAliases;
8989
}
9090

91-
/**
92-
* {@inheritdoc}
93-
*/
9491
public function dump(array $options = []): string
9592
{
9693
return <<<EOF

Generator/Dumper/GeneratorDumper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ public function __construct(RouteCollection $routes)
2727
$this->routes = $routes;
2828
}
2929

30-
/**
31-
* {@inheritdoc}
32-
*/
3330
public function getRoutes(): RouteCollection
3431
{
3532
return $this->routes;

Generator/UrlGenerator.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,41 +91,26 @@ public function __construct(RouteCollection $routes, RequestContext $context, Lo
9191
$this->defaultLocale = $defaultLocale;
9292
}
9393

94-
/**
95-
* {@inheritdoc}
96-
*/
9794
public function setContext(RequestContext $context)
9895
{
9996
$this->context = $context;
10097
}
10198

102-
/**
103-
* {@inheritdoc}
104-
*/
10599
public function getContext(): RequestContext
106100
{
107101
return $this->context;
108102
}
109103

110-
/**
111-
* {@inheritdoc}
112-
*/
113104
public function setStrictRequirements(?bool $enabled)
114105
{
115106
$this->strictRequirements = $enabled;
116107
}
117108

118-
/**
119-
* {@inheritdoc}
120-
*/
121109
public function isStrictRequirements(): ?bool
122110
{
123111
return $this->strictRequirements;
124112
}
125113

126-
/**
127-
* {@inheritdoc}
128-
*/
129114
public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH): string
130115
{
131116
$route = null;

Loader/AnnotationClassLoader.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,24 +225,15 @@ protected function addRoute(RouteCollection $collection, object $annot, array $g
225225
}
226226
}
227227

228-
/**
229-
* {@inheritdoc}
230-
*/
231228
public function supports(mixed $resource, string $type = null): bool
232229
{
233230
return \is_string($resource) && preg_match('/^(?:\\\\?[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)+$/', $resource) && (!$type || \in_array($type, ['annotation', 'attribute'], true));
234231
}
235232

236-
/**
237-
* {@inheritdoc}
238-
*/
239233
public function setResolver(LoaderResolverInterface $resolver)
240234
{
241235
}
242236

243-
/**
244-
* {@inheritdoc}
245-
*/
246237
public function getResolver(): LoaderResolverInterface
247238
{
248239
}

Loader/AnnotationDirectoryLoader.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ function (\SplFileInfo $current) {
6464
return $collection;
6565
}
6666

67-
/**
68-
* {@inheritdoc}
69-
*/
7067
public function supports(mixed $resource, string $type = null): bool
7168
{
7269
if (\in_array($type, ['annotation', 'attribute'], true)) {

Loader/AnnotationFileLoader.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ public function load(mixed $file, string $type = null): ?RouteCollection
6262
return $collection;
6363
}
6464

65-
/**
66-
* {@inheritdoc}
67-
*/
6865
public function supports(mixed $resource, string $type = null): bool
6966
{
7067
return \is_string($resource) && 'php' === pathinfo($resource, \PATHINFO_EXTENSION) && (!$type || \in_array($type, ['annotation', 'attribute'], true));

Loader/ClosureLoader.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ public function load(mixed $closure, string $type = null): RouteCollection
3131
return $closure($this->env);
3232
}
3333

34-
/**
35-
* {@inheritdoc}
36-
*/
3734
public function supports(mixed $resource, string $type = null): bool
3835
{
3936
return $resource instanceof \Closure && (!$type || 'closure' === $type);

Loader/ContainerLoader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,11 @@ public function __construct(ContainerInterface $container, string $env = null)
2828
parent::__construct($env);
2929
}
3030

31-
/**
32-
* {@inheritdoc}
33-
*/
3431
public function supports(mixed $resource, string $type = null): bool
3532
{
3633
return 'service' === $type && \is_string($resource);
3734
}
3835

39-
/**
40-
* {@inheritdoc}
41-
*/
4236
protected function getObject(string $id): object
4337
{
4438
return $this->container->get($id);

Loader/DirectoryLoader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
class DirectoryLoader extends FileLoader
1919
{
20-
/**
21-
* {@inheritdoc}
22-
*/
2320
public function load(mixed $file, string $type = null): mixed
2421
{
2522
$path = $this->locator->locate($file);
@@ -46,9 +43,6 @@ public function load(mixed $file, string $type = null): mixed
4643
return $collection;
4744
}
4845

49-
/**
50-
* {@inheritdoc}
51-
*/
5246
public function supports(mixed $resource, string $type = null): bool
5347
{
5448
// only when type is forced to directory, not to conflict with AnnotationLoader

Loader/GlobFileLoader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
*/
2222
class GlobFileLoader extends FileLoader
2323
{
24-
/**
25-
* {@inheritdoc}
26-
*/
2724
public function load(mixed $resource, string $type = null): mixed
2825
{
2926
$collection = new RouteCollection();
@@ -37,9 +34,6 @@ public function load(mixed $resource, string $type = null): mixed
3734
return $collection;
3835
}
3936

40-
/**
41-
* {@inheritdoc}
42-
*/
4337
public function supports(mixed $resource, string $type = null): bool
4438
{
4539
return 'glob' === $type;

0 commit comments

Comments
 (0)