Skip to content

Commit 6871460

Browse files
Merge pull request #198
Small changes
2 parents c6055d8 + 058d720 commit 6871460

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/Concerns/HasOptionable.php

+11-7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ protected function getArguments(): array
4242
->toArray();
4343
}
4444

45+
protected function availableArguments(): array
46+
{
47+
return [
48+
[
49+
Options::Name,
50+
InputArgument::OPTIONAL,
51+
'The name of the operation',
52+
],
53+
];
54+
}
55+
4556
protected function availableOptions(): array
4657
{
4758
return [
@@ -103,11 +114,4 @@ protected function availableOptions(): array
103114
],
104115
];
105116
}
106-
107-
protected function availableArguments(): array
108-
{
109-
return [
110-
[Options::Name, InputArgument::OPTIONAL, 'The name of the operation'],
111-
];
112-
}
113117
}

src/Services/MutexService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
use Carbon\CarbonInterval;
88
use DragonCode\LaravelDeployOperations\Console\Command;
9-
use Illuminate\Contracts\Cache\Factory as Cache;
9+
use Illuminate\Contracts\Cache\Factory;
1010
use Illuminate\Contracts\Cache\Repository;
1111

1212
class MutexService
1313
{
1414
protected ?string $store = null;
1515

1616
public function __construct(
17-
protected Cache $cache
17+
protected Factory $cache
1818
) {}
1919

2020
public function create(Command $command): bool

0 commit comments

Comments
 (0)