Completed
Push — master ( 492e98...69b246 )
by Basil
03:16
created
dev/BaseDevCommand.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         return false;
29 29
     }
30 30
     
31
+    /**
32
+     * @param string $key
33
+     */
31 34
     public function getConfig($key)
32 35
     {
33 36
         $config = $this->readConfig();
@@ -35,6 +38,10 @@  discard block
 block discarded – undo
35 38
         return isset($config[$key]) ? $config[$key] : false;
36 39
     }
37 40
     
41
+    /**
42
+     * @param string $key
43
+     * @param string $value
44
+     */
38 45
     public function saveConfig($key, $value)
39 46
     {
40 47
         $content = $this->readConfig();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
dev/EnvController.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -51,6 +51,10 @@  discard block
 block discarded – undo
51 51
         return $this->_gitWrapper;
52 52
     }
53 53
     
54
+    /**
55
+     * @param boolean $isFork
56
+     * @param boolean $exists
57
+     */
54 58
     private function summaryItem($repo, $isFork, $exists)
55 59
     {
56 60
         return [$repo, $exists, $isFork];
@@ -150,6 +154,9 @@  discard block
 block discarded – undo
150 154
         return $this->outputSuccess("init complete.");
151 155
     }
152 156
     
157
+    /**
158
+     * @param string $newRepoHome
159
+     */
153 160
     private function cloneRepo($repo, $cloneUrl, $newRepoHome)
154 161
     {
155 162
         $this->outputSuccess("{$repo}: cloning ...");
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.