mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
CS fixes
This commit is contained in:
parent
4d36622ada
commit
6a64041055
18 changed files with 14 additions and 20 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue