original_string: private function getConfigForPath(array $config, string $path, string $alias)
      {
          $steps = explode('.', $path);
  
          foreach ($steps as $step) {
              if (!\array_key_exists($step, $config)) {
                  throw new LogicException(sprintf('Unable to find configuration for "%s.%s"', $alias, $path));
              }
  
              $config = $config[$step];
          }
  
          return $config;
      }
code: private function getConfigForPath(array $config, string $path, string $alias)
      {
          $steps = explode('.', $path);
  
          foreach ($steps as $step) {
              if (!\array_key_exists($step, $config)) {
                  throw new LogicException(sprintf('Unable to find configuration for "%s.%s"', $alias, $path));
              }
  
              $config = $config[$step];
          }
  
          return $config;
      }
code_tokens: private function getConfigForPath ( array $ config , string $ path , string $ alias ) { $ steps = explode ( '.' , $ path ) ; foreach ( $ steps as $ step ) { if ( ! \ array_key_exists ( $ step , $ config ) ) { throw new LogicException ( sprintf ( 'Unable to find configuration for "%s.%s"' , $ alias , $ path ) ) ; } $ config = $ config [ $ step ] ; } return $ config ; }
docstring: Iterate over configuration until the last step of the given path.
  
  @throws LogicException If the configuration does not exist
  
  @return mixed
docstring_tokens: Iterate over configuration until the last step of the given path .