1
0
Fork 0

Apply suggestions from code review

Co-Authored-By: Andreas Möller <am@localheinz.com>
pull/8718/head
Jordi Boggiano 2020-03-29 16:59:07 +02:00 committed by GitHub
parent 6e88683e35
commit 22a52f5813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class VersionGuesser
public function guessVersion(array $packageConfig, $path) public function guessVersion(array $packageConfig, $path)
{ {
if (!function_exists('proc_open')) { if (!function_exists('proc_open')) {
return; return null;
} }
$versionData = $this->guessGitVersion($packageConfig, $path); $versionData = $this->guessGitVersion($packageConfig, $path);
@ -86,6 +86,8 @@ class VersionGuesser
if (null !== $versionData && null !== $versionData['version']) { if (null !== $versionData && null !== $versionData['version']) {
return $this->postprocess($versionData); return $this->postprocess($versionData);
} }
return null;
} }
private function postprocess(array $versionData) private function postprocess(array $versionData)