Completed
Push — master ( d0aa7d...1ba86d )
by Webysther
02:09
created
src/Command/Create.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $this->filesystem->move(self::DOT);
103 103
 
104 104
         // Clean
105
-        if(!$this->input->getOption('no-clean')){
105
+        if (!$this->input->getOption('no-clean')) {
106 106
             $this->setExitCode($this->clean->execute($input, $output));
107 107
         }
108 108
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     {
199 199
         $from = getcwd().'/resources/public/';
200 200
         foreach (new \DirectoryIterator($from) as $fileInfo) {
201
-            if($fileInfo->isDot()) continue;
201
+            if ($fileInfo->isDot()) continue;
202 202
             $file = $fileInfo->getFilename();
203 203
             $to = $this->filesystem->getFullPath($file);
204 204
             copy($from.$file, $to);
@@ -236,14 +236,14 @@  discard block
 block discarded – undo
236 236
 
237 237
         $this->progressBar->start(count($this->providerIncludes));
238 238
 
239
-        $success = function ($body, $path) {
239
+        $success = function($body, $path) {
240 240
             $this->provider->setDownloaded($path);
241 241
             $this->filesystem->write($path, $body);
242 242
         };
243 243
 
244 244
         $this->http->pool($generator, $success, $this->getClosureComplete());
245 245
         $this->progressBar->end();
246
-        if(!$this->progressBar->isDisabled()){
246
+        if (!$this->progressBar->isDisabled()) {
247 247
             $this->output->write(PHP_EOL);
248 248
         }
249 249
         $this->showErrors();
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             ];
287 287
         }
288 288
 
289
-        if(!count($rows)){
289
+        if (!count($rows)) {
290 290
             return $this;
291 291
         }
292 292
 
@@ -308,13 +308,13 @@  discard block
 block discarded – undo
308 308
         foreach ($mirrors as $mirror) {
309 309
             $total = $this->http->getTotalErrorByMirror($mirror);
310 310
 
311
-            if(!isset($this->latestErrorsShowed[$mirror])){
311
+            if (!isset($this->latestErrorsShowed[$mirror])) {
312 312
                 $this->latestErrorsShowed[$mirror] = 0;
313 313
             }
314 314
 
315 315
             if ($total < 100) {
316 316
                 if ($this->isDebug() && $total > 1) {
317
-                    if($this->latestErrorsShowed[$mirror] == $total){
317
+                    if ($this->latestErrorsShowed[$mirror] == $total) {
318 318
                         continue;
319 319
                     }
320 320
 
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
             $this->progressBar->start(count($this->providerPackages));
370 370
             $this->poolPackages($generator);
371 371
             $this->progressBar->end();
372
-            if(!$this->progressBar->isDisabled()){
372
+            if (!$this->progressBar->isDisabled()) {
373 373
                 $this->output->write(PHP_EOL);
374 374
             }
375 375
             $this->showErrors()->disableDueErrors()->fallback();
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         $this->http->pool(
389 389
             $generator,
390 390
             // Success
391
-            function ($body, $path) {
391
+            function($body, $path) {
392 392
                 $this->filesystem->write($path, $body);
393 393
                 $this->package->setDownloaded($path);
394 394
             },
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
      */
405 405
     protected function getClosureComplete():Closure
406 406
     {
407
-        return function () {
407
+        return function() {
408 408
             $this->progressBar->progress();
409 409
         };
410 410
     }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         $this->progressBar->start($total);
435 435
         $this->poolPackages($generator);
436 436
         $this->progressBar->end();
437
-        if(!$this->progressBar->isDisabled()){
437
+        if (!$this->progressBar->isDisabled()) {
438 438
             $this->output->write(PHP_EOL);
439 439
         }
440 440
         $this->showErrors();
Please login to merge, or discard this patch.
src/Command/Clean.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
             $this->progressBar->start(count($list));
161 161
             $this->flushPackage(array_keys($list));
162 162
             $this->progressBar->end();
163
-            if(!$this->progressBar->isDisabled()){
163
+            if (!$this->progressBar->isDisabled()) {
164 164
                 $this->output->write(PHP_EOL);
165 165
             }
166 166
             $this->showRemoved();
Please login to merge, or discard this patch.
resources/index.html.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
                             <br>
80 80
                             <span id="lastsynced" ></span>
81 81
                             <br>
82
-                            <?php if($synced > 0) {?>(Synchronized every <?= $synced ?> seconds)<?php }?>
83
-                            <?php if($synced == 0) {?>(Synchronized continuously)<?php }?>
82
+                            <?php if ($synced > 0) {?>(Synchronized every <?= $synced ?> seconds)<?php }?>
83
+                            <?php if ($synced == 0) {?>(Synchronized continuously)<?php }?>
84 84
                         </p>
85 85
                     </div>
86 86
                     <p>
Please login to merge, or discard this patch.