@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function getFull_name() |
35 | 35 | { |
36 | - return $this->getVendor() . '/' . $this->getName(); |
|
36 | + return $this->getVendor().'/'.$this->getName(); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function setFullName($value) |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function actionCreate() |
96 | 96 | { |
97 | - $res = $this->request('POST', '/orgs/' . $this->getVendor() . '/repos', [ |
|
97 | + $res = $this->request('POST', '/orgs/'.$this->getVendor().'/repos', [ |
|
98 | 98 | 'name' => $this->getName(), |
99 | 99 | 'description' => $this->getDescription(), |
100 | 100 | ]); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function actionClone($repo) |
116 | 116 | { |
117 | - return $this->passthru('git', ['clone', '[email protected]:' . $repo]); |
|
117 | + return $this->passthru('git', ['clone', '[email protected]:'.$repo]); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public static function exists($repo) |
136 | 136 | { |
137 | - return !static::exec('git', ['ls-remote', '[email protected]:' . $repo], true); |
|
137 | + return !static::exec('git', ['ls-remote', '[email protected]:'.$repo], true); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | return $wait; |
150 | 150 | } |
151 | 151 | |
152 | - return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [ |
|
152 | + return $this->request('POST', '/repos/'.$this->getFull_name().'/releases', [ |
|
153 | 153 | 'tag_name' => $release, |
154 | 154 | 'name' => $release, |
155 | 155 | 'body' => $notes, |
@@ -170,9 +170,9 @@ discard block |
||
170 | 170 | |
171 | 171 | public function request($method, $path, $data) |
172 | 172 | { |
173 | - $url = 'https://api.github.com' . $path; |
|
173 | + $url = 'https://api.github.com'.$path; |
|
174 | 174 | |
175 | - return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token ' . $this->getToken(), '--data', Json::encode($data), $url]); |
|
175 | + return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token '.$this->getToken(), '--data', Json::encode($data), $url]); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | public function findToken() |
@@ -89,7 +89,7 @@ |
||
89 | 89 | |
90 | 90 | public function save() |
91 | 91 | { |
92 | - $this->getFile()->write($this->renderFile() . "\n"); |
|
92 | + $this->getFile()->write($this->renderFile()."\n"); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | public function setRelease($release = null, $branch = '') |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | 'name' => 'HiDev', |
18 | 18 | 'basePath' => dirname(__DIR__), |
19 | 19 | 'vendorPath' => HIDEV_VENDOR_DIR, |
20 | - 'runtimePath' => dirname(HIDEV_VENDOR_DIR) . '/.hidev/runtime', |
|
20 | + 'runtimePath' => dirname(HIDEV_VENDOR_DIR).'/.hidev/runtime', |
|
21 | 21 | 'controllerNamespace' => 'hidev\\controllers', |
22 | 22 | 'defaultRoute' => 'default', |
23 | 23 | 'bootstrap' => ['log'], |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ], |
87 | 87 | 'own.version' => [ |
88 | 88 | 'class' => \hidev\components\Version::class, |
89 | - 'file' => dirname(dirname(__DIR__)) . '/version', |
|
89 | + 'file' => dirname(dirname(__DIR__)).'/version', |
|
90 | 90 | ], |
91 | 91 | 'codeception' => [ |
92 | 92 | 'class' => \hidev\components\WTF::class, |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ], |
104 | 104 | 'container' => [ |
105 | 105 | 'singletons' => [ |
106 | - \hidev\components\AbstractVcs::class => function () { |
|
106 | + \hidev\components\AbstractVcs::class => function() { |
|
107 | 107 | $detectedVCS = 'git'; |
108 | 108 | return Yii::$app->get($detectedVCS); |
109 | 109 | }, |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $type = isset($config['template']) || isset($config['copy']) ? 'ConfigFile' : 'Directory'; |
29 | 29 | $defaults = [ |
30 | 30 | 'class' => "hidev\\base\\$type", |
31 | - 'path' => $this->path . '/' . $id, |
|
31 | + 'path' => $this->path.'/'.$id, |
|
32 | 32 | ]; |
33 | 33 | $config = array_merge($defaults, $config ?: []); |
34 | 34 | $object = Yii::createObject($config); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->interpolateArray($item); |
35 | 35 | } |
36 | 36 | } elseif (is_string($data)) { |
37 | - $data = preg_replace_callback('/\\$(\\w+)\\[\'(.+?)\'\\]/', function ($matches) { |
|
37 | + $data = preg_replace_callback('/\\$(\\w+)\\[\'(.+?)\'\\]/', function($matches) { |
|
38 | 38 | return $this->get($matches[1], $matches[2]); |
39 | 39 | }, $data); |
40 | 40 | } |