@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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() |