Skip to content

Commit 5436de3

Browse files
committed
style: apply linting and formatting suggestions
1 parent a5d32e8 commit 5436de3

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

packages/cache/src/Testing/RestrictedCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
final class RestrictedCache implements Cache
1515
{
1616
public bool $enabled;
17+
1718
public function __construct(
1819
private ?string $tag = null,
1920
) {}

packages/console/src/Components/Static/StaticProgressBarComponent.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ public function render(Console $console): array
2929
$progress = (int) round(($step / $count) * $width);
3030

3131
if ($step === $count) {
32-
$bar = sprintf(
33-
'[%s]',
34-
str_repeat('=', $width + 1),
35-
);
32+
$bar = sprintf('[%s]', str_repeat('=', $width + 1));
3633
} else {
3734
$bar = sprintf(
3835
'[%s>%s]',
@@ -41,12 +38,7 @@ public function render(Console $console): array
4138
);
4239
}
4340

44-
return sprintf(
45-
'%s (%s/%s)',
46-
$bar,
47-
$step,
48-
$count,
49-
) . PHP_EOL;
41+
return sprintf('%s (%s/%s)%s', $bar, $step, $count, PHP_EOL);
5042
};
5143

5244
foreach ($this->data as $item) {

packages/support/src/JavaScript/PackageManager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public function getRunCommand(string $script): string
4141
{
4242
return (
4343
$this->getBinaryName() .
44-
' ' .
45-
match ($this) {
44+
' ' . match ($this) {
4645
self::BUN => $script,
4746
self::NPM => "run {$script}",
4847
self::YARN => $script,

0 commit comments

Comments
 (0)