Completed
Pull Request — master (#23)
by Pádraic
01:58
created
src/Updater.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
     protected function setLocalPubKeyFile()
446 446
     {
447
-        $localPubKeyFile = $this->getLocalPharFile().'.pubkey';
447
+        $localPubKeyFile = $this->getLocalPharFile() . '.pubkey';
448 448
         if (!file_exists($localPubKeyFile)) {
449 449
             throw new RuntimeException(sprintf(
450 450
                 'The phar pubkey file does not exist: %s.', $localPubKeyFile
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
     {
469 469
         $phar = realpath($phar);
470 470
         if ($this->hasPubKey()) {
471
-            copy($this->getLocalPubKeyFile(), $phar.'.pubkey');
471
+            copy($this->getLocalPubKeyFile(), $phar . '.pubkey');
472 472
         }
473 473
         chmod($phar, fileperms($this->getLocalPharFile()));
474 474
         /* Switch invalid key errors to RuntimeExceptions */
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
         }
483 483
         restore_error_handler();
484 484
         if ($this->hasPubKey()) {
485
-            @unlink($phar.'.pubkey');
485
+            @unlink($phar . '.pubkey');
486 486
         }
487 487
         unset($phar);
488 488
     }
Please login to merge, or discard this patch.
src/Strategy/GithubStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         if (null === $package || json_last_error() !== JSON_ERROR_NONE) {
99 99
             throw new JsonParsingException(
100 100
                 'Error parsing JSON package data'
101
-                .(function_exists('json_last_error_msg') ? ': '.json_last_error_msg() : '')
101
+                .(function_exists('json_last_error_msg') ? ': ' . json_last_error_msg() : '')
102 102
             );
103 103
         }
104 104
 
Please login to merge, or discard this patch.