Skip to content

Commit 97610ed

Browse files
committed
fix(cs): indent in phpdoc
1 parent 8366c51 commit 97610ed

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

ecs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PhpCsFixer\Fixer\Phpdoc\NoBlankLinesAfterPhpdocFixer;
1313
use PhpCsFixer\Fixer\Phpdoc\NoEmptyPhpdocFixer;
1414
use PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer;
15-
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
15+
use PhpCsFixer\Fixer\Phpdoc\PhpdocIndentFixer;
1616
use Symplify\EasyCodingStandard\Config\ECSConfig;
1717
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
1818

@@ -51,6 +51,7 @@
5151
'var_dump' => null,
5252
]
5353
]);
54+
$ecsConfig->rule(PhpdocIndentFixer::class);
5455
$ecsConfig->skip([
5556
ForbiddenFunctionsSniff::class => [
5657
'tests/**',

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ public function getInternalDomains(): array
201201
if ($urlManager->enablePrettyUrl) {
202202
foreach ($urlManager->rules as $rule) {
203203
/**
204-
* @var \yii\web\UrlRule $rule
205-
*/
204+
* @var \yii\web\UrlRule $rule
205+
*/
206206
if ($rule->host !== null) {
207207
$domains[] = $this->getDomainRegex($rule->host);
208208
}
@@ -403,8 +403,8 @@ protected function encodeCookies(
403403

404404
foreach ($response->getCookies() as $cookie) {
405405
/**
406-
* @var \yii\web\Cookie $cookie
407-
*/
406+
* @var \yii\web\Cookie $cookie
407+
*/
408408
$value = $cookie->value;
409409
// Expire = 1 means we're removing the cookie
410410
if ($cookie->expire !== 1 && isset($validationKey)) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ protected function connectionOpened(Connection $connection): void
9191
public function rollbackAll(): void
9292
{
9393
/**
94-
* @var Transaction $transaction
95-
*/
94+
* @var Transaction $transaction
95+
*/
9696
foreach ($this->transactions as $transaction) {
9797
if ($transaction->db->isActive) {
9898
$transaction->rollBack();

src/Codeception/Module/Yii2.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,14 +636,15 @@ public function grabFixture(string $name, null|string $index = null): Fixture|\y
636636
*
637637
* @template T of \yii\db\ActiveRecord
638638
* @param class-string<T> $model
639-
* @param array<string, mixed> $attributes
639+
* @param array<string, mixed> $attributes
640640
* @part orm
641+
* @return int|string|array<string, int|string> The primary key
641642
*/
642-
public function haveRecord(string $model, $attributes = []): mixed
643+
public function haveRecord(string $model, $attributes = []): int|string|array
643644
{
644645
/**
645-
* @var T $record
646-
*/
646+
* @var T $record
647+
*/
647648
$record = \Yii::createObject($model);
648649
$record->setAttributes($attributes, false);
649650
$res = $record->save(false);

0 commit comments

Comments
 (0)