Completed
Pull Request — master (#43)
by Pádraic
02:03
created
src/VersionParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
         if ($this->development($version)) {
176 176
             return false;
177 177
         }
178
-        preg_match('{'.$this->modifier.'$}i', strtolower($version), $match);
178
+        preg_match('{' . $this->modifier . '$}i', strtolower($version), $match);
179 179
         if (!empty($match[3])) {
180 180
             return false;
181 181
         }
Please login to merge, or discard this patch.
src/Updater.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * Constructor
95 95
      *
96
-     * @param string $strategy
96
+     * @param StrategyInterface $strategy
97 97
      * @param bool $hasPubKey
98 98
      * @param string $localPharFile
99 99
      */
@@ -469,6 +469,9 @@  discard block
 block discarded – undo
469 469
             . sprintf('%s.phar.temp.pubkey', $this->getLocalPharFileBasename());
470 470
     }
471 471
 
472
+    /**
473
+     * @param string|null $localPharFile
474
+     */
472 475
     protected function setLocalPharFile($localPharFile)
473 476
     {
474 477
         if (!is_null($localPharFile)) {
@@ -513,6 +516,9 @@  discard block
 block discarded – undo
513 516
         $this->tempDirectory = $tempDirectory;
514 517
     }
515 518
 
519
+    /**
520
+     * @param string $phar
521
+     */
516 522
     protected function validatePhar($phar)
517 523
     {
518 524
         $phar = realpath($phar);
Please login to merge, or discard this patch.