Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
@@ -18,16 +18,17 @@ class ApiDeepResponseShapeAndEnvelopeContractTest extends FullSurfaceE2EContract
$status = $response->getStatusCode();
if ($status >= 500) {
$failures[] = "$method $uri crashed with $status: " . $response->getContent();
$failures[] = "$method $uri crashed with $status: ".$response->getContent();
continue;
}
if ($status >= 200 && $status < 300 && $response->getContent() !== '' && ! $this->isJsonString($response->getContent())) {
$failures[] = "$method $uri returned non-json successful API response: " . $response->getContent();
$failures[] = "$method $uri returned non-json successful API response: ".$response->getContent();
}
}
$this->assertSame([], $failures, "Successful API responses should be machine-readable JSON:\n" . implode("\n", $failures));
$this->assertSame([], $failures, "Successful API responses should be machine-readable JSON:\n".implode("\n", $failures));
}
public function test_collection_endpoints_expose_list_like_payloads_or_explicit_empty_state(): void
@@ -46,7 +47,8 @@ class ApiDeepResponseShapeAndEnvelopeContractTest extends FullSurfaceE2EContract
$status = $response->getStatusCode();
if (! in_array($status, [200, 204, 302, 401, 403, 404, 422], true)) {
$failures[] = "$method $uri returned unexpected $status for collection contract: " . $response->getContent();
$failures[] = "$method $uri returned unexpected $status for collection contract: ".$response->getContent();
continue;
}
@@ -62,12 +64,12 @@ class ApiDeepResponseShapeAndEnvelopeContractTest extends FullSurfaceE2EContract
|| array_key_exists('status', $payload));
if (! $hasCollectionShape) {
$failures[] = "$method $uri returned JSON but no recognizable collection/envelope keys: " . $response->getContent();
$failures[] = "$method $uri returned JSON but no recognizable collection/envelope keys: ".$response->getContent();
}
}
}
$this->assertSame([], $failures, "Collection routes need a stable list/envelope shape:\n" . implode("\n", $failures));
$this->assertSame([], $failures, "Collection routes need a stable list/envelope shape:\n".implode("\n", $failures));
}
/** @return list<LaravelRoute> */