Skip to content

Commit

Permalink
Modernize code base
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Oct 2, 2023
1 parent 277d9dc commit 1ac19e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/Controller/TeamCalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
final class TeamCalendarController
{
public function __construct(
private CompetitionLoaderInterface $competitionLoader,
private TeamLoaderInterface $teamLoader,
private GameLoaderInterface $gameLoader,
private CalendarFactory $calendarFactory,
private IcalWriter $calendarWriter
private readonly CompetitionLoaderInterface $competitionLoader,
private readonly TeamLoaderInterface $teamLoader,
private readonly GameLoaderInterface $gameLoader,
private readonly CalendarFactory $calendarFactory,
private readonly IcalWriter $calendarWriter
) {
}

Expand Down
8 changes: 4 additions & 4 deletions src/Controller/TeamListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ final class TeamListController
{
public function __construct(
/** @var array<string> */
private array $competitionNames,
private Environment $templating,
private CompetitionLoaderInterface $competitionLoader,
private TeamLoaderInterface $teamLoader
private readonly array $competitionNames,
private readonly Environment $templating,
private readonly CompetitionLoaderInterface $competitionLoader,
private readonly TeamLoaderInterface $teamLoader
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/EndroidSoccerCalendarBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

class EndroidSoccerCalendarBundle extends Bundle
final class EndroidSoccerCalendarBundle extends Bundle
{
}
4 changes: 2 additions & 2 deletions tests/EndroidSoccerCalendarBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use PHPUnit\Framework\TestCase;

class EndroidSoccerCalendarBundleTest extends TestCase
final class EndroidSoccerCalendarBundleTest extends TestCase
{
public function testNoTestsYet()
public function testNoTestsYet(): void
{
$this->assertTrue(true);
}
Expand Down

0 comments on commit 1ac19e1

Please sign in to comment.