original_string: protected function createStepsFromConfig()
      {
          $config = $this->app['config'];
          $stepClasses = $config->get('setup_wizard.steps');
  
          if (empty($stepClasses)) throw new \RuntimeException('The setup wizard requires at least 1 step in configuration');
  
          $steps = [];
          $i = 0;
          foreach ($stepClasses as $id => $stepClass) {
              $s = new $stepClass($id);
              $steps[$id] = $s;
              ++$i;
          }
  
          return $steps;
      }
code: protected function createStepsFromConfig()
      {
          $config = $this->app['config'];
          $stepClasses = $config->get('setup_wizard.steps');
  
          if (empty($stepClasses)) throw new \RuntimeException('The setup wizard requires at least 1 step in configuration');
  
          $steps = [];
          $i = 0;
          foreach ($stepClasses as $id => $stepClass) {
              $s = new $stepClass($id);
              $steps[$id] = $s;
              ++$i;
          }
  
          return $steps;
      }
code_tokens: protected function createStepsFromConfig ( ) { $ config = $ this -> app [ 'config' ] ; $ stepClasses = $ config -> get ( 'setup_wizard.steps' ) ; if ( empty ( $ stepClasses ) ) throw new \ RuntimeException ( 'The setup wizard requires at least 1 step in configuration' ) ; $ steps = [ ] ; $ i = 0 ; foreach ( $ stepClasses as $ id => $ stepClass ) { $ s = new $ stepClass ( $ id ) ; $ steps [ $ id ] = $ s ; ++ $ i ; } return $ steps ; }
docstring: Get configuration and create the step objects
  
  @return array The step objects, indexed by ID
docstring_tokens: Get configuration and create the step objects