@@ -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,9 @@ |
||
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()) { |
|
178 | + continue; |
|
179 | + } |
|
178 | 180 | $file = $fileInfo->getFilename(); |
179 | 181 | $to = $this->filesystem->getFullPath($file); |
180 | 182 | copy($from.$file, $to); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $this->filesystem->move(self::DOT); |
98 | 98 | |
99 | 99 | // Clean |
100 | - if(!$this->input->getOption('no-clean')){ |
|
100 | + if (!$this->input->getOption('no-clean')) { |
|
101 | 101 | $this->setExitCode($this->clean->execute($input, $output)); |
102 | 102 | } |
103 | 103 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | { |
194 | 194 | $from = getcwd().'/resources/public/'; |
195 | 195 | foreach (new \DirectoryIterator($from) as $fileInfo) { |
196 | - if($fileInfo->isDot()) continue; |
|
196 | + if ($fileInfo->isDot()) continue; |
|
197 | 197 | $file = $fileInfo->getFilename(); |
198 | 198 | $to = $this->filesystem->getFullPath($file); |
199 | 199 | copy($from.$file, $to); |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | $this->progressBar->start(count($this->providerIncludes)); |
226 | 226 | |
227 | - $success = function ($body, $path) { |
|
227 | + $success = function($body, $path) { |
|
228 | 228 | $this->provider->setDownloaded($path); |
229 | 229 | $this->filesystem->write($path, $body); |
230 | 230 | }; |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | ]; |
273 | 273 | } |
274 | 274 | |
275 | - if(!count($rows)){ |
|
275 | + if (!count($rows)) { |
|
276 | 276 | return $this; |
277 | 277 | } |
278 | 278 | |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | $this->http->pool( |
363 | 363 | $generator, |
364 | 364 | // Success |
365 | - function ($body, $path) { |
|
365 | + function($body, $path) { |
|
366 | 366 | $this->filesystem->write($path, $body); |
367 | 367 | $this->package->setDownloaded($path); |
368 | 368 | }, |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | */ |
379 | 379 | protected function getClosureComplete():Closure |
380 | 380 | { |
381 | - return function () { |
|
381 | + return function() { |
|
382 | 382 | $this->progressBar->progress(); |
383 | 383 | }; |
384 | 384 | } |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | } |
39 | 39 | </style> |
40 | 40 | |
41 | - <?php if(!empty($googleAnalyticsMainId) || !empty($googleAnalyticsId)) {?> |
|
41 | + <?php if (!empty($googleAnalyticsMainId) || !empty($googleAnalyticsId)) {?> |
|
42 | 42 | <!-- Global site tag (gtag.js) - Google Analytics --> |
43 | - <script async src="https://www.googletagmanager.com/gtag/js?id=<?=$googleAnalyticsMainId?:$googleAnalyticsId?>"></script> |
|
43 | + <script async src="https://www.googletagmanager.com/gtag/js?id=<?=$googleAnalyticsMainId ?: $googleAnalyticsId?>"></script> |
|
44 | 44 | <script> |
45 | 45 | window.dataLayer = window.dataLayer || []; |
46 | 46 | |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | |
51 | 51 | gtag('js', new Date()); |
52 | 52 | |
53 | - <?php if(!empty($googleAnalyticsMainId)) {?> |
|
53 | + <?php if (!empty($googleAnalyticsMainId)) {?> |
|
54 | 54 | gtag('config', '<?=$googleAnalyticsMainId?>'); |
55 | 55 | <?php }?> |
56 | 56 | |
57 | - <?php if(!empty($googleAnalyticsId)) {?> |
|
57 | + <?php if (!empty($googleAnalyticsId)) {?> |
|
58 | 58 | gtag('config', '<?=$googleAnalyticsId?>'); |
59 | 59 | <?php }?> |
60 | 60 | </script> |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | </h1> |
77 | 77 | <p><span id="lastsynced" ></span> |
78 | 78 | <br> |
79 | - <?php if($synced > 0) {?>(Synchronized every <?= $synced ?> seconds)<?php }?> |
|
80 | - <?php if($synced == 0) {?>(Synchronized continuously)<?php }?> |
|
79 | + <?php if ($synced > 0) {?>(Synchronized every <?= $synced ?> seconds)<?php }?> |
|
80 | + <?php if ($synced == 0) {?>(Synchronized continuously)<?php }?> |
|
81 | 81 | </p> |
82 | 82 | </div> |
83 | 83 | <p> |