Skip to content

Commit

Permalink
Fix cs (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba authored Jun 19, 2023
1 parent 0f5af7d commit 736f432
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Collectors/ClassConstFetchCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace TomasVotruba\UnusedPublic\Collectors;

use PHPStan\Reflection\ClassReflection;
use PhpParser\Node;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name;
use PHPStan\Analyser\Scope;
use PHPStan\Collectors\Collector;
use PHPStan\Reflection\ClassReflection;
use TomasVotruba\UnusedPublic\Configuration;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Collectors/PublicClassMethodCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use PHPStan\Analyser\Scope;
use PHPStan\Collectors\Collector;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\ExtendedMethodReflection;
use PHPStan\Reflection\Php\PhpMethodReflection;
use PHPStan\Reflection\ResolvedMethodReflection;
use TomasVotruba\UnusedPublic\ApiDocStmtAnalyzer;
Expand Down
2 changes: 1 addition & 1 deletion src/Collectors/PublicPropertyCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function shouldSkipProperty(ClassReflection $classReflection, string $pr
}

$parentClassReflection = $classReflection->getParentClass();
if (!$parentClassReflection instanceof ClassReflection) {
if (! $parentClassReflection instanceof ClassReflection) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Rules/LocalOnlyPublicClassMethodRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public function processNode(Node $node, Scope $scope): array
$publicClassMethodCollector = $node->get(PublicClassMethodCollector::class);
// php method calls are case-insensitive
$lowerExternalRefs = array_map(
static fn(string $item): string => strtolower($item),
static fn (string $item): string => strtolower($item),
$localAndExternalMethodCallReferences->getExternalMethodCallReferences()
);
$lowerLocalRefs = array_map(
static fn(string $item): string => strtolower($item),
static fn (string $item): string => strtolower($item),
$localAndExternalMethodCallReferences->getLocalMethodCallReferences()
);

Expand Down
2 changes: 1 addition & 1 deletion src/Rules/UnusedPublicClassMethodRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function processNode(Node $node, Scope $scope): array
$publicClassMethodCollector = $node->get(PublicClassMethodCollector::class);
// php method calls are case-insensitive
$lowerCompleteMethodCallReferences = array_map(
static fn(string $item): string => strtolower($item),
static fn (string $item): string => strtolower($item),
$completeMethodCallReferences
);

Expand Down

0 comments on commit 736f432

Please sign in to comment.