Skip to content

Commit 0d98125

Browse files
committed
fix(cs): add rules for docblocks
1 parent 97610ed commit 0d98125

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

ecs.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
]);
2828

2929
// A. full sets
30-
$ecsConfig->sets([SetList::PSR_12, SetList::SPACES, SetList::STRICT]);
30+
$ecsConfig->sets([SetList::PSR_12, SetList::SPACES, SetList::STRICT, SetList::DOCBLOCK]);
3131

3232
$ecsConfig->rule(NotOperatorWithSuccessorSpaceFixer::class);
3333
$ecsConfig->rule(ArraySyntaxFixer::class);
3434
$ecsConfig->ruleWithConfiguration(GeneralPhpdocAnnotationRemoveFixer::class, [
35-
'annotations' => ['author', 'inheritdoc']
35+
'annotations' => ['author', 'inheritdoc', 'package']
3636
]);
3737
$ecsConfig->rule(NoBlankLinesAfterPhpdocFixer::class);
3838
$ecsConfig->ruleWithConfiguration(NoSuperfluousPhpdocTagsFixer::class, [
@@ -52,6 +52,8 @@
5252
]
5353
]);
5454
$ecsConfig->rule(PhpdocIndentFixer::class);
55+
$ecsConfig->rule(\PhpCsFixer\Fixer\Phpdoc\AlignMultilineCommentFixer::class);
56+
5557
$ecsConfig->skip([
5658
ForbiddenFunctionsSniff::class => [
5759
'tests/**',

src/Codeception/Lib/Connector/Yii2/ConnectionWatcher.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use yii\db\Connection;
1212

1313
/**
14-
* Class ConnectionWatcher
1514
* This class will watch for new database connection and store a reference to the connection object.
1615
* @internal
1716
*/

src/Codeception/Lib/Connector/Yii2/FixturesStore.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ final class FixturesStore
1313

1414
/**
1515
* Expects fixtures config
16-
*
17-
* FixturesStore constructor.
1816
*/
1917
public function __construct(
2018
protected mixed $data

src/Codeception/Lib/Connector/Yii2/TransactionForcer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
use yii\db\Transaction;
1010

1111
/**
12-
* Class TransactionForcer
1312
* This class adds support for forcing transactions as well as reusing PDO objects.
14-
*
15-
* @package Codeception\Lib\Connector\Yii2
1613
*/
1714
final class TransactionForcer extends ConnectionWatcher
1815
{

src/Codeception/Module/Yii2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ final class Yii2 extends Framework implements ActiveRecord, MultiSession, Parted
257257
private TransactionForcer $transactionForcer;
258258

259259
/**
260-
* @var array<mixed> The contents of $_SERVER upon initialization of this object.
260+
* @var array<mixed> The contents of upon initialization of this object.
261261
* This is only used to restore it upon object destruction.
262262
* It MUST not be used anywhere else.
263263
*/

tests/cases/simple/helpers/DummyUser.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class DummyUser implements IdentityInterface
1818
public static function findIdentity($id)
1919
{
2020
return null;
21-
// TODO: Implement findIdentity() method.
21+
2222
}
2323

2424
/**
@@ -32,7 +32,7 @@ public static function findIdentity($id)
3232
*/
3333
public static function findIdentityByAccessToken($token, $type = null)
3434
{
35-
// TODO: Implement findIdentityByAccessToken() method.
35+
3636
}
3737

3838
/**
@@ -41,7 +41,7 @@ public static function findIdentityByAccessToken($token, $type = null)
4141
*/
4242
public function getId()
4343
{
44-
// TODO: Implement getId() method.
44+
4545
}
4646

4747
/**
@@ -58,7 +58,7 @@ public function getId()
5858
*/
5959
public function getAuthKey()
6060
{
61-
// TODO: Implement getAuthKey() method.
61+
6262
}
6363

6464
/**
@@ -71,6 +71,6 @@ public function getAuthKey()
7171
*/
7272
public function validateAuthKey($authKey)
7373
{
74-
// TODO: Implement validateAuthKey() method.
74+
7575
}
7676
}

0 commit comments

Comments
 (0)