Skip to content

Commit 1dbb0ad

Browse files
committed
psalm + phpcs + phpunit
1 parent 06f089b commit 1dbb0ad

15 files changed

+37
-88
lines changed

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
],
2222
"require": {
2323
"php": "^8.0",
24-
"laravel-doctrine/orm": "^1.6",
25-
"doctrine/coding-standard": "^9.0"
24+
"laravel-doctrine/orm": "^1.6"
2625
},
2726
"require-dev": {
2827
"phpunit/phpunit": "^9.5",
29-
"orchestra/testbench": "^6.23"
28+
"doctrine/coding-standard": "^9.0",
29+
"orchestra/testbench": "^6.23",
30+
"vimeo/psalm": "^4.15"
3031
},
3132
"extra": {
3233
"laravel": {

config/orm/ApiSkeletons.Laravel.Doctrine.ApiKey.AccessEvent.dcm.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

config/orm/ApiSkeletons.Laravel.Doctrine.ApiKey.AdminEvent.dcm.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

config/orm/ApiSkeletons.Laravel.Doctrine.ApiKey.ApiKey.dcm.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

config/orm/ApiSkeletons.Laravel.Doctrine.ApiKey.Scope.dcm.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/Console/Command/ActivateApiKey.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010

1111
use function implode;
1212

13+
// phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
1314
final class ActivateApiKey extends Command
1415
{
1516
private ApiKeyService $apiKeyService;
1617

1718
/**
1819
* The name and signature of the console command.
1920
*/
20-
protected string $signature = 'apikey:activate {name}';
21+
protected $signature = 'apikey:activate {name}';
2122

2223
/**
2324
* The console command description.
2425
*/
25-
protected string $description = 'Activate an ApiKey';
26+
protected $description = 'Activate an ApiKey';
2627

2728
/**
2829
* Create a new command instance.

src/Console/Command/AddScope.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@
1212

1313
use function implode;
1414

15+
// phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
1516
final class AddScope extends Command
1617
{
1718
private ApiKeyService $apiKeyService;
1819

1920
/**
2021
* The name and signature of the console command.
2122
*/
22-
protected string $signature = 'apikey:scope:add {apiKeyName} {scopeName}';
23+
protected $signature = 'apikey:scope:add {apiKeyName} {scopeName}';
2324

2425
/**
2526
* The console command description.
2627
*/
27-
protected string $description = 'Add a Scope to an ApiKey';
28+
protected $description = 'Add a Scope to an ApiKey';
2829

2930
/**
3031
* Create a new command instance.

src/Console/Command/DeactivateApiKey.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010

1111
use function implode;
1212

13+
// phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
1314
final class DeactivateApiKey extends Command
1415
{
1516
private ApiKeyService $apiKeyService;
1617

1718
/**
1819
* The name and signature of the console command.
1920
*/
20-
protected string $signature = 'apikey:deactivate {name}';
21+
protected $signature = 'apikey:deactivate {name}';
2122

2223
/**
2324
* The console command description.
2425
*/
25-
protected string $description = 'Deactivate an ApiKey';
26+
protected $description = 'Deactivate an ApiKey';
2627

2728
/**
2829
* Create a new command instance.

src/Console/Command/DeleteScope.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@
99
use ApiSkeletons\Laravel\Doctrine\ApiKey\Service\ApiKeyService;
1010
use Illuminate\Console\Command;
1111

12+
// phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
1213
final class DeleteScope extends Command
1314
{
1415
private ApiKeyService $apiKeyService;
1516

1617
/**
1718
* The name and signature of the console command.
1819
*/
19-
protected string $signature = 'apikey:scope:delete {name}';
20+
protected $signature = 'apikey:scope:delete {name}';
2021

2122
/**
2223
* The console command description.
2324
*/
24-
protected string $description = 'Delete an ApiKey Scope (Delete a scope, not a relationship)';
25+
protected $description = 'Delete an ApiKey Scope (Delete a scope, not a relationship)';
2526

2627
/**
2728
* Create a new command instance.

src/Console/Command/GenerateApiKey.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@
1212

1313
use function implode;
1414

15+
// phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
1516
final class GenerateApiKey extends Command
1617
{
1718
private ApiKeyService $apiKeyService;
1819

1920
/**
2021
* The name and signature of the console command.
2122
*/
22-
protected string $signature = 'apikey:generate {name}';
23+
protected $signature = 'apikey:generate {name}';
2324

2425
/**
2526
* The console command description.
2627
*/
27-
protected string $description = 'Create a new ApiKey';
28+
protected $description = 'Create a new ApiKey';
2829

2930
/**
3031
* Create a new command instance.

0 commit comments

Comments
 (0)