Skip to content

Commit 25706be

Browse files
committed
ISSUE-337: fix cache:clear
1 parent c0c48e0 commit 25706be

File tree

7 files changed

+19
-20
lines changed

7 files changed

+19
-20
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle",
111111
"Symfony\\Bundle\\MonologBundle\\MonologBundle",
112112
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle",
113-
"PhpList\\Core\\EmptyStartPageBundle\\PhpListEmptyStartPageBundle"
113+
"PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle"
114114
],
115115
"routes": {
116116
"homepage": {
117-
"resource": "@PhpListEmptyStartPageBundle/Controller/",
118-
"type": "attribute"
117+
"resource": "@EmptyStartPageBundle/Controller/",
118+
"type": "annotation"
119119
}
120120
}
121121
}

src/Composer/PackageRepository.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function removeDuplicates(array $packages): array
5858
/** @var bool[] $registeredPackages */
5959
$registeredPackages = [];
6060

61-
$result = array_filter(
61+
return array_filter(
6262
$packages,
6363
function (PackageInterface $package) use (&$registeredPackages) {
6464
$packageName = $package->getName();
@@ -70,8 +70,6 @@ function (PackageInterface $package) use (&$registeredPackages) {
7070
return true;
7171
}
7272
);
73-
74-
return $result;
7573
}
7674

7775
/**

src/EmptyStartPageBundle/PhpListEmptyStartPageBundle.php renamed to src/EmptyStartPageBundle/EmptyStartPageBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
*
1212
* @author Oliver Klee <[email protected]>
1313
*/
14-
class PhpListEmptyStartPageBundle extends Bundle
14+
class EmptyStartPageBundle extends Bundle
1515
{
1616
}

tests/Integration/Composer/ScriptsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function bundleClassNameDataProvider(): array
3737
return [
3838
'Symfony framework bundle' => ['Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle'],
3939
'Doctrine bundle' => ['Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle'],
40-
'empty start page bundle' => ['PhpList\\Core\\EmptyStartPageBundle\\PhpListEmptyStartPageBundle'],
40+
'empty start page bundle' => ['PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle'],
4141
];
4242
}
4343

tests/Unit/Composer/ModuleFinderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ public function modulesWithBundlesDataProvider(): array
197197
'phplist/core' => [
198198
'bundles' => [
199199
'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle',
200-
'PhpList\\Core\\EmptyStartPageBundle\\PhpListEmptyStartPageBundle',
200+
'PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle',
201201
],
202202
],
203203
],
204204
],
205205
[
206206
'phplist/foo' => [
207207
'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle',
208-
'PhpList\\Core\\EmptyStartPageBundle\\PhpListEmptyStartPageBundle',
208+
'PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle',
209209
],
210210
],
211211
],
@@ -218,13 +218,13 @@ public function modulesWithBundlesDataProvider(): array
218218
],
219219
'phplist/bar' => [
220220
'phplist/core' => [
221-
'bundles' => ['PhpList\\Core\\EmptyStartPageBundle\\PhpListEmptyStartPageBundle'],
221+
'bundles' => ['PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle'],
222222
],
223223
],
224224
],
225225
[
226226
'phplist/foo' => ['Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle'],
227-
'phplist/bar' => ['PhpList\\Core\\EmptyStartPageBundle\\PhpListEmptyStartPageBundle'],
227+
'phplist/bar' => ['PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle'],
228228
],
229229
],
230230
];

tests/Unit/Core/ApplicationKernelTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use PhpList\Core\Core\ApplicationKernel;
77
use PhpList\Core\Core\Bootstrap;
88
use PhpList\Core\Core\Environment;
9-
use PhpList\Core\EmptyStartPageBundle\PhpListEmptyStartPageBundle;
9+
use PhpList\Core\EmptyStartPageBundle\EmptyStartPageBundle;
1010
use PhpList\Core\Tests\TestingSupport\Traits\ContainsInstanceAssertionTrait;
1111
use PHPUnit\Framework\TestCase;
1212
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
@@ -28,12 +28,12 @@ class ApplicationKernelTest extends TestCase
2828
*/
2929
private $subject = null;
3030

31-
protected function setUp()
31+
protected function setUp(): void
3232
{
3333
$this->subject = new ApplicationKernel(Environment::TESTING, true);
3434
}
3535

36-
protected function tearDown()
36+
protected function tearDown(): void
3737
{
3838
Bootstrap::purgeInstance();
3939
}
@@ -63,7 +63,7 @@ public function requiredBundlesDataProvider(): array
6363
{
6464
return [
6565
'framework' => [FrameworkBundle::class],
66-
'phpList default bundle' => [PhpListEmptyStartPageBundle::class],
66+
'phpList default bundle' => [EmptyStartPageBundle::class],
6767
'web server' => [WebServerBundle::class],
6868
];
6969
}

tests/Unit/EmptyStartPageBundle/PhpListEmptyStartPageBundleTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace PhpList\Core\Tests\Unit\EmptyStartPageBundle;
56

6-
use PhpList\Core\EmptyStartPageBundle\PhpListEmptyStartPageBundle;
7+
use PhpList\Core\EmptyStartPageBundle\EmptyStartPageBundle;
78
use PHPUnit\Framework\TestCase;
89
use Symfony\Component\HttpKernel\Bundle\Bundle;
910

@@ -15,13 +16,13 @@
1516
class PhpListEmptyStartPageBundleTest extends TestCase
1617
{
1718
/**
18-
* @var PhpListEmptyStartPageBundle
19+
* @var EmptyStartPageBundle
1920
*/
2021
private $subject = null;
2122

22-
protected function setUp()
23+
protected function setUp(): void
2324
{
24-
$this->subject = new PhpListEmptyStartPageBundle();
25+
$this->subject = new EmptyStartPageBundle();
2526
}
2627

2728
/**

0 commit comments

Comments
 (0)