@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $save = FileHelper::writeFile($this->configFile, Json::encode($content)); |
| 49 | 49 | |
| 50 | 50 | if (!$save) { |
| 51 | - return $this->outputError("Unable to find config file " . $this->configFile. ". Please create and provide Permissions."); |
|
| 51 | + return $this->outputError("Unable to find config file ".$this->configFile.". Please create and provide Permissions."); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | return $value; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | private function getFilesystemRepoPath($repo) |
| 60 | 60 | { |
| 61 | - return 'repos' . DIRECTORY_SEPARATOR . $repo; |
|
| 61 | + return 'repos'.DIRECTORY_SEPARATOR.$repo; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | private function forkExists($username, $repo) |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // generate summary overview |
| 100 | 100 | foreach ($this->repos as $repo) { |
| 101 | 101 | $newRepoHome = $this->getFilesystemRepoPath($repo); |
| 102 | - if (file_exists($newRepoHome . DIRECTORY_SEPARATOR . '.git')) { |
|
| 102 | + if (file_exists($newRepoHome.DIRECTORY_SEPARATOR.'.git')) { |
|
| 103 | 103 | $summary[] = $this->summaryItem($repo, false, true); |
| 104 | 104 | } elseif ($this->forkExists($username, $repo)) { |
| 105 | 105 | $summary[] = $this->summaryItem($repo, true, false); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | { |
| 155 | 155 | $this->outputSuccess("{$repo}: cloning ..."); |
| 156 | 156 | $this->getGitWrapper()->cloneRepository($cloneUrl, $newRepoHome); |
| 157 | - $this->getGitWrapper()->git('remote add upstream https://github.com/luyadev/'.$repo.'.git', $newRepoHome); |
|
| 157 | + $this->getGitWrapper()->git('remote add upstream https://github.com/luyadev/'.$repo.'.git', $newRepoHome); |
|
| 158 | 158 | $this->outputSuccess("{$repo}: ✔ complete"); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -163,13 +163,13 @@ discard block |
||
| 163 | 163 | $wrapper = new GitWrapper(); |
| 164 | 164 | |
| 165 | 165 | foreach ($this->repos as $repo) { |
| 166 | - $wrapper->git('checkout master', 'repos' . DIRECTORY_SEPARATOR . $repo); |
|
| 166 | + $wrapper->git('checkout master', 'repos'.DIRECTORY_SEPARATOR.$repo); |
|
| 167 | 167 | $this->outputInfo("{$repo}: checkout master ✔"); |
| 168 | 168 | |
| 169 | - $wrapper->git('fetch upstream', 'repos' . DIRECTORY_SEPARATOR . $repo); |
|
| 169 | + $wrapper->git('fetch upstream', 'repos'.DIRECTORY_SEPARATOR.$repo); |
|
| 170 | 170 | $this->outputInfo("{$repo}: fetch upstream ✔"); |
| 171 | 171 | |
| 172 | - $wrapper->git('rebase upstream/master master', 'repos' . DIRECTORY_SEPARATOR . $repo); |
|
| 172 | + $wrapper->git('rebase upstream/master master', 'repos'.DIRECTORY_SEPARATOR.$repo); |
|
| 173 | 173 | $this->outputInfo("{$repo}: rebase master ✔"); |
| 174 | 174 | } |
| 175 | 175 | } |