Skip to content

Commit 6d4684a

Browse files
paulbalandandimtrovich
authored andcommitted
chore: fix code styles (codeigniter4#1324)
1 parent 0cc5dac commit 6d4684a

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/Config/Auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class Auth extends BaseConfig
3131
{
32-
/**
32+
/*
3333
* ////////////////////////////////////////////////////////////////////
3434
* AUTHENTICATION
3535
* ////////////////////////////////////////////////////////////////////
@@ -378,7 +378,7 @@ class Auth extends BaseConfig
378378
*/
379379
public int $hashCost = 12;
380380

381-
/**
381+
/*
382382
* ////////////////////////////////////////////////////////////////////
383383
* OTHER SETTINGS
384384
* ////////////////////////////////////////////////////////////////////

tests/Authentication/MagicLinkTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ public function testMagicLinkSubmitBadEmail(): void
7575

7676
public function testMagicLinkSubmitSuccess(): void
7777
{
78-
/**
79-
* @phpstan-var User
80-
*/
78+
/** @phpstan-var User $user */
8179
$user = fake(UserModel::class);
8280
$user->createEmailIdentity(['email' => 'foo@example.com', 'password' => 'secret123']);
8381

@@ -105,9 +103,8 @@ public function testMagicLinkVerifyNoToken(): void
105103
public function testMagicLinkVerifyExpired(): void
106104
{
107105
$identities = new UserIdentityModel();
108-
/**
109-
* @phpstan-var User
110-
*/
106+
107+
/** @phpstan-var User $user */
111108
$user = fake(UserModel::class);
112109
$user->createEmailIdentity(['email' => 'foo@example.com', 'password' => 'secret123']);
113110
$identities->insert([

tests/Language/AbstractTranslationTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ final public function testAllIncludedLanguageKeysAreTranslated(string $locale):
220220
{
221221
// These keys are usually not translated because they contain either
222222
// universal abbreviations or simply combine parameters with signs.
223-
static $excludedKeyTranslations = [
224-
];
223+
static $excludedKeyTranslations = [];
225224

226225
$excludedKeys = array_unique(array_merge($excludedKeyTranslations, $this->excludedLocaleKeyTranslations));
227226
$availableSets = array_intersect($this->expectedSets(), $this->foundSets($locale));

tests/Unit/UserIdentityModelTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public function testCreateCodeIdentityThrowsExceptionIfUniqueCodeIsNotGot(): voi
8585

8686
public function testForceMultiplePasswordReset(): void
8787
{
88-
/** @var Fabricator $fabricator */
8988
$fabricator = new Fabricator(UserIdentityModel::class);
9089
$fabricator->create(10);
9190

0 commit comments

Comments
 (0)