Skip to content

Commit 8b74e93

Browse files
Philippe Segatorinicolas-grekas
Philippe Segatori
authored andcommitted
Remove superfluous phpdoc tags
1 parent acc159a commit 8b74e93

File tree

9 files changed

+22
-50
lines changed

9 files changed

+22
-50
lines changed

CacheWarmer/AbstractPhpFileCacheWarmer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ final protected function ignoreAutoloadException($class, \Exception $exception)
9595
}
9696

9797
/**
98-
* @param string $cacheDir
99-
* @param ArrayAdapter $arrayAdapter
98+
* @param string $cacheDir
10099
*
101100
* @return bool false if there is nothing to warm-up
102101
*/

CacheWarmer/AnnotationsCacheWarmer.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ class AnnotationsCacheWarmer extends AbstractPhpFileCacheWarmer
3131
private $debug;
3232

3333
/**
34-
* @param Reader $annotationReader
35-
* @param string $phpArrayFile The PHP file where annotations are cached
36-
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached
37-
* @param bool $debug Run in debug mode
34+
* @param string $phpArrayFile The PHP file where annotations are cached
35+
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached
36+
* @param bool $debug Run in debug mode
3837
*/
3938
public function __construct(Reader $annotationReader, $phpArrayFile, CacheItemPoolInterface $fallbackPool, $excludeRegexp = null, $debug = false)
4039
{

CacheWarmer/ValidatorCacheWarmer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer
3333
private $validatorBuilder;
3434

3535
/**
36-
* @param ValidatorBuilderInterface $validatorBuilder
37-
* @param string $phpArrayFile The PHP file where metadata are cached
38-
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached
36+
* @param string $phpArrayFile The PHP file where metadata are cached
37+
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached
3938
*/
4039
public function __construct(ValidatorBuilderInterface $validatorBuilder, $phpArrayFile, CacheItemPoolInterface $fallbackPool)
4140
{

Command/CacheClearCommand.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class CacheClearCommand extends ContainerAwareCommand
4242

4343
/**
4444
* @param CacheClearerInterface $cacheClearer
45-
* @param Filesystem|null $filesystem
4645
*/
4746
public function __construct($cacheClearer = null, Filesystem $filesystem = null)
4847
{
@@ -267,10 +266,9 @@ protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = tr
267266
}
268267

269268
/**
270-
* @param KernelInterface $parent
271-
* @param string $namespace
272-
* @param string $parentClass
273-
* @param string $warmupDir
269+
* @param string $namespace
270+
* @param string $parentClass
271+
* @param string $warmupDir
274272
*
275273
* @return KernelInterface
276274
*/

Console/Descriptor/Descriptor.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ abstract protected function describeContainerTags(ContainerBuilder $builder, arr
127127
* * name: name of described service
128128
*
129129
* @param Definition|Alias|object $service
130-
* @param array $options
131-
* @param ContainerBuilder|null $builder
132130
*/
133131
abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null);
134132

@@ -167,7 +165,6 @@ abstract protected function describeEventDispatcherListeners(EventDispatcherInte
167165
* Describes a callable.
168166
*
169167
* @param callable $callable
170-
* @param array $options
171168
*/
172169
abstract protected function describeCallable($callable, array $options = []);
173170

@@ -214,8 +211,7 @@ protected function formatParameter($value)
214211
}
215212

216213
/**
217-
* @param ContainerBuilder $builder
218-
* @param string $serviceId
214+
* @param string $serviceId
219215
*
220216
* @return mixed
221217
*/
@@ -235,8 +231,7 @@ protected function resolveServiceDefinition(ContainerBuilder $builder, $serviceI
235231
}
236232

237233
/**
238-
* @param ContainerBuilder $builder
239-
* @param bool $showPrivate
234+
* @param bool $showPrivate
240235
*
241236
* @return array
242237
*/

Console/Descriptor/JsonDescriptor.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ protected function getRouteData(Route $route)
207207
}
208208

209209
/**
210-
* @param Definition $definition
211-
* @param bool $omitTags
210+
* @param bool $omitTags
212211
*
213212
* @return array
214213
*/
@@ -285,8 +284,7 @@ private function getContainerAliasData(Alias $alias)
285284
}
286285

