mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix CS (#11003)
This commit is contained in:
parent
6e205a0c84
commit
131da999ac
357 changed files with 5943 additions and 9174 deletions
|
@ -30,7 +30,7 @@ class RepositoryFactoryTest extends TestCase
|
|||
$ref->setAccessible(true);
|
||||
$repositoryClasses = $ref->getValue($manager);
|
||||
|
||||
$this->assertEquals(array(
|
||||
$this->assertEquals([
|
||||
'composer',
|
||||
'vcs',
|
||||
'package',
|
||||
|
@ -46,7 +46,7 @@ class RepositoryFactoryTest extends TestCase
|
|||
'hg',
|
||||
'artifact',
|
||||
'path',
|
||||
), array_keys($repositoryClasses));
|
||||
], array_keys($repositoryClasses));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,13 +65,13 @@ class RepositoryFactoryTest extends TestCase
|
|||
|
||||
public function generateRepositoryNameProvider(): array
|
||||
{
|
||||
return array(
|
||||
array(0, array(), array(), '0'),
|
||||
array(0, array(), array(array()), '02'),
|
||||
array(0, array('url' => 'https://example.org'), array(), 'example.org'),
|
||||
array(0, array('url' => 'https://example.org'), array('example.org' => array()), 'example.org2'),
|
||||
array('example.org', array('url' => 'https://example.org/repository'), array(), 'example.org'),
|
||||
array('example.org', array('url' => 'https://example.org/repository'), array('example.org' => array()), 'example.org2'),
|
||||
);
|
||||
return [
|
||||
[0, [], [], '0'],
|
||||
[0, [], [[]], '02'],
|
||||
[0, ['url' => 'https://example.org'], [], 'example.org'],
|
||||
[0, ['url' => 'https://example.org'], ['example.org' => []], 'example.org2'],
|
||||
['example.org', ['url' => 'https://example.org/repository'], [], 'example.org'],
|
||||
['example.org', ['url' => 'https://example.org/repository'], ['example.org' => []], 'example.org2'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue