@@ -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> |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | /> |
| 76 | 76 | </h1> |
| 77 | 77 | <p><span id="lastsynced" ></span> |
| 78 | - <br><?php if(!empty($synced)) {?>(Synchronized every <?= $synced ?> seconds)<?php }?> |
|
| 78 | + <br><?php if (!empty($synced)) {?>(Synchronized every <?= $synced ?> seconds)<?php }?> |
|
| 79 | 79 | </p> |
| 80 | 80 | </div> |
| 81 | 81 | <p> |
@@ -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 | }; |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | $this->http->pool( |
| 356 | 356 | $generator, |
| 357 | 357 | // Success |
| 358 | - function ($body, $path) { |
|
| 358 | + function($body, $path) { |
|
| 359 | 359 | $this->filesystem->write($path, $body); |
| 360 | 360 | $this->package->setDownloaded($path); |
| 361 | 361 | }, |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | */ |
| 372 | 372 | protected function getClosureComplete():Closure |
| 373 | 373 | { |
| 374 | - return function () { |
|
| 374 | + return function() { |
|
| 375 | 375 | $this->progressBar->progress(); |
| 376 | 376 | }; |
| 377 | 377 | } |