287286
/**
288-
* @param EventDispatcherInterface $eventDispatcher
289-
* @param string|null $event
287+
* @param string|null $event
290288
*
291289
* @return array
292290
*/
@@ -318,7 +316,6 @@ private function getEventDispatcherListenersData(EventDispatcherInterface $event
318316

319317
/**
320318
* @param callable $callable
321-
* @param array $options
322319
*
323320
* @return array
324321
*/

Console/Descriptor/TextDescriptor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,6 @@ private function renderEventListenerTable(EventDispatcherInterface $eventDispatc
434434
}
435435

436436
/**
437-
* @param array $config
438-
*
439437
* @return string
440438
*/
441439
private function formatRouterConfig(array $config)
@@ -494,7 +492,6 @@ private function formatCallable($callable)
494492

495493
/**
496494
* @param string $content
497-
* @param array $options
498495
*/
499496
private function writeText($content, array $options = [])
500497
{

Console/Descriptor/XmlDescriptor.php

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ private function getRouteCollectionDocument(RouteCollection $routes)
156156
}
157157

158158
/**
159-
* @param Route $route
160159
* @param string|null $name
161160
*
162161
* @return \DOMDocument
@@ -242,8 +241,7 @@ private function getContainerParametersDocument(ParameterBag $parameters)
242241
}
243242

244243
/**
245-
* @param ContainerBuilder $builder
246-
* @param bool $showPrivate
244+
* @param bool $showPrivate
247245
*
248246
* @return \DOMDocument
249247
*/
@@ -266,10 +264,9 @@ private function getContainerTagsDocument(ContainerBuilder $builder, $showPrivat
266264
}
267265

268266
/**
269-
* @param mixed $service
270-
* @param string $id
271-
* @param ContainerBuilder|null $builder
272-
* @param bool $showArguments
267+
* @param mixed $service
268+
* @param string $id
269+
* @param bool $showArguments
273270
*
274271
* @return \DOMDocument
275272
*/
@@ -294,11 +291,10 @@ private function getContainerServiceDocument($service, $id, ContainerBuilder $bu
294291
}
295292

296293
/**
297-
* @param ContainerBuilder $builder
298-
* @param string|null $tag
299-
* @param bool $showPrivate
300-
* @param bool $showArguments
301-
* @param callable $filter
294+
* @param string|null $tag
295+
* @param bool $showPrivate
296+
* @param bool $showArguments
297+
* @param callable $filter
302298
*
303299
* @return \DOMDocument
304300
*/
@@ -328,7 +324,6 @@ private function getContainerServicesDocument(ContainerBuilder $builder, $tag =
328324
}
329325

330326
/**
331-
* @param Definition $definition
332327
* @param string|null $id
333328
* @param bool $omitTags
334329
*
@@ -452,7 +447,6 @@ private function getArgumentNodes(array $arguments, \DOMDocument $dom)
452447
}
453448

454449
/**
455-
* @param Alias $alias
456450
* @param string|null $id
457451
*
458452
* @return \DOMDocument
@@ -490,8 +484,7 @@ private function getContainerParameterDocument($parameter, $options = [])
490484
}
491485

492486
/**
493-
* @param EventDispatcherInterface $eventDispatcher
494-
* @param string|null $event
487+
* @param string|null $event
495488
*
496489
* @return \DOMDocument
497490
*/

Kernel/MicroKernelTrait.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ trait MicroKernelTrait
2929
*
3030
* $routes->import('config/routing.yml');
3131
* $routes->add('/admin', 'AppBundle:Admin:dashboard', 'admin_dashboard');
32-
*
33-
* @param RouteCollectionBuilder $routes
3432
*/
3533
abstract protected function configureRoutes(RouteCollectionBuilder $routes);
3634

@@ -50,9 +48,6 @@ abstract protected function configureRoutes(RouteCollectionBuilder $routes);
5048
* Or parameters:
5149
*
5250
* $c->setParameter('halloween', 'lot of fun');
53-
*
54-
* @param ContainerBuilder $c
55-
* @param LoaderInterface $loader
5651
*/
5752
abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader);
5853

0 commit comments

Comments
 (0)