Completed
Pull Request — master (#38)
by Pádraic
01:59
created
src/Updater.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -414,6 +414,9 @@  discard block
 block discarded – undo
414 414
             . sprintf('%s.phar.temp.pubkey', $this->getLocalPharFileBasename());
415 415
     }
416 416
 
417
+    /**
418
+     * @param string|null $localPharFile
419
+     */
417 420
     protected function setLocalPharFile($localPharFile)
418 421
     {
419 422
         if (!is_null($localPharFile)) {
@@ -458,6 +461,9 @@  discard block
 block discarded – undo
458 461
         $this->tempDirectory = $tempDirectory;
459 462
     }
460 463
 
464
+    /**
465
+     * @param string $phar
466
+     */
461 467
     protected function validatePhar($phar)
462 468
     {
463 469
         $phar = realpath($phar);
Please login to merge, or discard this patch.
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/Strategy/GithubStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,10 +203,10 @@
 block discarded – undo
203 203
      */
204 204
     private function filterByLocalMajorVersion(array $versions)
205 205
     {
206
-        list($localMajorVersion, ) = explode('.', $this->localVersion, 2);
206
+        list($localMajorVersion,) = explode('.', $this->localVersion, 2);
207 207
 
208
-        return array_filter($versions, function ($version) use ($localMajorVersion) {
209
-            list($majorVersion, ) = explode('.', $version, 2);
208
+        return array_filter($versions, function($version) use ($localMajorVersion) {
209
+            list($majorVersion,) = explode('.', $version, 2);
210 210
             return $majorVersion === $localMajorVersion;
211 211
         });
212 212
     }
Please login to merge, or discard this patch.