Skip to content

Commit

Permalink
[automated] Apply Coding Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba authored and github-actions[bot] committed Jan 19, 2025
1 parent 0c36822 commit 303685c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions rules/CodingStyle/Application/UseImportsAdder.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ private function getNamespaceName(Namespace_ $namespace): ?string
return $namespace->name->toString();
}

private function isCurrentNamespace(string $namespaceName, AliasedObjectType|FullyQualifiedObjectType $objectType): bool
{
private function isCurrentNamespace(
string $namespaceName,
AliasedObjectType|FullyQualifiedObjectType $objectType
): bool {
$className = $objectType->getClassName();

if (! str_starts_with($className, $namespaceName . '\\')) {
Expand Down
8 changes: 6 additions & 2 deletions src/Configuration/RectorConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,12 @@ public function withPreparedSets(
return $this;
}

public function withComposerBased(bool $twig = false, bool $doctrine = false, bool $phpunit = false, bool $symfony = \false): self
{
public function withComposerBased(
bool $twig = false,
bool $doctrine = false,
bool $phpunit = false,
bool $symfony = \false
): self {
$setMap = [
SetGroup::TWIG => $twig,
SetGroup::DOCTRINE => $doctrine,
Expand Down

0 comments on commit 303685c

Please sign in to comment.