File tree Expand file tree Collapse file tree 7 files changed +19
-20
lines changed
Expand file tree Collapse file tree 7 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change 1111 *
1212 * @author Oliver Klee <[email protected] > 1313 */
14- class PhpListEmptyStartPageBundle extends Bundle
14+ class EmptyStartPageBundle extends Bundle
1515{
1616}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ];
Original file line number Diff line number Diff line change 66use PhpList \Core \Core \ApplicationKernel ;
77use PhpList \Core \Core \Bootstrap ;
88use PhpList \Core \Core \Environment ;
9- use PhpList \Core \EmptyStartPageBundle \PhpListEmptyStartPageBundle ;
9+ use PhpList \Core \EmptyStartPageBundle \EmptyStartPageBundle ;
1010use PhpList \Core \Tests \TestingSupport \Traits \ContainsInstanceAssertionTrait ;
1111use PHPUnit \Framework \TestCase ;
1212use 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 }
Original file line number Diff line number Diff line change 11<?php
2+
23declare (strict_types=1 );
34
45namespace PhpList \Core \Tests \Unit \EmptyStartPageBundle ;
56
6- use PhpList \Core \EmptyStartPageBundle \PhpListEmptyStartPageBundle ;
7+ use PhpList \Core \EmptyStartPageBundle \EmptyStartPageBundle ;
78use PHPUnit \Framework \TestCase ;
89use Symfony \Component \HttpKernel \Bundle \Bundle ;
910
1516class 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 /**
You can’t perform that action at this time.
0 commit comments