original_string: private function inlineArguments(ContainerBuilder $container, array $arguments, $isRoot = false)
      {
          foreach ($arguments as $k => $argument) {
              if ($isRoot) {
                  $this->currentId = $k;
              }
              if (is_array($argument)) {
                  $arguments[$k] = $this->inlineArguments($container, $argument);
              } elseif ($argument instanceof Reference) {
                  if (!$container->hasDefinition($id = (string) $argument)) {
                      continue;
                  }
  
                  if ($this->isInlineableDefinition($id, $definition = $container->getDefinition($id))) {
                      $this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId));
  
                      if ($definition->isShared()) {
                          $arguments[$k] = $definition;
                      } else {
                          $arguments[$k] = clone $definition;
                      }
                  }
              } elseif ($argument instanceof Definition) {
                  $argument->setArguments($this->inlineArguments($container, $argument->getArguments()));
                  $argument->setMethodCalls($this->inlineArguments($container, $argument->getMethodCalls()));
                  $argument->setProperties($this->inlineArguments($container, $argument->getProperties()));
  
                  $configurator = $this->inlineArguments($container, array($argument->getConfigurator()));
                  $argument->setConfigurator($configurator[0]);
  
                  $factory = $this->inlineArguments($container, array($argument->getFactory()));
                  $argument->setFactory($factory[0]);
              }
          }
  
          return $arguments;
      }
code: private function inlineArguments(ContainerBuilder $container, array $arguments, $isRoot = false)
      {
          foreach ($arguments as $k => $argument) {
              if ($isRoot) {
                  $this->currentId = $k;
              }
              if (is_array($argument)) {
                  $arguments[$k] = $this->inlineArguments($container, $argument);
              } elseif ($argument instanceof Reference) {
                  if (!$container->hasDefinition($id = (string) $argument)) {
                      continue;
                  }
  
                  if ($this->isInlineableDefinition($id, $definition = $container->getDefinition($id))) {
                      $this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId));
  
                      if ($definition->isShared()) {
                          $arguments[$k] = $definition;
                      } else {
                          $arguments[$k] = clone $definition;
                      }
                  }
              } elseif ($argument instanceof Definition) {
                  $argument->setArguments($this->inlineArguments($container, $argument->getArguments()));
                  $argument->setMethodCalls($this->inlineArguments($container, $argument->getMethodCalls()));
                  $argument->setProperties($this->inlineArguments($container, $argument->getProperties()));
  
                  $configurator = $this->inlineArguments($container, array($argument->getConfigurator()));
                  $argument->setConfigurator($configurator[0]);
  
                  $factory = $this->inlineArguments($container, array($argument->getFactory()));
                  $argument->setFactory($factory[0]);
              }
          }
  
          return $arguments;
      }
code_tokens: private function inlineArguments ( ContainerBuilder $ container , array $ arguments , $ isRoot = false ) { foreach ( $ arguments as $ k => $ argument ) { if ( $ isRoot ) { $ this -> currentId = $ k ; } if ( is_array ( $ argument ) ) { $ arguments [ $ k ] = $ this -> inlineArguments ( $ container , $ argument ) ; } elseif ( $ argument instanceof Reference ) { if ( ! $ container -> hasDefinition ( $ id = ( string ) $ argument ) ) { continue ; } if ( $ this -> isInlineableDefinition ( $ id , $ definition = $ container -> getDefinition ( $ id ) ) ) { $ this -> compiler -> addLogMessage ( $ this -> formatter -> formatInlineService ( $ this , $ id , $ this -> currentId ) ) ; if ( $ definition -> isShared ( ) ) { $ arguments [ $ k ] = $ definition ; } else { $ arguments [ $ k ] = clone $ definition ; } } } elseif ( $ argument instanceof Definition ) { $ argument -> setArguments ( $ this -> inlineArguments ( $ container , $ argument -> getArguments ( ) ) ) ; $ argument -> setMethodCalls ( $ this -> inlineArguments ( $ container , $ argument -> getMethodCalls ( ) ) ) ; $ argument -> setProperties ( $ this -> inlineArguments ( $ container , $ argument -> getProperties ( ) ) ) ; $ configurator = $ this -> inlineArguments ( $ container , array ( $ argument -> getConfigurator ( ) ) ) ; $ argument -> setConfigurator ( $ configurator [ 0 ] ) ; $ factory = $ this -> inlineArguments ( $ container , array ( $ argument -> getFactory ( ) ) ) ; $ argument -> setFactory ( $ factory [ 0 ] ) ; } } return $ arguments ; }
docstring: Processes inline arguments.
  
  @param ContainerBuilder $container The ContainerBuilder
  @param array            $arguments An array of arguments
  @param bool             $isRoot    If we are processing the root definitions or not
  
  @return array
docstring_tokens: Processes inline arguments .