Completed
Push — master ( d6a2a0...fb9b6e )
by Webysther
01:59
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
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>
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
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>
Please login to merge, or discard this patch.