mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fixed PSR rules
This commit is contained in:
parent
330f56c0ec
commit
f4e9dd4fb8
22 changed files with 23 additions and 28 deletions
|
@ -21,6 +21,7 @@ class FileDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$io = $io ?: $this->getMock('Composer\IO\IOInterface');
|
||||
$rfs = $rfs ?: $this->getMockBuilder('Composer\Util\RemoteFilesystem')->disableOriginalConstructor()->getMock();
|
||||
|
||||
return new FileDownloader($io, $rfs);
|
||||
}
|
||||
|
||||
|
@ -96,6 +97,7 @@ class FileDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
if (is_file($path.'/script.js')) {
|
||||
unlink($path.'/script.js');
|
||||
}
|
||||
|
||||
return $messages;
|
||||
}))
|
||||
;
|
||||
|
@ -108,7 +110,7 @@ class FileDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
if (is_dir($path)) {
|
||||
$fs = new Filesystem();
|
||||
$fs->removeDirectory($path);
|
||||
} else if (is_file($path)) {
|
||||
} elseif (is_file($path)) {
|
||||
unset($path);
|
||||
}
|
||||
|
||||
|
@ -146,7 +148,7 @@ class FileDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
if (is_dir($path)) {
|
||||
$fs = new Filesystem();
|
||||
$fs->removeDirectory($path);
|
||||
} else if (is_file($path)) {
|
||||
} elseif (is_file($path)) {
|
||||
unset($path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue