| @@ -175,7 +175,7 @@ | ||
| 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 | } | 
| @@ -346,12 +346,12 @@ | ||
| 346 | 346 | } | 
| 347 | 347 | |
| 348 | 348 | /** | 
| 349 | - * Filter a list of versions to those that allow the current PHP version. | |
| 350 | - * | |
| 351 | - * @param string[] $versions | |
| 352 | - * | |
| 353 | - * @return string[] | |
| 354 | - */ | |
| 349 | + * Filter a list of versions to those that allow the current PHP version. | |
| 350 | + * | |
| 351 | + * @param string[] $versions | |
| 352 | + * | |
| 353 | + * @return string[] | |
| 354 | + */ | |
| 355 | 355 | private function filterByPhpVersion(array $versions) | 
| 356 | 356 |      { | 
| 357 | 357 | $versionInfo = $this->getAvailableVersions(); | 
| @@ -337,10 +337,10 @@ discard block | ||
| 337 | 337 | */ | 
| 338 | 338 | private function filterByLocalMajorVersion(array $versions) | 
| 339 | 339 |      { | 
| 340 | -        list($localMajorVersion, ) = explode('.', $this->localVersion, 2); | |
| 340 | +        list($localMajorVersion,) = explode('.', $this->localVersion, 2); | |
| 341 | 341 | |
| 342 | -        return array_filter($versions, function ($version) use ($localMajorVersion) { | |
| 343 | -            list($majorVersion, ) = explode('.', $version, 2); | |
| 342 | +        return array_filter($versions, function($version) use ($localMajorVersion) { | |
| 343 | +            list($majorVersion,) = explode('.', $version, 2); | |
| 344 | 344 | return $majorVersion === $localMajorVersion; | 
| 345 | 345 | }); | 
| 346 | 346 | } | 
| @@ -355,7 +355,7 @@ discard block | ||
| 355 | 355 | private function filterByPhpVersion(array $versions) | 
| 356 | 356 |      { | 
| 357 | 357 | $versionInfo = $this->getAvailableVersions(); | 
| 358 | -        return array_filter($versions, function ($version) use ($versionInfo) { | |
| 358 | +        return array_filter($versions, function($version) use ($versionInfo) { | |
| 359 | 359 | if (isset($versionInfo[$version]['php']['min']) | 
| 360 | 360 |                  && version_compare(PHP_VERSION, $versionInfo[$version]['php']['min'], '<')) { | 
| 361 | 361 | return false; |