1
0
Fork 0

simplified if statement

pull/1046/head
Zbigniew Czapran 2012-08-30 23:46:33 +01:00
parent 730f206cea
commit c0c23033d5
1 changed files with 2 additions and 2 deletions

View File

@ -78,9 +78,9 @@ class VersionParser
// if source reference is a sha1 hash -- truncate
if ($truncate && self::isHash($package->getSourceReference())) {
return $package->getPrettyVersion() . ' ' . substr($package->getSourceReference(), 0, 6);
} else {
return $package->getPrettyVersion() . ' ' . $package->getSourceReference();
}
return $package->getPrettyVersion() . ' ' . $package->getSourceReference();
}
/**