Skip to content

Commit 59e7882

Browse files
committed
cs fixes
1 parent 0fae83e commit 59e7882

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/JsPackageManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(FileManager $fileManager)
3131
public function isInstalled(string $package): bool
3232
{
3333
$packageJson = $this->packageJson();
34-
$deps = \array_merge($packageJson['dependencies'] ?? [], $packageJson['devDependencies'] ?? []);
34+
$deps = array_merge($packageJson['dependencies'] ?? [], $packageJson['devDependencies'] ?? []);
3535

3636
return \array_key_exists($package, $deps);
3737
}

src/Maker/MakeScaffold.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,19 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
116116
if ($scaffold['dependents'] ?? []) {
117117
$io->text('This scaffold will also install the following scaffolds:');
118118
$io->newLine();
119-
$io->listing(\array_map(fn($s) => \sprintf('%s - %s', $s, $scaffolds[$s]['description']), $scaffold['dependents']));
119+
$io->listing(array_map(fn ($s) => sprintf('%s - %s', $s, $scaffolds[$s]['description']), $scaffold['dependents']));
120120
}
121121

122122
if ($scaffold['packages'] ?? []) {
123123
$io->text('This scaffold will install the following composer packages:');
124124
$io->newLine();
125-
$io->listing(\array_keys($scaffold['packages']));
125+
$io->listing(array_keys($scaffold['packages']));
126126
}
127127

128128
if ($scaffold['js_packages'] ?? []) {
129129
$io->text('This scaffold will install the following node packages:');
130130
$io->newLine();
131-
$io->listing(\array_keys($scaffold['js_packages']));
131+
$io->listing(array_keys($scaffold['js_packages']));
132132
}
133133

134134
if (!$io->confirm("Would your like to create the \"{$name}\" scaffold?")) {

0 commit comments

Comments
 (0)