@@ -267,12 +267,11 @@ private function addProxyClasses()
267267 /**
268268 * Generates the require_once statement for service includes.
269269 *
270- * @param string $id The service id
271270 * @param Definition $definition
272271 *
273272 * @return string
274273 */
275- private function addServiceInclude ($ id , $ definition )
274+ private function addServiceInclude ($ definition )
276275 {
277276 $ template = " require_once %s; \n" ;
278277 $ code = '' ;
@@ -347,9 +346,9 @@ private function addServiceInlinedDefinitions($id, $definition)
347346 $ code .= $ this ->addNewInstance ($ sDefinition , '$ ' .$ name , ' = ' , $ id );
348347
349348 if (!$ this ->hasReference ($ id , $ sDefinition ->getMethodCalls (), true ) && !$ this ->hasReference ($ id , $ sDefinition ->getProperties (), true )) {
350- $ code .= $ this ->addServiceProperties (null , $ sDefinition , $ name );
351- $ code .= $ this ->addServiceMethodCalls (null , $ sDefinition , $ name );
352- $ code .= $ this ->addServiceConfigurator (null , $ sDefinition , $ name );
349+ $ code .= $ this ->addServiceProperties ($ sDefinition , $ name );
350+ $ code .= $ this ->addServiceMethodCalls ($ sDefinition , $ name );
351+ $ code .= $ this ->addServiceConfigurator ($ sDefinition , $ name );
353352 }
354353
355354 $ code .= "\n" ;
@@ -447,13 +446,12 @@ private function isSimpleInstance($id, Definition $definition)
447446 /**
448447 * Adds method calls to a service definition.
449448 *
450- * @param string $id
451449 * @param Definition $definition
452450 * @param string $variableName
453451 *
454452 * @return string
455453 */
456- private function addServiceMethodCalls ($ id , Definition $ definition , $ variableName = 'instance ' )
454+ private function addServiceMethodCalls (Definition $ definition , $ variableName = 'instance ' )
457455 {
458456 $ calls = '' ;
459457 foreach ($ definition ->getMethodCalls () as $ call ) {
@@ -468,7 +466,7 @@ private function addServiceMethodCalls($id, Definition $definition, $variableNam
468466 return $ calls ;
469467 }
470468
471- private function addServiceProperties ($ id , Definition $ definition , $ variableName = 'instance ' )
469+ private function addServiceProperties (Definition $ definition , $ variableName = 'instance ' )
472470 {
473471 $ code = '' ;
474472 foreach ($ definition ->getProperties () as $ name => $ value ) {
@@ -511,9 +509,9 @@ private function addServiceInlinedDefinitionsSetup($id, Definition $definition)
511509 }
512510
513511 $ name = (string ) $ this ->definitionVariables ->offsetGet ($ iDefinition );
514- $ code .= $ this ->addServiceProperties (null , $ iDefinition , $ name );
515- $ code .= $ this ->addServiceMethodCalls (null , $ iDefinition , $ name );
516- $ code .= $ this ->addServiceConfigurator (null , $ iDefinition , $ name );
512+ $ code .= $ this ->addServiceProperties ($ iDefinition , $ name );
513+ $ code .= $ this ->addServiceMethodCalls ($ iDefinition , $ name );
514+ $ code .= $ this ->addServiceConfigurator ($ iDefinition , $ name );
517515 }
518516
519517 if ('' !== $ code ) {
@@ -526,13 +524,12 @@ private function addServiceInlinedDefinitionsSetup($id, Definition $definition)
526524 /**
527525 * Adds configurator definition.
528526 *
529- * @param string $id
530527 * @param Definition $definition
531528 * @param string $variableName
532529 *
533530 * @return string
534531 */
535- private function addServiceConfigurator ($ id , Definition $ definition , $ variableName = 'instance ' )
532+ private function addServiceConfigurator (Definition $ definition , $ variableName = 'instance ' )
536533 {
537534 if (!$ callable = $ definition ->getConfigurator ()) {
538535 return '' ;
@@ -641,14 +638,14 @@ private function addService($id, Definition $definition)
641638 }
642639
643640 $ code .=
644- $ this ->addServiceInclude ($ id , $ definition ).
641+ $ this ->addServiceInclude ($ definition ).
645642 $ this ->addServiceLocalTempVariables ($ id , $ definition ).
646643 $ this ->addServiceInlinedDefinitions ($ id , $ definition ).
647644 $ this ->addServiceInstance ($ id , $ definition ).
648645 $ this ->addServiceInlinedDefinitionsSetup ($ id , $ definition ).
649- $ this ->addServiceProperties ($ id , $ definition ).
650- $ this ->addServiceMethodCalls ($ id , $ definition ).
651- $ this ->addServiceConfigurator ($ id , $ definition ).
646+ $ this ->addServiceProperties ($ definition ).
647+ $ this ->addServiceMethodCalls ($ definition ).
648+ $ this ->addServiceConfigurator ($ definition ).
652649 $ this ->addServiceReturn ($ id , $ definition )
653650 ;
654651 }
0 commit comments