Completed
Push — master ( 92ca66...af0c0b )
by Webysther
02:32
created
resources/index.html.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,12 @@
 block discarded – undo
42 42
                         <h1>Packagist Mirror <img src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.1.0/flags/4x3/<?= $countryCode; ?>.svg" title="<?= $countryName; ?>" alt="<?= $countryName; ?>"/></h1>
43 43
                         <?php if (null !== $lastSync): ?>
44 44
                             <p>Last sync: <span id="lastsynced"><?= $lastSync; ?></span> (Synchronized every <?= $synced ?> seconds)</p>
45
-                        <?php else: ?>
45
+                        <?php else {
46
+    : ?>
46 47
                             <p>Synchronized every 1 minute</p>
47
-                        <?php endif; ?>
48
+                        <?php endif;
49
+}
50
+?>
48 51
                     </div>
49 52
                     <p>
50 53
                         This is PHP package repository Packagist.org mirror site.
Please login to merge, or discard this patch.
src/Command/Create.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         $this->progressBar->start(count($this->providerIncludes));
190 190
 
191
-        $success = function ($body, $path) {
191
+        $success = function($body, $path) {
192 192
             $this->provider->setDownloaded($path);
193 193
             $this->filesystem->write($path, $body);
194 194
         };
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $this->http->pool(
316 316
             $generator,
317 317
             // Success
318
-            function ($body, $path) {
318
+            function($body, $path) {
319 319
                 $this->filesystem->write($path, $body);
320 320
                 $this->package->setDownloaded($path);
321 321
             },
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      */
332 332
     protected function getClosureComplete():Closure
333 333
     {
334
-        return function () {
334
+        return function() {
335 335
             $this->progressBar->progress();
336 336
         };
337 337
     }
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
         $lastModified = filemtime(getenv('PUBLIC_DIR').'/packages.json');
385 385
 
386 386
         $lastSync = null;
387
-        if ($exists && false !== $lastModified){
387
+        if ($exists && false !== $lastModified) {
388 388
             $moment = new \Moment\Moment('now', $tz);
389 389
             $momentJs = new \Moment\CustomFormats\MomentJs();
390 390
             $format = $momentJs->format("dddd, MMMM Do YYYY HH:mm:ss ZZ");
Please login to merge, or discard this patch.