Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 239880c

Browse files
committed
Use psr-12 for strict_types
1 parent c1804b2 commit 239880c

217 files changed

Lines changed: 317 additions & 316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/mooc/backend/src/Command/DomainEvents/MySql/ConsumeMySqlDomainEventsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Command\DomainEvents\MySql;
66

apps/mooc/backend/src/Command/DomainEvents/RabbitMq/ConfigureRabbitMqCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Command\DomainEvents\RabbitMq;
66

apps/mooc/backend/src/Command/DomainEvents/RabbitMq/ConsumeRabbitMqDomainEventsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Command\DomainEvents\RabbitMq;
66

apps/mooc/backend/src/Command/DomainEvents/RabbitMq/GenerateSupervisorRabbitMqConsumerFilesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Command\DomainEvents\RabbitMq;
66

apps/mooc/backend/src/Controller/Courses/CoursesPutController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Controller\Courses;
66

@@ -11,11 +11,6 @@
1111

1212
final class CoursesPutController extends ApiController
1313
{
14-
protected function exceptions(): array
15-
{
16-
return [];
17-
}
18-
1914
public function __invoke(string $id, Request $request): Response
2015
{
2116
$this->dispatch(
@@ -28,4 +23,9 @@ public function __invoke(string $id, Request $request): Response
2823

2924
return new Response('', Response::HTTP_CREATED);
3025
}
26+
27+
protected function exceptions(): array
28+
{
29+
return [];
30+
}
3131
}

apps/mooc/backend/src/Controller/CoursesCounter/CoursesCounterGetController.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Controller\CoursesCounter;
66

@@ -13,13 +13,6 @@
1313

1414
final class CoursesCounterGetController extends ApiController
1515
{
16-
protected function exceptions(): array
17-
{
18-
return [
19-
CoursesCounterNotExist::class => Response::HTTP_NOT_FOUND,
20-
];
21-
}
22-
2316
public function __invoke()
2417
{
2518
/** @var CoursesCounterResponse $response */
@@ -31,4 +24,11 @@ public function __invoke()
3124
]
3225
);
3326
}
27+
28+
protected function exceptions(): array
29+
{
30+
return [
31+
CoursesCounterNotExist::class => Response::HTTP_NOT_FOUND,
32+
];
33+
}
3434
}

apps/mooc/backend/src/Controller/HealthCheck/HealthCheckGetController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend\Controller\HealthCheck;
66

apps/mooc/backend/src/MoocBackendKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Apps\Mooc\Backend;
66

src/Analytics/DomainEvents/Application/Store/DomainEventStorer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Analytics\DomainEvents\Application\Store;
66

src/Analytics/DomainEvents/Application/Store/StoreDomainEventOnOccurred.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace CodelyTv\Analytics\DomainEvents\Application\Store;
66

0 commit comments

Comments
 (0)