Skip to content

Commit b4fa9e3

Browse files
Fixed code-style
1 parent 83dfc7d commit b4fa9e3

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

config/actions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
|
2525
*/
2626

27-
'table' => 'actions',
27+
'table' => 'actions',
2828

2929
/*
3030
|--------------------------------------------------------------------------
@@ -35,7 +35,7 @@
3535
|
3636
*/
3737

38-
'path' => base_path('actions'),
38+
'path' => base_path('actions'),
3939

4040
/*
4141
|--------------------------------------------------------------------------
@@ -56,5 +56,5 @@
5656
|
5757
*/
5858

59-
'exclude' => null,
59+
'exclude' => null,
6060
];

database/migrations/anonymous/2022_08_18_180137_change_migration_actions_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
use DragonCode\LaravelActions\Database\BaseChangeColumn;
66

7-
return new class extends BaseChangeColumn
7+
return new class () extends BaseChangeColumn
88
{
99
};

database/migrations/anonymous/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
@@ -4,6 +4,6 @@
44

55
use DragonCode\LaravelActions\Database\BaseRenameMigrationsActionsTableToActions;
66

7-
return new class extends BaseRenameMigrationsActionsTableToActions
7+
return new class () extends BaseRenameMigrationsActionsTableToActions
88
{
99
};

src/Database/BaseRenameMigrationsActionsTableToActions.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ public function down(): void
3939
protected function validateTable(string $name): void
4040
{
4141
if (Schema::hasTable($name)) {
42-
throw new RuntimeException(sprintf(
43-
'A table named [%s] already exists. Change the table name settings in the [%s] configuration file.',
44-
$name,
45-
'config/actions.php'
46-
)
47-
);
42+
throw new RuntimeException(sprintf('A table named [%s] already exists. Change the table name settings in the [%s] configuration file.', $name, 'config/actions.php'));
4843
}
4944
}
5045

0 commit comments

Comments
 (0)