Skip to content

Commit b99cd6d

Browse files
fabpotnicolas-grekas
authored andcommitted
Remove unneeded phpdocs
1 parent 9ea8dc8 commit b99cd6d

File tree

8 files changed

+17
-43
lines changed

8 files changed

+17
-43
lines changed

CacheWarmer/AbstractPhpFileCacheWarmer.php

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

8383
/**
84-
* @param string $cacheDir
85-
* @param ArrayAdapter $arrayAdapter
84+
* @param string $cacheDir
8685
*
8786
* @return bool false if there is nothing to warm-up
8887
*/

CacheWarmer/TemplateFinder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ class TemplateFinder implements TemplateFinderInterface
3434
private $templates;
3535

3636
/**
37-
* @param KernelInterface $kernel A KernelInterface instance
38-
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
39-
* @param string $rootDir The directory where global templates can be stored
37+
* @param string $rootDir The directory where global templates can be stored
4038
*/
4139
public function __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir)
4240
{

Console/Descriptor/Descriptor.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ abstract protected function describeContainerTags(ContainerBuilder $builder, arr
133133
*
134134
* @param Definition|Alias|object $service
135135
* @param array $options
136-
* @param ContainerBuilder|null $builder
137136
*/
138137
abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null);
139138

@@ -224,8 +223,7 @@ protected function formatParameter($value)
224223
}
225224

226225
/**
227-
* @param ContainerBuilder $builder
228-
* @param string $serviceId
226+
* @param string $serviceId
229227
*
230228
* @return mixed
231229
*/
@@ -249,8 +247,7 @@ protected function resolveServiceDefinition(ContainerBuilder $builder, $serviceI
249247
}
250248

251249
/**
252-
* @param ContainerBuilder $builder
253-
* @param bool $showHidden
250+
* @param bool $showHidden
254251
*
255252
* @return array
256253
*/

Controller/RedirectController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function __construct(UrlGeneratorInterface $router = null, int $httpPort
4646
* In case the route name is empty, the status code will be 404 when permanent is false
4747
* and 410 otherwise.
4848
*
49-
* @param Request $request The request instance
5049
* @param string $route The route name to redirect to
5150
* @param bool $permanent Whether the redirection is permanent
5251
* @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
@@ -88,7 +87,6 @@ public function redirectAction(Request $request, string $route, bool $permanent
8887
* In case the path is empty, the status code will be 404 when permanent is false
8988
* and 410 otherwise.
9089
*
91-
* @param Request $request The request instance
9290
* @param string $path The absolute path or URL to redirect to
9391
* @param bool $permanent Whether the redirect is permanent or not
9492
* @param string|null $scheme The URL scheme (null to keep the current one)

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', 'App\Controller\AdminController::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

Templating/EngineInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ interface EngineInterface extends BaseEngineInterface
2828
/**
2929
* Renders a view and returns a Response.
3030
*
31-
* @param string $view The view name
32-
* @param array $parameters An array of parameters to pass to the view
33-
* @param Response $response A Response instance
31+
* @param string $view The view name
32+
* @param array $parameters An array of parameters to pass to the view
3433
*
3534
* @return Response A Response instance
3635
*

Templating/Helper/FormHelper.php

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function getName()
4747
*
4848
* The theme format is "<Bundle>:<Controller>".
4949
*
50-
* @param FormView $view A FormView instance
5150
* @param string|array $themes A theme or an array of theme
5251
* @param bool $useDefaultThemes If true, will use default themes defined in the renderer
5352
*/
@@ -75,8 +74,7 @@ public function setTheme(FormView $view, $themes, $useDefaultThemes = true)
7574
* form individually. You can also create a custom form theme to adapt
7675
* the look of the form.
7776
*
78-
* @param FormView $view The view for which to render the form
79-
* @param array $variables Additional variables passed to the template
77+
* @param array $variables Additional variables passed to the template
8078
*
8179
* @return string The HTML markup
8280
*/
@@ -92,8 +90,7 @@ public function form(FormView $view, array $variables = [])
9290
*
9391
* <?php echo $view['form']->start($form) ?>>
9492
*
95-
* @param FormView $view The view for which to render the start tag
96-
* @param array $variables Additional variables passed to the template
93+
* @param array $variables Additional variables passed to the template
9794
*
9895
* @return string The HTML markup
9996
*/
@@ -109,8 +106,7 @@ public function start(FormView $view, array $variables = [])
109106
*
110107
* <?php echo $view['form']->end($form) ?>>
111108
*
112-
* @param FormView $view The view for which to render the end tag
113-
* @param array $variables Additional variables passed to the template
109+
* @param array $variables Additional variables passed to the template
114110
*
115111
* @return string The HTML markup
116112
*/
@@ -132,8 +128,7 @@ public function end(FormView $view, array $variables = [])
132128
*
133129
* <?php echo $view['form']->widget($form, ['separator' => '+++++']) ?>
134130
*
135-
* @param FormView $view The view for which to render the widget
136-
* @param array $variables Additional variables passed to the template
131+
* @param array $variables Additional variables passed to the template
137132
*
138133
* @return string The HTML markup
139134
*/
@@ -145,8 +140,7 @@ public function widget(FormView $view, array $variables = [])
145140
/**
146141
* Renders the entire form field "row".
147142
*
148-
* @param FormView $view The view for which to render the row
149-
* @param array $variables Additional variables passed to the template
143+
* @param array $variables Additional variables passed to the template
150144
*
151145
* @return string The HTML markup
152146
*/
@@ -158,9 +152,8 @@ public function row(FormView $view, array $variables = [])
158152
/**
159153
* Renders the label of the given view.
160154
*
161-
* @param FormView $view The view for which to render the label
162-
* @param string $label The label
163-
* @param array $variables Additional variables passed to the template
155+
* @param string $label The label
156+
* @param array $variables Additional variables passed to the template
164157
*
165158
* @return string The HTML markup
166159
*/
@@ -176,8 +169,6 @@ public function label(FormView $view, $label = null, array $variables = [])
176169
/**
177170
* Renders the help of the given view.
178171
*
179-
* @param FormView $view The parent view
180-
*
181172
* @return string The HTML markup
182173
*/
183174
public function help(FormView $view): string
@@ -198,8 +189,7 @@ public function errors(FormView $view)
198189
/**
199190
* Renders views which have not already been rendered.
200191
*
201-
* @param FormView $view The parent view
202-
* @param array $variables An array of variables
192+
* @param array $variables An array of variables
203193
*
204194
* @return string The HTML markup
205195
*/
@@ -211,9 +201,8 @@ public function rest(FormView $view, array $variables = [])
211201
/**
212202
* Renders a block of the template.
213203
*
214-
* @param FormView $view The view for determining the used themes
215-
* @param string $blockName The name of the block to render
216-
* @param array $variables The variable to pass to the template
204+
* @param string $blockName The name of the block to render
205+
* @param array $variables The variable to pass to the template
217206
*
218207
* @return string The HTML markup
219208
*/

Templating/Loader/TemplateLocator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ class TemplateLocator implements FileLocatorInterface
3131
private $cacheHits = [];
3232

3333
/**
34-
* @param FileLocatorInterface $locator A FileLocatorInterface instance
35-
* @param string $cacheDir The cache path
34+
* @param string $cacheDir The cache path
3635
*/
3736
public function __construct(FileLocatorInterface $locator, string $cacheDir = null)
3837
{

0 commit comments

Comments
 (0)