public function resolveCommand($command)
    {
        if ($fullPaths = $this->findWhere($command)) {
            $fullPaths = preg_split('/[\r\n]/', trim($fullPaths));
            $command = end($fullPaths);
        }

        return $command;
    }
public function resolveCommand($command)
    {
        if ($fullPaths = $this->findWhere($command)) {
            $fullPaths = preg_split('/[\r\n]/', trim($fullPaths));
            $command = end($fullPaths);
        }

        return $command;
    }
public function resolveCommand ( $ command ) { if ( $ fullPaths = $ this -> findWhere ( $ command ) ) { $ fullPaths = preg_split ( '/[\r\n]/' , trim ( $ fullPaths ) ) ; $ command = end ( $ fullPaths ) ; } return $ command ; }
Find the absolute path to an executable.

@param string $command

@return string
Find the absolute path to an executable .