Skip to content

Commit

Permalink
codeQuality: true
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Jul 19, 2024
1 parent f7cd126 commit 6a0a6a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getFileProperties(object $object): iterable
* @param class-string $class
* @return iterable<\ReflectionProperty>
*/
private static function getReflectionProperties(string $class): iterable
private function getReflectionProperties(string $class): iterable
{
$reflectionClass = (new \ReflectionClass($class));
while ($reflectionClass instanceof \ReflectionClass) {
Expand All @@ -72,7 +72,7 @@ private function getReflectionPropertiesWithAttribute(
string $class,
string $attribute
): iterable {
foreach (self::getReflectionProperties($class) as $reflectionProperty) {
foreach ($this->getReflectionProperties($class) as $reflectionProperty) {
$attributes = $reflectionProperty
->getAttributes($attribute);

Expand Down
3 changes: 1 addition & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
])
->withPreparedSets(
deadCode: true,
// codeQuality: true,
codeQuality: true,
// codingStyle: true,
typeDeclarations: true,
// privatization: true,
Expand All @@ -41,7 +41,6 @@
// symfonyCodeQuality: true,
// doctrineCodeQuality: true,
)
->withCodeQualityLevel(70)
->withPhpSets(php81: true)
->withRules([
// AddOverrideAttributeToOverriddenMethodsRector::class,
Expand Down

0 comments on commit 6a0a6a3

Please sign in to comment.