Skip to content

Commit 95d3204

Browse files
Safemoodgithub-actions[bot]
authored andcommitted
Fix styling
1 parent a71e14b commit 95d3204

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

src/Action.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ abstract public function handle(array &$context);
2020

2121
/**
2222
* Get the state of the action.
23-
*
24-
* @return ActionState|null
2523
*/
2624
public function getState(): ?ActionState
2725
{
@@ -30,9 +28,6 @@ public function getState(): ?ActionState
3028

3129
/**
3230
* Set the state of the action.
33-
*
34-
* @param ActionState $state
35-
* @return void
3631
*/
3732
public function setState(ActionState $state): void
3833
{
@@ -41,8 +36,6 @@ public function setState(ActionState $state): void
4136

4237
/**
4338
* Get the exception of the action.
44-
*
45-
* @return \Exception|null
4639
*/
4740
public function getException(): ?\Exception
4841
{
@@ -51,9 +44,6 @@ public function getException(): ?\Exception
5144

5245
/**
5346
* Set the exception of the action.
54-
*
55-
* @param \Exception|null $exception
56-
* @return void
5747
*/
5848
public function setException(?\Exception $exception): void
5949
{

tests/Unit/ActionTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Safemood\Workflow\Enums\ActionState;
55

66
it('can set and get the state using ActionState', function () {
7-
$action = new class extends Action {
7+
$action = new class extends Action
8+
{
89
public function handle(array &$context) {}
910
};
1011

@@ -18,7 +19,8 @@ public function handle(array &$context) {}
1819
});
1920

2021
it('can set and get the exception', function () {
21-
$action = new class extends Action {
22+
$action = new class extends Action
23+
{
2224
public function handle(array &$context) {}
2325
};
2426

@@ -29,8 +31,10 @@ public function handle(array &$context) {}
2931
});
3032

3133
it('should handle the abstract handle method', function () {
32-
$action = new class extends Action {
33-
public function handle(array &$context) {
34+
$action = new class extends Action
35+
{
36+
public function handle(array &$context)
37+
{
3438
// Example handle logic
3539
$context['handled'] = true;
3640
}

0 commit comments

Comments
 (0)