original_string: public function splitDefinition(InputDefinition $definition)
      {
          /** @var InputDefinition[] $ret */
          $ret = array(
              new InputDefinition(),
              new InputDefinition()
          );
  
          foreach ($definition->getArguments() as $arg) {
              $ret[0]->addArgument($arg);
              $ret[1]->addArgument($arg);
          }
          foreach ($definition->getOptions() as $opt) {
              $ret[$this->isHiddenOption($opt) ? 1 : 0]->addOption($opt);
          }
          return $ret;
      }
code: public function splitDefinition(InputDefinition $definition)
      {
          /** @var InputDefinition[] $ret */
          $ret = array(
              new InputDefinition(),
              new InputDefinition()
          );
  
          foreach ($definition->getArguments() as $arg) {
              $ret[0]->addArgument($arg);
              $ret[1]->addArgument($arg);
          }
          foreach ($definition->getOptions() as $opt) {
              $ret[$this->isHiddenOption($opt) ? 1 : 0]->addOption($opt);
          }
          return $ret;
      }
code_tokens: public function splitDefinition ( InputDefinition $ definition ) { /** @var InputDefinition[] $ret */ $ ret = array ( new InputDefinition ( ) , new InputDefinition ( ) ) ; foreach ( $ definition -> getArguments ( ) as $ arg ) { $ ret [ 0 ] -> addArgument ( $ arg ) ; $ ret [ 1 ] -> addArgument ( $ arg ) ; } foreach ( $ definition -> getOptions ( ) as $ opt ) { $ ret [ $ this -> isHiddenOption ( $ opt ) ? 1 : 0 ] -> addOption ( $ opt ) ; } return $ ret ; }
docstring: Splits the definition in an internal and public one, the latter representing whatever is shown to the user,
  the former representing the options that are hidden.
  
  @param \Symfony\Component\Console\Input\InputDefinition $definition
  @return InputDefinition[]
docstring_tokens: Splits the definition in an internal and public one the latter representing whatever is shown to the user the former representing the options that are hidden .