Skip to content

Commit c6055d8

Browse files
Merge pull request #197
Added imports of global functions
2 parents 767ce8d + 0ebe680 commit c6055d8

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/Concerns/HasIsolatable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use DragonCode\LaravelDeployOperations\Constants\Options;
88
use DragonCode\LaravelDeployOperations\Services\MutexService;
99

10+
use function app;
1011
use function is_numeric;
1112

1213
trait HasIsolatable

src/Concerns/HasOptionable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ protected function configure(): void
3131
protected function getOptions(): array
3232
{
3333
return Arr::of($this->availableOptions())
34-
->filter(fn (array $option) => in_array($option[0], $this->options))
34+
->filter(fn (array $option) => in_array($option[0], $this->options, true))
3535
->toArray();
3636
}
3737

3838
protected function getArguments(): array
3939
{
4040
return Arr::of($this->availableArguments())
41-
->filter(fn (array $argument) => in_array($argument[0], $this->arguments))
41+
->filter(fn (array $argument) => in_array($argument[0], $this->arguments, true))
4242
->toArray();
4343
}
4444

src/Console/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use function app;
1717
use function array_merge;
18+
use function sprintf;
1819

1920
abstract class Command extends BaseCommand
2021
{

src/Helpers/SorterHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function byRan(array $values, array $completed): array
3535

3636
protected function callback(): Closure
3737
{
38-
return function (string $a, string $b): int {
38+
return static function (string $a, string $b): int {
3939
$current = Path::filename($a);
4040
$next = Path::filename($b);
4141

0 commit comments

Comments
 (0)