Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Feb 15, 2025
1 parent 81e96e5 commit c9218d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
namespace PHPStan\Rules\BooleansInConditions;

use PhpParser\Node;
use PhpParser\Node\Stmt\Do_;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleErrorBuilder;
use PHPStan\Type\VerbosityLevel;
use function sprintf;

/**
* @implements Rule<Do_>
* @implements Rule<Node\Stmt\Do_>
*/
class BooleanInDoWhileConditionRule implements Rule
{
Expand All @@ -25,7 +24,7 @@ public function __construct(BooleanRuleHelper $helper)

public function getNodeType(): string
{
return Do_::class;
return Node\Stmt\Do_::class;
}

public function processNode(Node $node, Scope $scope): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
namespace PHPStan\Rules\BooleansInConditions;

use PhpParser\Node;
use PhpParser\Node\Stmt\While_;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleErrorBuilder;
use PHPStan\Type\VerbosityLevel;
use function sprintf;

/**
* @implements Rule<While_>
* @implements Rule<Node\Stmt\While_>
*/
class BooleanInWhileConditionRule implements Rule
{
Expand All @@ -25,7 +24,7 @@ public function __construct(BooleanRuleHelper $helper)

public function getNodeType(): string
{
return While_::class;
return Node\Stmt\While_::class;
}

public function processNode(Node $node, Scope $scope): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace PHPStan\Rules\BooleansInConditions;

use PHPStan\Rules\BooleansInConditions\BooleanInDoWhileConditionRule;
use PHPStan\Rules\BooleansInConditions\BooleanRuleHelper;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleLevelHelper;
use PHPStan\Testing\RuleTestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace PHPStan\Rules\BooleansInConditions;

use PHPStan\Rules\BooleansInConditions\BooleanInWhileConditionRule;
use PHPStan\Rules\BooleansInConditions\BooleanRuleHelper;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleLevelHelper;
use PHPStan\Testing\RuleTestCase;
Expand Down

0 comments on commit c9218d4

Please sign in to comment.