Skip to content

Commit bd6ea74

Browse files
Merge pull request #139 from TheDragonCode/4.x
Fixed code-style and tests
2 parents 450a41d + 55dfb31 commit bd6ea74

37 files changed

+45
-90
lines changed

pint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

resources/stubs/action.stub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ declare(strict_types=1);
44

55
use DragonCode\LaravelActions\Action;
66

7-
return new class extends Action
8-
{
7+
return new class extends Action {
98
/**
109
* Run the actions.
1110
*

tests/fixtures/app/actions/2020_12_07_153105_foo_bar.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
8+
return new class extends Action {
109
public function up(): void
1110
{
1211
$this->table()->insert([

tests/fixtures/app/actions/2021_01_02_020947_every_time.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
8+
return new class extends Action {
109
protected bool $once = false;
1110

1211
public function up(): void

tests/fixtures/app/actions/2021_05_24_120003_run_on_all.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
8+
return new class extends Action {
109
public function up(): void
1110
{
1211
$this->table()->insert([

tests/fixtures/app/actions/2021_05_24_120003_run_on_many_environments.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
10-
protected string|array|null $environment = ['testing', 'production'];
8+
return new class extends Action {
9+
protected array|string|null $environment = ['testing', 'production'];
1110

1211
public function up(): void
1312
{

tests/fixtures/app/actions/2021_05_24_120003_run_on_production.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
10-
protected string|array|null $environment = 'production';
8+
return new class extends Action {
9+
protected array|string|null $environment = 'production';
1110

1211
public function up(): void
1312
{

tests/fixtures/app/actions/2021_05_24_120003_run_on_testing.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
10-
protected string|array|null $environment = 'testing';
8+
return new class extends Action {
9+
protected array|string|null $environment = 'testing';
1110

1211
public function up(): void
1312
{

tests/fixtures/app/actions/2021_06_07_132849_run_except_production.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
10-
protected string|array|null $exceptEnvironment = 'production';
8+
return new class extends Action {
9+
protected array|string|null $exceptEnvironment = 'production';
1110

1211
public function up(): void
1312
{

tests/fixtures/app/actions/2021_06_07_132917_run_except_testing.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
use Illuminate\Support\Facades\DB;
66
use Ramsey\Uuid\Uuid;
77

8-
return new class () extends Action
9-
{
10-
protected string|array|null $exceptEnvironment = 'testing';
8+
return new class extends Action {
9+
protected array|string|null $exceptEnvironment = 'testing';
1110

1211
public function up(): void
1312
{

0 commit comments

Comments
 (0)