protected function getHookSourceCode(string $hook) : string
    {
        $absRepoPath = realpath($this->repository->getRoot());
        $vendorPath  = getcwd() . '/vendor';
        $configPath  = realpath($this->config->getPath());
        return Template::getCode($hook, $absRepoPath, $vendorPath, $configPath);
    }
protected function getHookSourceCode(string $hook) : string
    {
        $absRepoPath = realpath($this->repository->getRoot());
        $vendorPath  = getcwd() . '/vendor';
        $configPath  = realpath($this->config->getPath());
        return Template::getCode($hook, $absRepoPath, $vendorPath, $configPath);
    }
protected function getHookSourceCode ( string $ hook ) : string { $ absRepoPath = realpath ( $ this -> repository -> getRoot ( ) ) ; $ vendorPath = getcwd ( ) . '/vendor' ; $ configPath = realpath ( $ this -> config -> getPath ( ) ) ; return Template :: getCode ( $ hook , $ absRepoPath , $ vendorPath , $ configPath ) ; }
Return the source code for a given hook script

@param  string $hook
@return string
Return the source code for a given hook script