Completed
Push — master ( 57ee5c...8b4b16 )
by Andrii
05:45 queued 01:47
created
src/components/GitHub.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getFull_name()
37 37
     {
38
-        return $this->getVendor() . '/' . $this->getName();
38
+        return $this->getVendor().'/'.$this->getName();
39 39
     }
40 40
 
41 41
     public function setFullName($value)
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public function createRepo(string $repo = null)
112 112
     {
113 113
         $end = $this->getVendorType() === 'org'
114
-            ?'/orgs/' . $this->getVendor() . '/repos'
114
+            ? '/orgs/'.$this->getVendor().'/repos'
115 115
             : '/user/repos'
116 116
         ;
117 117
         $res = $this->request('POST', $end, [
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function cloneRepo($repo)
136 136
     {
137
-        return $this->passthru('git', ['clone', '[email protected]:' . $repo]);
137
+        return $this->passthru('git', ['clone', '[email protected]:'.$repo]);
138 138
     }
139 139
 
140 140
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public static function exists($repo)
156 156
     {
157
-        return !static::exec('git', ['ls-remote', '[email protected]:' . $repo], true);
157
+        return !static::exec('git', ['ls-remote', '[email protected]:'.$repo], true);
158 158
     }
159 159
 
160 160
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             return $wait;
171 171
         }
172 172
 
173
-        return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [
173
+        return $this->request('POST', '/repos/'.$this->getFull_name().'/releases', [
174 174
             'tag_name'  => $release,
175 175
             'name'      => $release,
176 176
             'body'      => $notes,
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
 
192 192
     public function request($method, $path, $data)
193 193
     {
194
-        $url = 'https://api.github.com' . $path;
194
+        $url = 'https://api.github.com'.$path;
195 195
 
196
-        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token ' . $this->getToken(), '--data', Json::encode($data), $url]);
196
+        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token '.$this->getToken(), '--data', Json::encode($data), $url]);
197 197
     }
198 198
 
199 199
     public function findToken()
Please login to merge, or discard this patch.