original_string: public function generateAPI($config, $bar)
      {
          if ($config['options-api'] || $config['options-apiOnly']) {
              $this->crudGenerator->createApi($config);
          }
          $bar->advance();
      }
code: public function generateAPI($config, $bar)
      {
          if ($config['options-api'] || $config['options-apiOnly']) {
              $this->crudGenerator->createApi($config);
          }
          $bar->advance();
      }
code_tokens: public function generateAPI ( $ config , $ bar ) { if ( $ config [ 'options-api' ] || $ config [ 'options-apiOnly' ] ) { $ this -> crudGenerator -> createApi ( $ config ) ; } $ bar -> advance ( ) ; }
docstring: Generate api elements.
  
  @param array                                         $config
  @param \Symfony\Component\Console\Helper\ProgressBar $bar
docstring_tokens: Generate api elements .