Skip to content

Commit 70fdec5

Browse files
committed
🧹 Fix style code
1 parent cf8ded8 commit 70fdec5

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

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,4 +4,4 @@
44

55
use DragonCode\LaravelActions\Database\BaseChangeColumn;
66

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

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,4 +4,4 @@
44

55
use DragonCode\LaravelActions\Database\BaseRenameMigrationsActionsTableToActions;
66

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

ide.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
33
"codeGenerations": [
44
{
5-
"id": "dragon-code.create-action",
6-
"name": "Create Action",
5+
"id": "dragon-code.create-action",
6+
"name": "Create Action",
77
"inputFilter": "actions",
88
"files": [
99
{

src/Action.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ abstract class Action extends Migration
2525
*/
2626
protected bool $transactions = false;
2727

28-
/**
29-
* The number of attempts to execute a request within a transaction before throwing an error.
30-
*/
28+
/** The number of attempts to execute a request within a transaction before throwing an error. */
3129
protected int $transactionAttempts = 1;
3230

3331
/**
@@ -40,14 +38,10 @@ abstract class Action extends Migration
4038
*/
4139
protected array|string|null $exceptEnvironment = null;
4240

43-
/**
44-
* Defines a possible "pre-launch" of the action.
45-
*/
41+
/** Defines a possible "pre-launch" of the action. */
4642
protected bool $before = true;
4743

48-
/**
49-
* Defines whether the action will run synchronously or asynchronously.
50-
*/
44+
/** Defines whether the action will run synchronously or asynchronously. */
5145
protected bool $async = false;
5246

5347
/**

src/Concerns/Artisan.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ trait Artisan
1111
{
1212
/**
1313
* Run an Artisan console command by name.
14+
*
15+
* @param ?OutputStyle $outputBuffer
1416
*/
1517
protected function artisan(string $command, array $parameters = [], ?OutputStyle $outputBuffer = null): void
1618
{

tests/Commands/MutexTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MutexTest extends TestCase
2121

2222
protected function setUp(): void
2323
{
24-
$this->command = new class () extends Command {
24+
$this->command = new class extends Command {
2525
public int $ran = 0;
2626

2727
public function handle(): int

0 commit comments

Comments
 (0)