Skip to content

Commit fbfaa83

Browse files
Fixed code-style
1 parent 824a640 commit fbfaa83

30 files changed

+87
-92
lines changed

database/migrations/2022_08_18_180137_change_migration_actions_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Operation;
65
use DragonCode\LaravelDeployOperations\Helpers\Config;
6+
use DragonCode\LaravelDeployOperations\Operation;
77
use Illuminate\Database\Schema\Blueprint;
88
use Illuminate\Support\Facades\Schema;
99

database/migrations/2023_01_21_172923_rename_migrations_actions_table_to_actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Operation;
65
use DragonCode\LaravelDeployOperations\Helpers\Config;
6+
use DragonCode\LaravelDeployOperations\Operation;
77
use Illuminate\Support\Facades\Schema;
88

99
return new class extends Operation {

database/migrations/2024_05_21_112438_rename_actions_table_to_operations.php

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

33
declare(strict_types=1);
44

5-
use DragonCode\LaravelDeployOperations\Operation;
65
use DragonCode\LaravelDeployOperations\Helpers\Config;
6+
use DragonCode\LaravelDeployOperations\Operation;
77
use Illuminate\Support\Facades\Schema;
88

99
return new class extends Operation {
@@ -28,13 +28,7 @@ public function down(): void
2828
protected function validateTable(string $name): void
2929
{
3030
if (Schema::hasTable($name)) {
31-
throw new RuntimeException(
32-
sprintf(
33-
'A table named [%s] already exists. Change the table name settings in the [%s] configuration file.',
34-
$name,
35-
'config/deploy-operations.php'
36-
)
37-
);
31+
throw new RuntimeException(sprintf('A table named [%s] already exists. Change the table name settings in the [%s] configuration file.', $name, 'config/deploy-operations.php'));
3832
}
3933
}
4034

src/Concerns/Optionable.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,57 +49,57 @@ protected function availableOptions(): array
4949
Options::Before,
5050
null,
5151
InputOption::VALUE_NONE,
52-
'Run operations marked as before'
52+
'Run operations marked as before',
5353
],
5454
[
5555
Options::Connection,
5656
null,
5757
InputOption::VALUE_OPTIONAL,
58-
'The database connection to use'
58+
'The database connection to use',
5959
],
6060
[
6161
Options::Force,
6262
null,
6363
InputOption::VALUE_NONE,
64-
'Force the operation to run when in production'
64+
'Force the operation to run when in production',
6565
],
6666
[
6767
Options::Path,
6868
null,
6969
InputOption::VALUE_OPTIONAL,
70-
'The path to the operations files to be executed'
70+
'The path to the operations files to be executed',
7171
],
7272
[
7373
Options::Realpath,
7474
null,
7575
InputOption::VALUE_NONE,
76-
'Indicate any provided operation file paths are pre-resolved absolute path'
76+
'Indicate any provided operation file paths are pre-resolved absolute path',
7777
],
7878
[
7979
Options::Step,
8080
null,
8181
InputOption::VALUE_OPTIONAL,
82-
'Force the operations to be run so they can be rolled back individually'
82+
'Force the operations to be run so they can be rolled back individually',
8383
],
8484
[
8585
Options::Mute,
8686
null,
8787
InputOption::VALUE_NONE,
88-
'Turns off the output of informational messages'
88+
'Turns off the output of informational messages',
8989
],
9090
[
9191
Options::Isolated,
9292
null,
9393
InputOption::VALUE_OPTIONAL,
9494
'Do not run the operations command if another instance of the operations command is already running',
95-
false
95+
false,
9696
],
9797
[
9898
Options::Sync,
9999
null,
100100
InputOption::VALUE_OPTIONAL,
101101
'Makes all operations run synchronously',
102-
false
102+
false,
103103
],
104104
];
105105
}

src/Console/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ class Install extends Command
1212

1313
protected $description = 'Create the deploy operations repository';
1414

15-
protected Processor | string $processor = InstallProcessor::class;
15+
protected Processor|string $processor = InstallProcessor::class;
1616
}

src/Console/Make.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Make extends Command
1313

1414
protected $description = 'Create a new deploy operation file';
1515

16-
protected Processor | string $processor = MakeProcessor::class;
16+
protected Processor|string $processor = MakeProcessor::class;
1717

1818
protected array $arguments = [
1919
Options::Name,

src/Console/Operations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Operations extends Command
1313

1414
protected $description = 'Run the deploy operations';
1515

16-
protected Processor | string $processor = OperationsProcessor::class;
16+
protected Processor|string $processor = OperationsProcessor::class;
1717

1818
protected bool $secure = false;
1919

src/Console/Refresh.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Refresh extends Command
1313

1414
protected $description = 'Reset and re-run all deploy operations';
1515

16-
protected Processor | string $processor = RefreshProcessor::class;
16+
protected Processor|string $processor = RefreshProcessor::class;
1717

1818
protected array $options = [
1919
Options::Connection,

src/Console/Reset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Reset extends Command
1313

1414
protected $description = 'Rollback all deploy operations';
1515

16-
protected Processor | string $processor = ResetProcessor::class;
16+
protected Processor|string $processor = ResetProcessor::class;
1717

1818
protected array $options = [
1919
Options::Connection,

src/Console/Rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Rollback extends Command
1313

1414
protected $description = 'Rollback the last deploy operation';
1515

16-
protected Processor | string $processor = RollbackProcessor::class;
16+
protected Processor|string $processor = RollbackProcessor::class;
1717

1818
protected array $options = [
1919
Options::Connection,

0 commit comments

Comments
 (0)