@@ -273,13 +273,12 @@ private function addProxyClasses()
273273 /**
274274 * Generates the require_once statement for service includes.
275275 *
276- * @param string $id
277276 * @param Definition $definition
278277 * @param array $inlinedDefinitions
279278 *
280279 * @return string
281280 */
282- private function addServiceInclude ($ id , Definition $ definition , array $ inlinedDefinitions )
281+ private function addServiceInclude (Definition $ definition , array $ inlinedDefinitions )
283282 {
284283 $ template = " require_once %s; \n" ;
285284 $ code = '' ;
@@ -353,9 +352,9 @@ private function addServiceInlinedDefinitions($id, array $inlinedDefinitions)
353352 $ code .= $ this ->addNewInstance ($ sDefinition , '$ ' .$ name , ' = ' , $ id );
354353
355354 if (!$ this ->hasReference ($ id , $ sDefinition ->getMethodCalls (), true ) && !$ this ->hasReference ($ id , $ sDefinition ->getProperties (), true )) {
356- $ code .= $ this ->addServiceProperties (null , $ sDefinition , $ name );
357- $ code .= $ this ->addServiceMethodCalls (null , $ sDefinition , $ name );
358- $ code .= $ this ->addServiceConfigurator (null , $ sDefinition , $ name );
355+ $ code .= $ this ->addServiceProperties ($ sDefinition , $ name );
356+ $ code .= $ this ->addServiceMethodCalls ($ sDefinition , $ name );
357+ $ code .= $ this ->addServiceConfigurator ($ sDefinition , $ name );
359358 }
360359
361360 $ code .= "\n" ;
@@ -453,13 +452,12 @@ private function isSimpleInstance($id, Definition $definition)
453452 /**
454453 * Adds method calls to a service definition.
455454 *
456- * @param string $id
457455 * @param Definition $definition
458456 * @param string $variableName
459457 *
460458 * @return string
461459 */
462- private function addServiceMethodCalls ($ id , Definition $ definition , $ variableName = 'instance ' )
460+ private function addServiceMethodCalls (Definition $ definition , $ variableName = 'instance ' )
463461 {
464462 $ calls = '' ;
465463 foreach ($ definition ->getMethodCalls () as $ call ) {
@@ -474,7 +472,7 @@ private function addServiceMethodCalls($id, Definition $definition, $variableNam
474472 return $ calls ;
475473 }
476474
477- private function addServiceProperties ($ id , Definition $ definition , $ variableName = 'instance ' )
475+ private function addServiceProperties (Definition $ definition , $ variableName = 'instance ' )
478476 {
479477 $ code = '' ;
480478 foreach ($ definition ->getProperties () as $ name => $ value ) {
@@ -518,9 +516,9 @@ private function addServiceInlinedDefinitionsSetup($id, array $inlinedDefinition
518516 }
519517
520518 $ name = (string ) $ this ->definitionVariables ->offsetGet ($ iDefinition );
521- $ code .= $ this ->addServiceProperties (null , $ iDefinition , $ name );
522- $ code .= $ this ->addServiceMethodCalls (null , $ iDefinition , $ name );
523- $ code .= $ this ->addServiceConfigurator (null , $ iDefinition , $ name );
519+ $ code .= $ this ->addServiceProperties ($ iDefinition , $ name );
520+ $ code .= $ this ->addServiceMethodCalls ($ iDefinition , $ name );
521+ $ code .= $ this ->addServiceConfigurator ($ iDefinition , $ name );
524522 }
525523
526524 if ('' !== $ code ) {
@@ -533,13 +531,12 @@ private function addServiceInlinedDefinitionsSetup($id, array $inlinedDefinition
533531 /**
534532 * Adds configurator definition.
535533 *
536- * @param string $id
537534 * @param Definition $definition
538535 * @param string $variableName
539536 *
540537 * @return string
541538 */
542- private function addServiceConfigurator ($ id , Definition $ definition , $ variableName = 'instance ' )
539+ private function addServiceConfigurator (Definition $ definition , $ variableName = 'instance ' )
543540 {
544541 if (!$ callable = $ definition ->getConfigurator ()) {
545542 return '' ;
@@ -649,14 +646,14 @@ private function addService($id, Definition $definition)
649646 $ isSimpleInstance = $ this ->isSimpleInstance ($ id , $ definition , $ inlinedDefinitions );
650647
651648 $ code .=
652- $ this ->addServiceInclude ($ id , $ definition , $ inlinedDefinitions ).
649+ $ this ->addServiceInclude ($ definition , $ inlinedDefinitions ).
653650 $ this ->addServiceLocalTempVariables ($ id , $ definition , $ inlinedDefinitions ).
654651 $ this ->addServiceInlinedDefinitions ($ id , $ inlinedDefinitions ).
655652 $ this ->addServiceInstance ($ id , $ definition , $ isSimpleInstance ).
656653 $ this ->addServiceInlinedDefinitionsSetup ($ id , $ inlinedDefinitions , $ isSimpleInstance ).
657- $ this ->addServiceProperties ($ id , $ definition ).
658- $ this ->addServiceMethodCalls ($ id , $ definition ).
659- $ this ->addServiceConfigurator ($ id , $ definition ).
654+ $ this ->addServiceProperties ($ definition ).
655+ $ this ->addServiceMethodCalls ($ definition ).
656+ $ this ->addServiceConfigurator ($ definition ).
660657 $ this ->addServiceReturn ($ id , $ isSimpleInstance )
661658 ;
662659
0 commit comments