Skip to content

Commit 9ecb49a

Browse files
committed
Added #[Override] attribute
1 parent 29e31e2 commit 9ecb49a

Some content is hidden

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

48 files changed

+121
-1
lines changed

migrations/Version20211118171749.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
99
use Doctrine\DBAL\Schema\Schema;
1010
use Doctrine\Migrations\AbstractMigration;
11+
use Override;
1112

1213
/**
1314
* Auto-generated Migration: Please modify to your needs!
@@ -17,6 +18,7 @@ final class Version20211118171749 extends AbstractMigration
1718
/**
1819
* @noinspection PhpMissingParentCallCommonInspection
1920
*/
21+
#[Override]
2022
public function getDescription(): string
2123
{
2224
return 'Initial database structure';
@@ -25,6 +27,7 @@ public function getDescription(): string
2527
/**
2628
* @throws Exception
2729
*/
30+
#[Override]
2831
public function up(Schema $schema): void
2932
{
3033
// this up() migration is auto-generated, please modify it to your needs
@@ -68,6 +71,7 @@ public function up(Schema $schema): void
6871
*
6972
* @throws Exception
7073
*/
74+
#[Override]
7175
public function down(Schema $schema): void
7276
{
7377
// this down() migration is auto-generated, please modify it to your needs

migrations/Version20220312135411.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
88
use Doctrine\DBAL\Schema\Schema;
99
use Doctrine\Migrations\AbstractMigration;
10+
use Override;
1011

1112
/**
1213
* Auto-generated Migration: Please modify to your needs!
@@ -16,11 +17,13 @@ final class Version20220312135411 extends AbstractMigration
1617
/**
1718
* @noinspection PhpMissingParentCallCommonInspection
1819
*/
20+
#[Override]
1921
public function getDescription(): string
2022
{
2123
return 'Added missing cascade on delete for the `log_login_failure` table';
2224
}
2325

26+
#[Override]
2427
public function up(Schema $schema): void
2528
{
2629
// this up() migration is auto-generated, please modify it to your needs
@@ -36,6 +39,7 @@ public function up(Schema $schema): void
3639
/**
3740
* @noinspection PhpMissingParentCallCommonInspection
3841
*/
42+
#[Override]
3943
public function down(Schema $schema): void
4044
{
4145
// this down() migration is auto-generated, please modify it to your needs

migrations/Version20220324162224.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use Doctrine\DBAL\Schema\Schema;
77
use Doctrine\Migrations\AbstractMigration;
8+
use Override;
89

910
/**
1011
* Auto-generated Migration: Please modify to your needs!
@@ -14,11 +15,13 @@ final class Version20220324162224 extends AbstractMigration
1415
/**
1516
* @noinspection PhpMissingParentCallCommonInspection
1617
*/
18+
#[Override]
1719
public function getDescription(): string
1820
{
1921
return 'Added username column to log_login table, so that after user deletion there is reference to the user.';
2022
}
2123

24+
#[Override]
2225
public function up(Schema $schema): void
2326
{
2427
$this->addSql('ALTER TABLE log_login ADD username VARCHAR(255) NOT NULL AFTER type');
@@ -27,6 +30,7 @@ public function up(Schema $schema): void
2730
/**
2831
* @noinspection PhpMissingParentCallCommonInspection
2932
*/
33+
#[Override]
3034
public function down(Schema $schema): void
3135
{
3236
$this->addSql('ALTER TABLE log_login DROP username');

migrations/Version20220812161020.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
88
use Doctrine\DBAL\Schema\Schema;
99
use Doctrine\Migrations\AbstractMigration;
10+
use Override;
1011

1112
/**
1213
* Auto-generated Migration: Please modify to your needs!
@@ -16,11 +17,13 @@ final class Version20220812161020 extends AbstractMigration
1617
/**
1718
* @noinspection PhpMissingParentCallCommonInspection
1819
*/
20+
#[Override]
1921
public function getDescription(): string
2022
{
2123
return 'TODO: Describe reason for this migration';
2224
}
2325

26+
#[Override]
2427
public function up(Schema $schema): void
2528
{
2629
// this up() migration is auto-generated, please modify it to your needs
@@ -41,6 +44,7 @@ public function up(Schema $schema): void
4144
/**
4245
* @noinspection PhpMissingParentCallCommonInspection
4346
*/
47+
#[Override]
4448
public function down(Schema $schema): void
4549
{
4650
// this down() migration is auto-generated, please modify it to your needs

migrations/Version20230930102814.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
88
use Doctrine\DBAL\Schema\Schema;
99
use Doctrine\Migrations\AbstractMigration;
10+
use Override;
1011

1112
/**
1213
* Auto-generated Migration: Please modify to your needs!
@@ -16,11 +17,13 @@ final class Version20230930102814 extends AbstractMigration
1617
/**
1718
* @noinspection PhpMissingParentCallCommonInspection
1819
*/
20+
#[Override]
1921
public function getDescription(): string
2022
{
2123
return 'TODO: Describe reason for this migration';
2224
}
2325

26+
#[Override]
2427
public function up(Schema $schema): void
2528
{
2629
// this up() migration is auto-generated, please modify it to your needs
@@ -41,6 +44,7 @@ public function up(Schema $schema): void
4144
/**
4245
* @noinspection PhpMissingParentCallCommonInspection
4346
*/
47+
#[Override]
4448
public function down(Schema $schema): void
4549
{
4650
// this down() migration is auto-generated, please modify it to your needs

src/Command/ApiKey/ChangeTokenCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use App\Command\Traits\SymfonyStyleTrait;
1212
use App\Entity\ApiKey;
1313
use App\Resource\ApiKeyResource;
14+
use Override;
1415
use Symfony\Component\Console\Attribute\AsCommand;
1516
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\Console\Input\InputInterface;
@@ -45,6 +46,7 @@ public function __construct(
4546
*
4647
* @throws Throwable
4748
*/
49+
#[Override]
4850
protected function execute(InputInterface $input, OutputInterface $output): int
4951
{
5052
$io = $this->getSymfonyStyle($input, $output);

src/Command/ApiKey/CreateApiKeyCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use App\Resource\UserGroupResource;
1919
use App\Security\RolesService;
2020
use Matthias\SymfonyConsoleForm\Console\Helper\FormHelper;
21+
use Override;
2122
use Symfony\Component\Console\Attribute\AsCommand;
2223
use Symfony\Component\Console\Command\Command;
2324
use Symfony\Component\Console\Input\InputInterface;
@@ -67,6 +68,7 @@ public function getRolesService(): RolesService
6768
return $this->rolesService;
6869
}
6970

71+
#[Override]
7072
protected function configure(): void
7173
{
7274
parent::configure();
@@ -79,6 +81,7 @@ protected function configure(): void
7981
*
8082
* @throws Throwable
8183
*/
84+
#[Override]
8285
protected function execute(InputInterface $input, OutputInterface $output): int
8386
{
8487
$io = $this->getSymfonyStyle($input, $output);

src/Command/ApiKey/EditApiKeyCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use App\Form\Type\Console\ApiKeyType;
1515
use App\Resource\ApiKeyResource;
1616
use Matthias\SymfonyConsoleForm\Console\Helper\FormHelper;
17+
use Override;
1718
use Symfony\Component\Console\Attribute\AsCommand;
1819
use Symfony\Component\Console\Command\Command;
1920
use Symfony\Component\Console\Input\InputInterface;
@@ -48,6 +49,7 @@ public function __construct(
4849
*
4950
* @throws Throwable
5051
*/
52+
#[Override]
5153
protected function execute(InputInterface $input, OutputInterface $output): int
5254
{
5355
$io = $this->getSymfonyStyle($input, $output);

src/Command/ApiKey/ListApiKeysCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use App\Resource\ApiKeyResource;
1414
use App\Security\RolesService;
1515
use Closure;
16+
use Override;
1617
use Symfony\Component\Console\Attribute\AsCommand;
1718
use Symfony\Component\Console\Command\Command;
1819
use Symfony\Component\Console\Input\InputInterface;
@@ -49,6 +50,7 @@ public function __construct(
4950
*
5051
* @throws Throwable
5152
*/
53+
#[Override]
5254
protected function execute(InputInterface $input, OutputInterface $output): int
5355
{
5456
$io = new SymfonyStyle($input, $output);

src/Command/ApiKey/RemoveApiKeyCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use App\Command\Traits\SymfonyStyleTrait;
1212
use App\Entity\ApiKey;
1313
use App\Resource\ApiKeyResource;
14+
use Override;
1415
use Symfony\Component\Console\Attribute\AsCommand;
1516
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\Console\Input\InputInterface;
@@ -45,6 +46,7 @@ public function __construct(
4546
*
4647
* @throws Throwable
4748
*/
49+
#[Override]
4850
protected function execute(InputInterface $input, OutputInterface $output): int
4951
{
5052
$io = $this->getSymfonyStyle($input, $output);

0 commit comments

Comments
 (0)