original_string: protected function getComposerPathFromInput(InputInterface $input)
      {
          if ($input->getOption('directory')) {
              return $input->getOption('directory');
          }
  
          if ($input->getOption('global')) {
              return getenv('HOME').'/.composer';
          }
      }
code: protected function getComposerPathFromInput(InputInterface $input)
      {
          if ($input->getOption('directory')) {
              return $input->getOption('directory');
          }
  
          if ($input->getOption('global')) {
              return getenv('HOME').'/.composer';
          }
      }
code_tokens: protected function getComposerPathFromInput ( InputInterface $ input ) { if ( $ input -> getOption ( 'directory' ) ) { return $ input -> getOption ( 'directory' ) ; } if ( $ input -> getOption ( 'global' ) ) { return getenv ( 'HOME' ) . '/.composer' ; } }
docstring: Get composer path based on user input.
  
  @param \Symfony\Component\Console\Input\InputInterface $input
  
  @return null|string
docstring_tokens: Get composer path based on user input .