@@ -141,10 +141,7 @@ private function writeDocument(\DOMDocument $dom)
141141 $ this ->write ($ dom ->saveXML ());
142142 }
143143
144- /**
145- * @return \DOMDocument
146- */
147- private function getRouteCollectionDocument (RouteCollection $ routes )
144+ private function getRouteCollectionDocument (RouteCollection $ routes ): \DOMDocument
148145 {
149146 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
150147 $ dom ->appendChild ($ routesXML = $ dom ->createElement ('routes ' ));
@@ -157,13 +154,7 @@ private function getRouteCollectionDocument(RouteCollection $routes)
157154 return $ dom ;
158155 }
159156
160- /**
161- * @param Route $route
162- * @param string|null $name
163- *
164- * @return \DOMDocument
165- */
166- private function getRouteDocument (Route $ route , $ name = null )
157+ private function getRouteDocument (Route $ route , string $ name = null ): \DOMDocument
167158 {
168159 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
169160 $ dom ->appendChild ($ routeXML = $ dom ->createElement ('route ' ));
@@ -226,10 +217,7 @@ private function getRouteDocument(Route $route, $name = null)
226217 return $ dom ;
227218 }
228219
229- /**
230- * @return \DOMDocument
231- */
232- private function getContainerParametersDocument (ParameterBag $ parameters )
220+ private function getContainerParametersDocument (ParameterBag $ parameters ): \DOMDocument
233221 {
234222 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
235223 $ dom ->appendChild ($ parametersXML = $ dom ->createElement ('parameters ' ));
@@ -243,13 +231,7 @@ private function getContainerParametersDocument(ParameterBag $parameters)
243231 return $ dom ;
244232 }
245233
246- /**
247- * @param ContainerBuilder $builder
248- * @param bool $showPrivate
249- *
250- * @return \DOMDocument
251- */
252- private function getContainerTagsDocument (ContainerBuilder $ builder , $ showPrivate = false )
234+ private function getContainerTagsDocument (ContainerBuilder $ builder , bool $ showPrivate = false ): \DOMDocument
253235 {
254236 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
255237 $ dom ->appendChild ($ containerXML = $ dom ->createElement ('container ' ));
@@ -267,15 +249,7 @@ private function getContainerTagsDocument(ContainerBuilder $builder, $showPrivat
267249 return $ dom ;
268250 }
269251
270- /**
271- * @param mixed $service
272- * @param string $id
273- * @param ContainerBuilder|null $builder
274- * @param bool $showArguments
275- *
276- * @return \DOMDocument
277- */
278- private function getContainerServiceDocument ($ service , $ id , ContainerBuilder $ builder = null , $ showArguments = false )
252+ private function getContainerServiceDocument ($ service , string $ id , ContainerBuilder $ builder = null , bool $ showArguments = false ): \DOMDocument
279253 {
280254 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
281255
@@ -295,16 +269,7 @@ private function getContainerServiceDocument($service, $id, ContainerBuilder $bu
295269 return $ dom ;
296270 }
297271
298- /**
299- * @param ContainerBuilder $builder
300- * @param string|null $tag
301- * @param bool $showPrivate
302- * @param bool $showArguments
303- * @param callable $filter
304- *
305- * @return \DOMDocument
306- */
307- private function getContainerServicesDocument (ContainerBuilder $ builder , $ tag = null , $ showPrivate = false , $ showArguments = false , $ filter = null )
272+ private function getContainerServicesDocument (ContainerBuilder $ builder , string $ tag = null , bool $ showPrivate = false , bool $ showArguments = false , callable $ filter = null ): \DOMDocument
308273 {
309274 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
310275 $ dom ->appendChild ($ containerXML = $ dom ->createElement ('container ' ));
@@ -329,14 +294,7 @@ private function getContainerServicesDocument(ContainerBuilder $builder, $tag =
329294 return $ dom ;
330295 }
331296
332- /**
333- * @param Definition $definition
334- * @param string|null $id
335- * @param bool $omitTags
336- *
337- * @return \DOMDocument
338- */
339- private function getContainerDefinitionDocument (Definition $ definition , $ id = null , $ omitTags = false , $ showArguments = false )
297+ private function getContainerDefinitionDocument (Definition $ definition , string $ id = null , bool $ omitTags = false , bool $ showArguments = false ): \DOMDocument
340298 {
341299 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
342300 $ dom ->appendChild ($ serviceXML = $ dom ->createElement ('definition ' ));
@@ -453,13 +411,7 @@ private function getArgumentNodes(array $arguments, \DOMDocument $dom)
453411 return $ nodes ;
454412 }
455413
456- /**
457- * @param Alias $alias
458- * @param string|null $id
459- *
460- * @return \DOMDocument
461- */
462- private function getContainerAliasDocument (Alias $ alias , $ id = null )
414+ private function getContainerAliasDocument (Alias $ alias , string $ id = null ): \DOMDocument
463415 {
464416 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
465417 $ dom ->appendChild ($ aliasXML = $ dom ->createElement ('alias ' ));
@@ -474,10 +426,7 @@ private function getContainerAliasDocument(Alias $alias, $id = null)
474426 return $ dom ;
475427 }
476428
477- /**
478- * @return \DOMDocument
479- */
480- private function getContainerParameterDocument ($ parameter , $ options = array ())
429+ private function getContainerParameterDocument ($ parameter , $ options = array ()): \DOMDocument
481430 {
482431 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
483432 $ dom ->appendChild ($ parameterXML = $ dom ->createElement ('parameter ' ));
@@ -491,13 +440,7 @@ private function getContainerParameterDocument($parameter, $options = array())
491440 return $ dom ;
492441 }
493442
494- /**
495- * @param EventDispatcherInterface $eventDispatcher
496- * @param string|null $event
497- *
498- * @return \DOMDocument
499- */
500- private function getEventDispatcherListenersDocument (EventDispatcherInterface $ eventDispatcher , $ event = null )
443+ private function getEventDispatcherListenersDocument (EventDispatcherInterface $ eventDispatcher , string $ event = null ): \DOMDocument
501444 {
502445 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
503446 $ dom ->appendChild ($ eventDispatcherXML = $ dom ->createElement ('event-dispatcher ' ));
@@ -529,12 +472,7 @@ private function appendEventListenerDocument(EventDispatcherInterface $eventDisp
529472 }
530473 }
531474
532- /**
533- * @param callable $callable
534- *
535- * @return \DOMDocument
536- */
537- private function getCallableDocument ($ callable )
475+ private function getCallableDocument ($ callable ): \DOMDocument
538476 {
539477 $ dom = new \DOMDocument ('1.0 ' , 'UTF-8 ' );
540478 $ dom ->appendChild ($ callableXML = $ dom ->createElement ('callable ' ));
0 commit comments