@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | parent::install($repo, $package); |
| 88 | 88 | foreach ($this->getSupportedHooks() as $gitHookName) { |
| 89 | - $installedHookFilePath = $this->getInstallPath($package) . DIRECTORY_SEPARATOR . $gitHookName; |
|
| 89 | + $installedHookFilePath = $this->getInstallPath($package).DIRECTORY_SEPARATOR.$gitHookName; |
|
| 90 | 90 | |
| 91 | 91 | if (file_exists($installedHookFilePath)) { |
| 92 | - $hookDestinationPath = $this->getGitHooksPath() . DIRECTORY_SEPARATOR . $gitHookName; |
|
| 92 | + $hookDestinationPath = $this->getGitHooksPath().DIRECTORY_SEPARATOR.$gitHookName; |
|
| 93 | 93 | if (!copy($installedHookFilePath, $hookDestinationPath)) { |
| 94 | 94 | echo sprintf( |
| 95 | 95 | 'GitHookInstallerPlugin failed to copy %s to %s!', |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | // clean up temporary data |
| 105 | - exec('rm -rf ' . $this->getHooksInstallationPath()); |
|
| 105 | + exec('rm -rf '.$this->getHooksInstallationPath()); |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -112,15 +112,15 @@ discard block |
||
| 112 | 112 | { |
| 113 | 113 | $gitDir = exec('git rev-parse --git-dir'); |
| 114 | 114 | if (!preg_match('/\.git$/i', $gitDir)) { |
| 115 | - $gitDir .= DIRECTORY_SEPARATOR . '.git'; |
|
| 115 | + $gitDir .= DIRECTORY_SEPARATOR.'.git'; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - return $gitDir . DIRECTORY_SEPARATOR . 'hooks'; |
|
| 118 | + return $gitDir.DIRECTORY_SEPARATOR.'hooks'; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | protected function getHooksInstallationPath() |
| 122 | 122 | { |
| 123 | - return $this->getGitHooksPath() . DIRECTORY_SEPARATOR . '.GitHooksInstallerPlugin'; |
|
| 123 | + return $this->getGitHooksPath().DIRECTORY_SEPARATOR.'.GitHooksInstallerPlugin'; |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |