Skip to content

Commit 95aeedc

Browse files
Merge pull request #193
Added suffixes for classes
2 parents 82346fc + 4d933c9 commit 95aeedc

38 files changed

+100
-100
lines changed

database/migrations/2022_08_18_180137_change_migration_actions_table.php

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

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Helpers\Config;
5+
use DragonCode\LaravelDeployOperations\Helpers\ConfigHelper;
66
use Illuminate\Database\Migrations\Migration;
77
use Illuminate\Database\Schema\Blueprint;
88
use Illuminate\Support\Facades\Schema;
@@ -49,6 +49,6 @@ protected function doesntHaveColumn(string $column): bool
4949

5050
protected function table(): string
5151
{
52-
return app(Config::class)->table();
52+
return app(ConfigHelper::class)->table();
5353
}
5454
};

database/migrations/2023_01_21_172923_rename_migrations_actions_table_to_actions.php

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

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Helpers\Config;
5+
use DragonCode\LaravelDeployOperations\Helpers\ConfigHelper;
66
use Illuminate\Database\Migrations\Migration;
77
use Illuminate\Support\Facades\Schema;
88

@@ -39,6 +39,6 @@ protected function doesntSame(string $first, string $second): bool
3939

4040
protected function table(): string
4141
{
42-
return app(Config::class)->table();
42+
return app(ConfigHelper::class)->table();
4343
}
4444
};

database/migrations/2024_05_21_112438_rename_actions_table_to_operations.php

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

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Helpers\Config;
5+
use DragonCode\LaravelDeployOperations\Helpers\ConfigHelper;
66
use Illuminate\Database\Migrations\Migration;
77
use Illuminate\Support\Facades\Schema;
88

@@ -39,6 +39,6 @@ protected function doesntSame(string $first, string $second): bool
3939

4040
protected function table(): string
4141
{
42-
return app(Config::class)->table();
42+
return app(ConfigHelper::class)->table();
4343
}
4444
};

database/migrations/2024_05_21_114318_rename_column_in_operations_table.php

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

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Helpers\Config;
5+
use DragonCode\LaravelDeployOperations\Helpers\ConfigHelper;
66
use Illuminate\Database\Migrations\Migration;
77
use Illuminate\Database\Schema\Blueprint;
88
use Illuminate\Support\Facades\Schema;
@@ -27,6 +27,6 @@ protected function rename(string $from, string $to): void
2727

2828
protected function table(): string
2929
{
30-
return app(Config::class)->table();
30+
return app(ConfigHelper::class)->table();
3131
}
3232
};

src/Concerns/About.php renamed to src/Concerns/HasAbout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use DragonCode\Support\Facades\Helpers\Str;
1010
use Illuminate\Foundation\Console\AboutCommand;
1111

12-
trait About
12+
trait HasAbout
1313
{
1414
protected string $composer = __DIR__ . '/../../composer.json';
1515

src/Concerns/Artisan.php renamed to src/Concerns/HasArtisan.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
namespace DragonCode\LaravelDeployOperations\Concerns;
66

77
use Illuminate\Console\OutputStyle;
8-
use Illuminate\Support\Facades\Artisan as Command;
8+
use Illuminate\Support\Facades\Artisan;
99

10-
trait Artisan
10+
trait HasArtisan
1111
{
1212
protected function artisan(string $command, array $parameters = [], ?OutputStyle $outputBuffer = null): void
1313
{
14-
Command::call($command, $parameters, $outputBuffer);
14+
Artisan::call($command, $parameters, $outputBuffer);
1515
}
1616
}

src/Concerns/Isolatable.php renamed to src/Concerns/HasIsolatable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
namespace DragonCode\LaravelDeployOperations\Concerns;
66

77
use DragonCode\LaravelDeployOperations\Constants\Options;
8-
use DragonCode\LaravelDeployOperations\Services\Mutex;
8+
use DragonCode\LaravelDeployOperations\Services\MutexService;
99

1010
use function is_numeric;
1111

12-
trait Isolatable
12+
trait HasIsolatable
1313
{
14-
protected function isolationMutex(): Mutex
14+
protected function isolationMutex(): MutexService
1515
{
16-
return app(Mutex::class);
16+
return app(MutexService::class);
1717
}
1818

1919
protected function isolatedStatusCode(): int

src/Concerns/Optionable.php renamed to src/Concerns/HasOptionable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use function in_array;
1313

1414
/** @mixin \DragonCode\LaravelDeployOperations\Console\Command */
15-
trait Optionable
15+
trait HasOptionable
1616
{
1717
protected array $arguments = [];
1818

src/Console/Command.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
namespace DragonCode\LaravelDeployOperations\Console;
66

77
use DragonCode\LaravelDeployOperations\Concerns\ConfirmableTrait;
8-
use DragonCode\LaravelDeployOperations\Concerns\Isolatable;
9-
use DragonCode\LaravelDeployOperations\Concerns\Optionable;
8+
use DragonCode\LaravelDeployOperations\Concerns\HasIsolatable;
9+
use DragonCode\LaravelDeployOperations\Concerns\HasOptionable;
1010
use DragonCode\LaravelDeployOperations\Processors\Processor;
11-
use DragonCode\LaravelDeployOperations\Values\Options as OptionsData;
11+
use DragonCode\LaravelDeployOperations\Values\OptionsData;
1212
use Illuminate\Console\Command as BaseCommand;
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Output\OutputInterface;
@@ -19,8 +19,8 @@
1919
abstract class Command extends BaseCommand
2020
{
2121
use ConfirmableTrait;
22-
use Isolatable;
23-
use Optionable;
22+
use HasIsolatable;
23+
use HasOptionable;
2424

2525
protected Processor|string $processor;
2626

src/Console/Fresh.php renamed to src/Console/FreshCommand.php

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

77
use DragonCode\LaravelDeployOperations\Constants\Names;
88
use DragonCode\LaravelDeployOperations\Constants\Options;
9-
use DragonCode\LaravelDeployOperations\Processors\Fresh as FreshProcessor;
9+
use DragonCode\LaravelDeployOperations\Processors\FreshProcessor;
1010
use DragonCode\LaravelDeployOperations\Processors\Processor;
1111

12-
class Fresh extends Command
12+
class FreshCommand extends Command
1313
{
1414
protected $name = Names::Fresh;
1515

0 commit comments

Comments
 (0)