Skip to content

Commit 5e11f9f

Browse files
committed
format code
1 parent cd0c157 commit 5e11f9f

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

tests/Unit/ActionsTraitTest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Safemood\Workflow\Traits\ActionsTrait;
55

66
beforeEach(function () {
7-
$this->dummyClass = new class {
7+
$this->dummyClass = new class
8+
{
89
use ActionsTrait;
910
};
1011
});
@@ -33,7 +34,7 @@
3334
it('can add multiple before actions', function () {
3435
$beforeActions = [
3536
Mockery::mock(Action::class),
36-
Mockery::mock(Action::class)
37+
Mockery::mock(Action::class),
3738
];
3839

3940
$this->dummyClass->addBeforeActions($beforeActions);
@@ -44,7 +45,7 @@
4445
it('can add multiple main actions', function () {
4546
$mainActions = [
4647
Mockery::mock(Action::class),
47-
Mockery::mock(Action::class)
48+
Mockery::mock(Action::class),
4849
];
4950
$this->dummyClass->addMainActions($mainActions);
5051

@@ -54,7 +55,7 @@
5455
it('can add multiple after actions', function () {
5556
$afterActions = [
5657
Mockery::mock(Action::class),
57-
Mockery::mock(Action::class)
58+
Mockery::mock(Action::class),
5859
];
5960
$this->dummyClass->addAfterActions($afterActions);
6061

tests/Unit/HasResponsesTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
use Safemood\Workflow\Traits\HasResponses;
44

55
beforeEach(function () {
6-
$this->dummyClass = new class {
6+
$this->dummyClass = new class
7+
{
78
use HasResponses;
89
};
910
});

tests/Unit/TracksActionStatesTest.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
use Safemood\Workflow\Traits\TracksActionStates;
66

77
beforeEach(function () {
8-
$this->dummyClass = new class {
8+
$this->dummyClass = new class
9+
{
910
use TracksActionStates;
1011

1112
public $beforeActions = [];
13+
1214
public $mainActions = [];
15+
1316
public $afterActions = [];
1417

1518
// Methods to expose the protected trait methods for testing
@@ -34,8 +37,10 @@ public function isFailing(): bool
3437
}
3538
};
3639

37-
$this->dummyAction = new class extends Action {
40+
$this->dummyAction = new class extends Action
41+
{
3842
protected $state;
43+
3944
protected $exception;
4045

4146
public function handle(array &$context)
@@ -45,7 +50,6 @@ public function handle(array &$context)
4550
}
4651
$context['validated'] = true;
4752
}
48-
4953
};
5054
});
5155

tests/Unit/TracksEventsTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Safemood\Workflow\Traits\TracksEvents;
55

66
beforeEach(function () {
7-
$this->dummyClass = new class {
7+
$this->dummyClass = new class
8+
{
89
use TracksEvents;
910

1011
public function startTrackingAllEvents()

0 commit comments

Comments
 (0)