Skip to content

Commit edd98ca

Browse files
committed
Apply rector fix.
1 parent 7330aa7 commit edd98ca

49 files changed

Lines changed: 76 additions & 3 deletions

Some content is hidden

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
"analyse": [
102102
"@stan"
103103
],
104-
"cs-check": "phpcs -p --standard=phpcs.xml src/ tests/",
105-
"cs-fix": "phpcbf --standard=phpcs.xml src/ tests/",
104+
"cs-check": "vendor/bin/phpcs -p --standard=phpcs.xml src/ tests/",
105+
"cs-fix": "vendor/bin/phpcbf --standard=phpcs.xml src/ tests/",
106106
"fix-eol": "powershell -NoProfile -ExecutionPolicy Bypass -File tools/fix-lineendings.ps1",
107107
"test": "phpunit --stderr",
108108
"rector-check": "vendor/bin/rector process --dry-run",

src/ApiPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class ApiPlugin extends BasePlugin
2929
/**
3030
* @inheritDoc
3131
*/
32+
#[\Override]
3233
public function routes(\Cake\Routing\RouteBuilder $routes): void
3334
{
3435
$middlewares = Configure::read('Api.Middleware', []);
@@ -90,6 +91,7 @@ public function services(ContainerInterface $container): void
9091
* @param \Cake\Console\CommandCollection $commands The command collection to update
9192
* @return \Cake\Console\CommandCollection
9293
*/
94+
#[\Override]
9395
public function console(CommandCollection $commands): CommandCollection
9496
{
9597
return $commands->add('service routes', ServiceRoutesCommand::class);

src/Command/ServiceRoutesCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ServiceRoutesCommand extends Command
2727
/**
2828
* @inheritDoc
2929
*/
30+
#[\Override]
3031
public static function defaultName(): string
3132
{
3233
return 'service routes';
@@ -38,6 +39,7 @@ public static function defaultName(): string
3839
* @param \Cake\Console\ConsoleOptionParser $parser The option parser to update
3940
* @return \Cake\Console\ConsoleOptionParser
4041
*/
42+
#[\Override]
4143
protected function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionParser
4244
{
4345
$parser = parent::buildOptionParser($parser);

src/Model/Table/AuthStoreTable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function initialize(array $config): void
5050
* @param \Cake\Validation\Validator $validator Validator instance.
5151
* @return \Cake\Validation\Validator
5252
*/
53+
#[\Override]
5354
public function validationDefault(Validator $validator): Validator
5455
{
5556
$validator
@@ -64,6 +65,7 @@ public function validationDefault(Validator $validator): Validator
6465
*
6566
* @return \Cake\Database\Schema\TableSchemaInterface
6667
*/
68+
#[\Override]
6769
public function getSchema(): TableSchemaInterface
6870
{
6971
$schema = parent::getSchema();

src/Model/Table/JwtRefreshTokensTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function initialize(array $config): void
5353
* @param \Cake\Validation\Validator $validator Validator instance.
5454
* @return \Cake\Validation\Validator
5555
*/
56+
#[\Override]
5657
public function validationDefault(Validator $validator): Validator
5758
{
5859
$validator

src/Rbac/CachedApiRbac.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function buildPermissionsMap(): array
8989
* @param \Psr\Http\Message\ServerRequestInterface $request request
9090
* @return bool true if there is a match in permissions
9191
*/
92+
#[\Override]
9293
public function checkPermissions(array|\ArrayAccess $user, ServerRequestInterface $request): bool
9394
{
9495
$roleField = $this->getConfig('role_field');

src/Service/Action/Auth/JwtLoginAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class JwtLoginAction extends Action
3131
* @param bool $socialLogin is social login
3232
* @return array
3333
*/
34+
#[\Override]
3435
protected function afterIdentifyUser(?array $user, bool $socialLogin = false): array
3536
{
3637
$user = parent::afterIdentifyUser($user, $socialLogin);

src/Service/Action/Auth/JwtRefreshAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class JwtRefreshAction extends Action
4343
* @param array $config Configuration options passed to the constructor
4444
* @return void
4545
*/
46+
#[\Override]
4647
public function initialize(array $config): void
4748
{
4849
parent::initialize($config);
@@ -53,6 +54,7 @@ public function initialize(array $config): void
5354
*
5455
* @return bool
5556
*/
57+
#[\Override]
5658
public function validates(): bool
5759
{
5860
$authHeader = $this->getService()->getRequest()->getHeader('Authorization');

src/Service/Action/Auth/JwtSocialLoginAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class JwtSocialLoginAction extends Action
3030
* @return false|array
3131
* @throws \Exception
3232
*/
33+
#[\Override]
3334
public function execute(): false|array
3435
{
3536
$user = parent::execute();

src/Service/Action/Auth/LoginAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class LoginAction extends Action
4343
* @param array $config Configuration options passed to the constructor
4444
* @return void
4545
*/
46+
#[\Override]
4647
public function initialize(array $config): void
4748
{
4849
if (isset($config['identifiedField'])) {
@@ -60,6 +61,7 @@ public function initialize(array $config): void
6061
*
6162
* @return bool
6263
*/
64+
#[\Override]
6365
public function validates(): bool
6466
{
6567
$validator = new Validator();
@@ -130,6 +132,7 @@ protected function afterIdentifyUser(?array $user, bool $socialLogin = false): a
130132
*
131133
* @return array
132134
*/
135+
#[\Override]
133136
protected function authConfig(): array
134137
{
135138
return Hash::merge(parent::authConfig(), [

0 commit comments

Comments
 (0)