@@ -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 | var_dump($end); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | public function cloneRepo($repo) |
137 | 137 | { |
138 | - return $this->passthru('git', ['clone', '[email protected]:' . $repo]); |
|
138 | + return $this->passthru('git', ['clone', '[email protected]:'.$repo]); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | */ |
156 | 156 | public static function exists($repo) |
157 | 157 | { |
158 | - return !static::exec('git', ['ls-remote', '[email protected]:' . $repo], true); |
|
158 | + return !static::exec('git', ['ls-remote', '[email protected]:'.$repo], true); |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | return $wait; |
172 | 172 | } |
173 | 173 | |
174 | - return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [ |
|
174 | + return $this->request('POST', '/repos/'.$this->getFull_name().'/releases', [ |
|
175 | 175 | 'tag_name' => $release, |
176 | 176 | 'name' => $release, |
177 | 177 | 'body' => $notes, |
@@ -192,9 +192,9 @@ discard block |
||
192 | 192 | |
193 | 193 | public function request($method, $path, $data) |
194 | 194 | { |
195 | - $url = 'https://api.github.com' . $path; |
|
195 | + $url = 'https://api.github.com'.$path; |
|
196 | 196 | |
197 | - return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token ' . $this->getToken(), '--data', Json::encode($data), $url]); |
|
197 | + return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token '.$this->getToken(), '--data', Json::encode($data), $url]); |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | public function findToken() |