Skip to content

Commit cdc9794

Browse files
tiagofgithub-actions[bot]
authored andcommitted
Fix styling
1 parent fcff9ae commit cdc9794

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/Models/Workflow.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Workflow extends Model
2020

2121
protected $table = 'workflows';
2222

23-
protected $guarded=['id'];
23+
protected $guarded = ['id'];
2424

2525
/**
2626
* @return HasMany<WorkflowTransition>
@@ -50,14 +50,14 @@ public function allStatuses(): \Illuminate\Support\Collection
5050
{
5151
$statuses = collect();
5252
$this->transitions
53-
->each(fn(WorkflowTransition $transition) => $statuses
53+
->each(fn (WorkflowTransition $transition) => $statuses
5454
->add($transition->fromStatus)
5555
->add($transition->toStatus)
5656
);
5757

5858
return $statuses->filter()->unique('id');
5959
}
60-
60+
6161
public static function findWithName(string $name): ?Workflow
6262
{
6363
return self::where('name', $name)->first();

src/Models/WorkflowTransition.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class WorkflowTransition extends Model
3030
use BelongsToWorkflow;
3131

3232
use HasPermissions;
33-
3433
use SoftDeletes;
3534

3635
public string $guard_name = 'web';

src/Traits/HasWorkflows.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function bootHasWorkflows(): void
4343
public function initWorkflow(int|Workflow $workflow): static
4444
{
4545
$this->with = array_unique(array_merge($this->with, ['modelStatus']));
46-
46+
4747
$this->usingWorkflow($workflow);
4848
if ($this->modelStatus === null) {
4949
$this->createModelStatus($workflow, TransitionService::getWorkflowStartStatus($workflow));
@@ -129,7 +129,7 @@ public function isInStatus(string|BackedEnum $statusName): bool
129129
public function scopeInStatus(
130130
Builder $query,
131131
int|array|BackedEnum|WorkflowStatus|Collection $status,
132-
null|int|string|Workflow $workflow = null,
132+
int|string|Workflow $workflow = null,
133133
): Builder {
134134
$workflow = is_string($workflow)
135135
? Workflow::findWithName($workflow)

tests/Support/2000_01_01_000000_create_permission_tables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Schema;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
66
use Spatie\Permission\PermissionRegistrar;
77

88
class CreatePermissionTables extends Migration

0 commit comments

Comments
 (0)