@@ -150,13 +150,13 @@ |
||
| 150 | 150 | $this->connections = $this->maxConnections * $mirrors; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $fulfilled = function ($response, $path) use ($success, $complete) { |
|
| 153 | + $fulfilled = function($response, $path) use ($success, $complete) { |
|
| 154 | 154 | $body = (string) $response->getBody(); |
| 155 | 155 | $success($body, $path); |
| 156 | 156 | $complete(); |
| 157 | 157 | }; |
| 158 | 158 | |
| 159 | - $rejected = function ($reason, $path) use ($complete) { |
|
| 159 | + $rejected = function($reason, $path) use ($complete) { |
|
| 160 | 160 | $uri = $reason->getRequest()->getUri(); |
| 161 | 161 | $host = $uri->getScheme().'://'.$uri->getHost(); |
| 162 | 162 | |
@@ -243,7 +243,7 @@ |
||
| 243 | 243 | $this->delete($target); |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | - retry(8, function () use ($from, $target) { |
|
| 246 | + retry(8, function() use ($from, $target) { |
|
| 247 | 247 | $this->filesystem->rename($this->getGzName($from), $target); |
| 248 | 248 | }, 250); |
| 249 | 249 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | $from = getcwd().'/resources/public/'; |
| 176 | 176 | foreach (new \DirectoryIterator($from) as $fileInfo) { |
| 177 | - if($fileInfo->isDot()) continue; |
|
| 177 | + if ($fileInfo->isDot()) continue; |
|
| 178 | 178 | $file = $fileInfo->getFilename(); |
| 179 | 179 | $to = $this->filesystem->getFullPath($file); |
| 180 | 180 | copy($from.$file, $to); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | |
| 206 | 206 | $this->progressBar->start(count($this->providerIncludes)); |
| 207 | 207 | |
| 208 | - $success = function ($body, $path) { |
|
| 208 | + $success = function($body, $path) { |
|
| 209 | 209 | $this->provider->setDownloaded($path); |
| 210 | 210 | $this->filesystem->write($path, $body); |
| 211 | 211 | }; |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | $this->http->pool( |
| 333 | 333 | $generator, |
| 334 | 334 | // Success |
| 335 | - function ($body, $path) { |
|
| 335 | + function($body, $path) { |
|
| 336 | 336 | $this->filesystem->write($path, $body); |
| 337 | 337 | $this->package->setDownloaded($path); |
| 338 | 338 | }, |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | */ |
| 349 | 349 | protected function getClosureComplete():Closure |
| 350 | 350 | { |
| 351 | - return function () { |
|
| 351 | + return function() { |
|
| 352 | 352 | $this->progressBar->progress(); |
| 353 | 353 | }; |
| 354 | 354 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | </style> |
| 39 | 39 | |
| 40 | 40 | |
| 41 | - <?php if(!empty($googleAnalyticsId)) {?> |
|
| 41 | + <?php if (!empty($googleAnalyticsId)) {?> |
|
| 42 | 42 | <!-- Global site tag (gtag.js) - Google Analytics --> |
| 43 | 43 | <script async src="https://www.googletagmanager.com/gtag/js?id=<?=$googleAnalyticsId?>"></script> |
| 44 | 44 | <script> |