Skip to content

Commit b36422d

Browse files
terabytesoftwStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 0cb469c commit b36422d

File tree

15 files changed

+33
-15
lines changed

15 files changed

+33
-15
lines changed

rector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
return static function (\Rector\Config\RectorConfig $rectorConfig): void {
5+
return static function (Rector\Config\RectorConfig $rectorConfig): void {
66
$rectorConfig->parallel();
77

88
$rectorConfig->importNames();
@@ -16,21 +16,21 @@
1616

1717
$rectorConfig->sets(
1818
[
19-
\Rector\Set\ValueObject\SetList::PHP_81,
20-
\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_81,
21-
\Rector\Set\ValueObject\SetList::TYPE_DECLARATION,
19+
Rector\Set\ValueObject\SetList::PHP_81,
20+
Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_81,
21+
Rector\Set\ValueObject\SetList::TYPE_DECLARATION,
2222
],
2323
);
2424

2525
$rectorConfig->skip(
2626
[
27-
\Rector\TypeDeclaration\Rector\Class_\TypedPropertyFromCreateMockAssignRector::class,
27+
Rector\TypeDeclaration\Rector\Class_\TypedPropertyFromCreateMockAssignRector::class,
2828
],
2929
);
3030

3131
$rectorConfig->rules(
3232
[
33-
\Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector::class,
33+
Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector::class,
3434
],
3535
);
3636
};

src/Config/Config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class Config
2626
* @param array $config The config.
2727
* @param array $defaults The default values.
2828
*/
29-
public function __construct(private readonly array $config, private readonly array $defaults = []) {}
29+
public function __construct(private readonly array $config, private readonly array $defaults = [])
30+
{
31+
}
3032

3133
/**
3234
* Get the config value.

src/Exception/ExceptionInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
namespace Foxy\Exception;
66

7-
interface ExceptionInterface {}
7+
interface ExceptionInterface
8+
{
9+
}

src/Exception/RuntimeException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
namespace Foxy\Exception;
66

7-
class RuntimeException extends \RuntimeException implements ExceptionInterface {}
7+
class RuntimeException extends \RuntimeException implements ExceptionInterface
8+
{
9+
}

src/Json/JsonFormatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ final class JsonFormatter
3939
* @param bool $formatJson Check if the JSON must be formatted.
4040
*
4141
* @psalm-param string[] $arrayKeys The list of keys to be retained with an array representation if they are empty.
42+
*
4243
* @throws JsonException
4344
*/
4445
public static function format(

src/Solver/Solver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public function __construct(
3535
private readonly Config $config,
3636
private readonly Filesystem $fs,
3737
private readonly FallbackInterface|null $composerFallback = null,
38-
) {}
38+
) {
39+
}
3940

4041
public function setUpdatable($updatable): self
4142
{

src/Util/AssetUtil.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public static function formatPackage(PackageInterface $package, string $packageN
4949

5050
return $packageValue;
5151
}
52+
5253
/**
5354
* Get the name for the asset dependency.
5455
*

src/Util/PackageUtil.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public static function loadLockPackage(ArrayLoader $loader, array $lockData, boo
7575

7676
return $lockData;
7777
}
78+
7879
/**
7980
* Load all packages in the lock data of locker.
8081
*

tests/Asset/AssetManagerFinderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function testFindManagerWithInvalidManager(): void
7575

7676
$amf->findManager('bar');
7777
}
78+
7879
public function testFindManagerWithValidManager(): void
7980
{
8081
$am = $this->createMock(AssetManagerInterface::class);

tests/Fixtures/Asset/StubAssetManager.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public function __construct(
1919
Config $config,
2020
ProcessExecutor $executor,
2121
Filesystem $fs,
22-
) {}
22+
) {
23+
}
2324

2425
public function addDependencies(RootPackageInterface $rootPackage, array $dependencies): AssetPackageInterface
2526
{
@@ -81,5 +82,7 @@ public function setUpdatable(bool $updatable): self
8182
return $this;
8283
}
8384

84-
public function validate(): void {}
85+
public function validate(): void
86+
{
87+
}
8588
}

0 commit comments

Comments
 (0)