original_string: protected function parseCommand($command, $parameters)
      {
          if (is_subclass_of($command, SymfonyCommand::class)) {
              $callingClass = true;
  
              $command = $this->laravel->make($command)->getName();
          }
  
          if (! isset($callingClass) && empty($parameters)) {
              $command = $this->getCommandName($input = new StringInput($command));
          } else {
              array_unshift($parameters, $command);
  
              $input = new ArrayInput($parameters);
          }
  
          return [$command, $input ?? null];
      }
code: protected function parseCommand($command, $parameters)
      {
          if (is_subclass_of($command, SymfonyCommand::class)) {
              $callingClass = true;
  
              $command = $this->laravel->make($command)->getName();
          }
  
          if (! isset($callingClass) && empty($parameters)) {
              $command = $this->getCommandName($input = new StringInput($command));
          } else {
              array_unshift($parameters, $command);
  
              $input = new ArrayInput($parameters);
          }
  
          return [$command, $input ?? null];
      }
code_tokens: protected function parseCommand ( $ command , $ parameters ) { if ( is_subclass_of ( $ command , SymfonyCommand :: class ) ) { $ callingClass = true ; $ command = $ this -> laravel -> make ( $ command ) -> getName ( ) ; } if ( ! isset ( $ callingClass ) && empty ( $ parameters ) ) { $ command = $ this -> getCommandName ( $ input = new StringInput ( $ command ) ) ; } else { array_unshift ( $ parameters , $ command ) ; $ input = new ArrayInput ( $ parameters ) ; } return [ $ command , $ input ?? null ] ; }
docstring: Parse the incoming Artisan command and its input.
  
  @param  string  $command
  @param  array  $parameters
  @return array
docstring_tokens: Parse the incoming Artisan command and its input .