1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00
This commit is contained in:
Jordi Boggiano 2015-06-30 15:38:32 +01:00
parent 4d36622ada
commit 6a64041055
18 changed files with 14 additions and 20 deletions

View file

@ -290,8 +290,8 @@ EOT
// handler Ctrl+C for unix-like systems
if (function_exists('pcntl_signal')) {
declare(ticks = 100);
pcntl_signal(SIGINT, function() use ($directory) {
declare (ticks = 100);
pcntl_signal(SIGINT, function () use ($directory) {
$fs = new Filesystem();
$fs->removeDirectory($directory);
exit(130);

View file

@ -295,7 +295,7 @@ EOT
private function checkDiskSpace($config)
{
$minSpaceFree = 1024*1024;
$minSpaceFree = 1024 * 1024;
if ((($df = @disk_free_space($dir = $config->get('home'))) !== false && $df < $minSpaceFree)
|| (($df = @disk_free_space($dir = $config->get('vendor-dir'))) !== false && $df < $minSpaceFree)
) {