Skip to content

Commit 54216f3

Browse files
Apply ECS auto-fixes to keep coding style green
Restore consistent phpdoc indentation, tidy ordered imports, and reflow a couple of long lines that tripped the ECS check. No behavior changes.
1 parent b2aab03 commit 54216f3

4 files changed

Lines changed: 15 additions & 11 deletions

File tree

src/V2/Support/ConfiguredV2Models.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public static function validateConfiguration(): void
7474
$mismatches = [];
7575

7676
foreach ($validation['relations'] as $relationName) {
77-
$declaringClass = (new \ReflectionMethod($configured, $relationName))->getDeclaringClass()->getName();
77+
$declaringClass = (new \ReflectionMethod($configured, $relationName))->getDeclaringClass()
78+
->getName();
7879

7980
if ($declaringClass === $default) {
8081
$mismatches[] = sprintf(

src/config/workflows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
),
147147
],
148148
'guardrails' => [
149-
'boot' => env('DW_V2_GUARDRAILS_BOOT', 'warn'),
149+
'boot' => env('DW_V2_GUARDRAILS_BOOT', 'warn'),
150150
],
151151
'structural_limits' => [
152152
'pending_activity_count' => (int) Env::dw(

tests/Unit/Config/WorkflowsConfigTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
final class WorkflowsConfigTest extends TestCase
1010
{
1111
/**
12-
* Environment names that can influence config defaults in tests.
13-
* This includes retired names we explicitly clear so ambient alpha-era
14-
* exports do not leak into assertions that are meant to prove the final
15-
* released contract.
12+
* Environment names that can influence config defaults in tests.
13+
* This includes retired names we explicitly clear so ambient alpha-era
14+
* exports do not leak into assertions that are meant to prove the final
15+
* released contract.
1616
*
1717
* @var list<string>
1818
*/
@@ -144,9 +144,9 @@ public function testSerializerLegacyEnvironmentValueStillResolves(): void
144144
/**
145145
* A fresh installation must be able to boot with no v2 environment
146146
* variables set. The compatibility markers and history-export signing
147-
* keys default to null ("no marker required" / "unsigned"), the namespace
148-
* defaults to null ("no namespace isolation"), and the remaining v2 keys
149-
* keep their shipped defaults.
147+
* keys default to null ("no marker required" / "unsigned"), the namespace
148+
* defaults to null ("no namespace isolation"), and the remaining v2 keys
149+
* keep their shipped defaults.
150150
*/
151151
public function testV2SectionBootsWithoutEnvironmentOverrides(): void
152152
{

tests/Unit/Providers/WorkflowServiceProviderTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
use Workflow\V2\Enums\RunStatus;
2121
use Workflow\V2\Enums\TaskStatus;
2222
use Workflow\V2\Enums\TaskType;
23-
use Workflow\V2\Models\WorkflowCommand;
2423
use Workflow\V2\Jobs\RunWorkflowTask;
24+
use Workflow\V2\Models\WorkflowCommand;
2525
use Workflow\V2\Models\WorkflowInstance;
2626
use Workflow\V2\Models\WorkflowRun;
2727
use Workflow\V2\Models\WorkflowTask;
@@ -384,7 +384,10 @@ final class ValidatedProviderWorkflowInstance extends WorkflowInstance
384384

385385
public function runs(): HasMany
386386
{
387-
return $this->hasMany(\Workflow\V2\Support\ConfiguredV2Models::resolve('run_model', WorkflowRun::class), 'workflow_instance_id');
387+
return $this->hasMany(
388+
\Workflow\V2\Support\ConfiguredV2Models::resolve('run_model', WorkflowRun::class),
389+
'workflow_instance_id'
390+
);
388391
}
389392

390393
public function commands(): HasMany

0 commit comments

Comments
 (0)