Skip to content

Commit

Permalink
chore: Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
deligoez authored and github-actions[bot] committed Aug 13, 2024
1 parent de6bb8a commit 5548e77
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 30 deletions.
4 changes: 1 addition & 3 deletions src/Behavior/ActionBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
* This abstract class extends the InvokableBehavior class. It provides a way to define action behaviors
* that can be invoked within a specific context.
*/
abstract class ActionBehavior extends InvokableBehavior
{
}
abstract class ActionBehavior extends InvokableBehavior {}
4 changes: 1 addition & 3 deletions src/Behavior/GuardBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
* This is an abstract class that extends InvokableBehavior and provides the base structure for guard behavior classes.
* Guards are used in event-driven systems to determine whether an event should be allowed to proceed or not.
*/
abstract class GuardBehavior extends InvokableBehavior
{
}
abstract class GuardBehavior extends InvokableBehavior {}
4 changes: 1 addition & 3 deletions src/Behavior/ResultBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Tarfinlabs\EventMachine\Behavior;

abstract class ResultBehavior extends InvokableBehavior
{
}
abstract class ResultBehavior extends InvokableBehavior {}
3 changes: 1 addition & 2 deletions src/ContextManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ class ContextManager extends Data
public function __construct(
#[ArrayType]
public array|Optional $data = [],
) {
}
) {}

/**
* Get a value from the context by its key.
Expand Down
4 changes: 1 addition & 3 deletions src/EventCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Illuminate\Database\Eloquent\Collection;

class EventCollection extends Collection
{
}
class EventCollection extends Collection {}
4 changes: 1 addition & 3 deletions src/Exceptions/MachineContextValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@
/**
* Represents an exception thrown when the validation of the machine context fails.
*/
class MachineContextValidationException extends ValidationException
{
}
class MachineContextValidationException extends ValidationException {}
4 changes: 1 addition & 3 deletions src/Exceptions/MachineEventValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
*
* This class represents an exception that is thrown when a validation error occurs while processing a machine event.
*/
class MachineEventValidationException extends ValidationException
{
}
class MachineEventValidationException extends ValidationException {}
4 changes: 1 addition & 3 deletions src/Exceptions/MachineValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
* This exception is used to handle validation errors specific to the Machine class.
* It extends the ValidationException class to provide more specific functionality.
*/
class MachineValidationException extends ValidationException
{
}
class MachineValidationException extends ValidationException {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@

class DoNothingInsideClassAction extends ActionBehavior
{
public function __invoke(): void
{
}
public function __invoke(): void {}
}
6 changes: 2 additions & 4 deletions tests/Stubs/Machines/TrafficLights/TrafficLightsMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ public static function definition(): MachineDefinition
'DEX' => DecreaseEvent::class,
],
'actions' => [
'doNothingAction' => function (): void {
},
'doNothingAction2' => function (ContextManager $context, EventBehavior $eventBehavior): void {
},
'doNothingAction' => function (): void {},
'doNothingAction2' => function (ContextManager $context, EventBehavior $eventBehavior): void {},
'doNothingInsideClassAction' => DoNothingInsideClassAction::class,
],
],
Expand Down

0 comments on commit 5548e77

Please sign in to comment.