Fixing some more PHPCS/PHPMD errors
This commit is contained in:
parent
77fae9a56d
commit
16003ff01b
9 changed files with 22 additions and 16 deletions
|
|
@ -25,14 +25,14 @@ class LocalBuild extends Build
|
|||
* Create a working copy by cloning, copying, or similar.
|
||||
*/
|
||||
public function createWorkingCopy(Builder $builder, $buildPath)
|
||||
{
|
||||
{
|
||||
$reference = $this->getProject()->getReference();
|
||||
$reference = substr($reference, -1) == '/' ? substr($reference, 0, -1) : $reference;
|
||||
$buildPath = substr($buildPath, 0, -1);
|
||||
|
||||
// If there's a /config file in the reference directory, it is probably a bare repository
|
||||
// which we'll extract into our build path directly.
|
||||
if(is_file($reference.'/config') && $this->handleBareRepository($builder, $reference, $buildPath) === true) {
|
||||
if (is_file($reference.'/config') && $this->handleBareRepository($builder, $reference, $buildPath) === true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ class LocalBuild extends Build
|
|||
$gitConfig = parse_ini_file($reference.'/config', true);
|
||||
|
||||
// If it is indeed a bare repository, then extract it into our build path:
|
||||
if($gitConfig['core']['bare']) {
|
||||
if ($gitConfig['core']['bare']) {
|
||||
$builder->executeCommand('git --git-dir="%s" archive master | tar -x -C "%s"', $reference, $buildPath);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue