8000 [DependencyInjection] Remove unused parameter · symfony/symfony@1a58639 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a58639

Browse files
dunglasfabpot
authored andcommitted
[DependencyInjection] Remove unused parameter
1 parent 36bf394 commit 1a58639

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function inlineArguments(ContainerBuilder $container, array $arguments,
7272
continue;
7373
}
7474

75-
if ($this->isInlineableDefinition($container, $id, $definition = $container->getDefinition($id))) {
75+
if ($this->isInlineableDefinition($id, $definition = $container->getDefinition($id))) {
7676
$this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId));
7777

7878
if ($definition->isShared()) {
@@ -100,13 +100,12 @@ private function inlineArguments(ContainerBuilder $container, array $arguments,
100100
/**
101101
* Checks if the definition is inlineable.
102102
*
103-
* @param ContainerBuilder $container
104-
* @param string $id
105-
* @param Definition $definition
103+
* @param string $id
104+
* @param Definition $definition
106105
*
107106
* @return bool If the definition is inlineable
108107
*/
109-
private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition)
108+
private function isInlineableDefinition($id, Definition $definition)
110109
{
111110
if (!$definition->isShared()) {
112111
return true;

0 commit comments

Comments
 (0)
0