code: public function joinCommand(array $parts)
      {
          $command = 'php ' . implode(' ', $parts);
          $stripped = str_replace('--watch', '', $command);
          return trim($stripped);
      }
docs: Join an array of arg parts into a command.
  
  @param array $parts
  @return string