Skip to content

Commit

Permalink
[DependencyInjection] Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored and fabpot committed Feb 2, 2016
1 parent 36bf394 commit 1a58639
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -72,7 +72,7 @@ private function inlineArguments(ContainerBuilder $container, array $arguments,
continue;
}

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

if ($definition->isShared()) {
Expand Down Expand Up @@ -100,13 +100,12 @@ private function inlineArguments(ContainerBuilder $container, array $arguments,
/**
* Checks if the definition is inlineable.
*
* @param ContainerBuilder $container
* @param string $id
* @param Definition $definition
* @param string $id
* @param Definition $definition
*
* @return bool If the definition is inlineable
*/
private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition)
private function isInlineableDefinition($id, Definition $definition)
{
if (!$definition->isShared()) {
return true;
Expand Down

0 comments on commit 1a58639

Please sign in to comment.