Completed
Push — master ( ed27c8...e306d2 )
by Basil
02:44
created
core/web/jsonld/Event.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
  */
13 13
 class Event extends BaseThing implements EventInterface
14 14
 {
15
-	/**
16
-	 * @inheritdoc
17
-	 */
15
+    /**
16
+     * @inheritdoc
17
+     */
18 18
     public function typeDefintion()
19 19
     {
20 20
         return 'Event';
Please login to merge, or discard this patch.
dev/EnvController.php 2 patches
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.
Doc Comments   +10 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];
@@ -61,6 +65,9 @@  discard block
 block discarded – undo
61 65
         return 'repos' . DIRECTORY_SEPARATOR . $repo;
62 66
     }
63 67
 
68
+    /**
69
+     * @param string|boolean $username
70
+     */
64 71
     private function forkExists($username, $repo)
65 72
     {
66 73
         return (new Curl())->get('https://api.github.com/repos/'.$username.'/'.$repo)->isSuccess(); 
@@ -150,6 +157,9 @@  discard block
 block discarded – undo
150 157
         return $this->outputSuccess("init complete.");
151 158
     }
152 159
     
160
+    /**
161
+     * @param string $newRepoHome
162
+     */
153 163
     private function cloneRepo($repo, $cloneUrl, $newRepoHome)
154 164
     {
155 165
         $this->outputSuccess("{$repo}: cloning ...");
Please login to merge, or discard this patch.
dev/BaseDevCommand.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Display config data and location.
25 25
      * 
26
-     * @return boolean|void
26
+     * @return integer|null
27 27
      */
28 28
     public function actionConfigInfo()
29 29
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * Save a value in the config for a given key.
74 74
      * 
75 75
      * @param string $key
76
-     * @param mixed $value
76
+     * @param string $value
77 77
      * @return mixed
78 78
      */
79 79
     protected function saveConfig($key, $value)
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
  */
16 16
 class BaseDevCommand extends Command
17 17
 {
18
-	/**
19
-	 * @var string The location of the devconfig json where data is stored.
20
-	 */
18
+    /**
19
+     * @var string The location of the devconfig json where data is stored.
20
+     */
21 21
     public $configFile = '@appFolder/devconfig.json';
22 22
     
23 23
     /**
@@ -27,17 +27,17 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function actionConfigInfo()
29 29
     {
30
-    	$this->outputInfo("dev config file: " . Yii::getAlias($this->configFile));
30
+        $this->outputInfo("dev config file: " . Yii::getAlias($this->configFile));
31 31
     	
32
-    	$config = $this->readConfig();
32
+        $config = $this->readConfig();
33 33
     	
34
-    	if (!$config) {
35
-    		return $this->outputError("Unable to open config file.");
36
-    	}
34
+        if (!$config) {
35
+            return $this->outputError("Unable to open config file.");
36
+        }
37 37
     	
38
-    	foreach ($config as $key => $value) {
39
-    		$this->output("{$key} => {$value}");
40
-    	}
38
+        foreach ($config as $key => $value) {
39
+            $this->output("{$key} => {$value}");
40
+        }
41 41
     }
42 42
     
43 43
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function actionConfigInfo()
29 29
     {
30
-    	$this->outputInfo("dev config file: " . Yii::getAlias($this->configFile));
30
+    	$this->outputInfo("dev config file: ".Yii::getAlias($this->configFile));
31 31
     	
32 32
     	$config = $this->readConfig();
33 33
     	
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $save = FileHelper::writeFile($this->configFile, Json::encode($content));
90 90
         
91 91
         if (!$save) {
92
-            return $this->outputError("Unable to find config file " . $this->configFile. ". Please create and provide Permissions.");
92
+            return $this->outputError("Unable to find config file ".$this->configFile.". Please create and provide Permissions.");
93 93
         }
94 94
         
95 95
         return $value;
Please login to merge, or discard this patch.