Completed
Push — master ( 819cb4...cae28e )
by Webysther
02:13
created
src/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,13 +150,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/Create.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 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
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $mirrors = $this->http->getMirror()->toArray();
307 307
 
308 308
         foreach ($mirrors as $mirror) {
309
-            if(empty($mirror)){
309
+            if (empty($mirror)) {
310 310
                 continue;
311 311
             }
312 312
             
@@ -314,13 +314,13 @@  discard block
 block discarded – undo
314 314
             $base = $uri['scheme'].'://'.$uri['host'];
315 315
             $total = $this->http->getTotalErrorByMirror($base);
316 316
 
317
-            if(!isset($this->latestErrorsShowed[$base])){
317
+            if (!isset($this->latestErrorsShowed[$base])) {
318 318
                 $this->latestErrorsShowed[$base] = 0;
319 319
             }
320 320
 
321 321
             if ($total < 100) {
322 322
                 if ($this->isDebug() && $total > 1) {
323
-                    if($this->latestErrorsShowed[$base] == $total){
323
+                    if ($this->latestErrorsShowed[$base] == $total) {
324 324
                         continue;
325 325
                     }
326 326
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
             $this->progressBar->start(count($this->providerPackages));
376 376
             $this->poolPackages($generator);
377 377
             $this->progressBar->end();
378
-            if(!$this->progressBar->isDisabled()){
378
+            if (!$this->progressBar->isDisabled()) {
379 379
                 $this->output->write(PHP_EOL);
380 380
             }
381 381
             $this->showErrors()->disableDueErrors()->fallback();
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
         $this->http->pool(
395 395
             $generator,
396 396
             // Success
397
-            function ($body, $path) {
397
+            function($body, $path) {
398 398
                 $this->filesystem->write($path, $body);
399 399
                 $this->package->setDownloaded($path);
400 400
             },
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     protected function getClosureComplete():Closure
412 412
     {
413
-        return function () {
413
+        return function() {
414 414
             $this->progressBar->progress();
415 415
         };
416 416
     }
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         $this->progressBar->start($total);
441 441
         $this->poolPackages($generator);
442 442
         $this->progressBar->end();
443
-        if(!$this->progressBar->isDisabled()){
443
+        if (!$this->progressBar->isDisabled()) {
444 444
             $this->output->write(PHP_EOL);
445 445
         }
446 446
         $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.