CS fixes
parent
3cff4a3bb9
commit
0b4a9235f4
|
@ -383,7 +383,7 @@ EOF;
|
|||
}
|
||||
|
||||
if (!$filesCode) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return <<<EOF
|
||||
|
|
|
@ -33,7 +33,6 @@ use Composer\Json\JsonFile;
|
|||
use Composer\Package\AliasPackage;
|
||||
use Composer\Package\CompletePackage;
|
||||
use Composer\Package\Link;
|
||||
use Composer\Package\LinkConstraint\EmptyConstraint;
|
||||
use Composer\Package\LinkConstraint\VersionConstraint;
|
||||
use Composer\Package\Locker;
|
||||
use Composer\Package\PackageInterface;
|
||||
|
@ -1179,7 +1178,6 @@ class Installer
|
|||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* set whether to run autoloader or not
|
||||
*
|
||||
|
@ -1193,7 +1191,6 @@ class Installer
|
|||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* set whether to run scripts or not
|
||||
*
|
||||
|
|
|
@ -106,6 +106,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
$ret = $ret();
|
||||
}
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}));
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ class ConsoleIOTest extends TestCase
|
|||
$this->callback(function ($messages) {
|
||||
$result = preg_match("[(.*)/(.*) First line]", $messages[0]) > 0;
|
||||
$result &= preg_match("[(.*)/(.*) Second line]", $messages[1]) > 0;
|
||||
|
||||
return $result;
|
||||
}),
|
||||
$this->equalTo(false)
|
||||
|
|
|
@ -330,8 +330,7 @@ class InstallerTest extends TestCase
|
|||
);
|
||||
|
||||
$section = null;
|
||||
foreach ($tokens as $i => $token)
|
||||
{
|
||||
foreach ($tokens as $i => $token) {
|
||||
if (null === $section && empty($token)) {
|
||||
continue; // skip leading blank
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ namespace Composer\Test\Mock;
|
|||
use Composer\Composer;
|
||||
use Composer\Config;
|
||||
use Composer\Factory;
|
||||
use Composer\Repository;
|
||||
use Composer\Repository\RepositoryManager;
|
||||
use Composer\Repository\WritableRepositoryInterface;
|
||||
use Composer\Installer;
|
||||
|
|
|
@ -172,6 +172,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
$processExecutor = new ProcessExecutorMock(function ($command, &$output = null, $cwd = null) use ($self) {
|
||||
if (0 === strpos($command, 'git rev-list')) {
|
||||
$output = "";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -210,6 +211,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
$processExecutor = new ProcessExecutorMock(function ($command, &$output = null, $cwd = null) use ($self) {
|
||||
if (0 === strpos($command, 'git rev-list')) {
|
||||
$output = "";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -166,6 +166,7 @@ class GitHubTest extends \PHPUnit_Framework_TestCase
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue