Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
+1 -2
View File
@@ -9,8 +9,7 @@ class ApiDocsService
{
public function __construct(
private ApplicationUrlService $urls,
) {
}
) {}
/**
* Bootstrap payload for the documentation SPA (replaces legacy swagger_ui / swagger_ui_public views).
+3 -3
View File
@@ -2,18 +2,18 @@
namespace App\Services\Docs;
use App\Controllers\DocsController;
use App\Services\ApplicationUrlService;
/**
* legacy parity: {@see \App\Controllers\DocsController::index} and
* legacy parity: {@see DocsController::index} and
* {@see \App\Controllers\View\DocsController::swagger} (multi-spec Swagger UI payload).
*/
class DocsCatalogService
{
public function __construct(
private ApplicationUrlService $urls,
) {
}
) {}
/**
* Hub metadata for the docs landing route (replaces Blade `docs/index`).
+10 -8
View File
@@ -29,22 +29,22 @@ class OpenApiRouteExporter
private function mergeRoute(array &$paths, Route $route): void
{
if (!$this->isDocumentableRoute($route)) {
if (! $this->isDocumentableRoute($route)) {
return;
}
$uriRaw = ltrim($route->uri(), '/');
if (str_starts_with($uriRaw, 'api/')) {
$uri = '/' . $uriRaw;
$uri = '/'.$uriRaw;
} elseif (str_starts_with($uriRaw, 'v1/')) {
$uri = '/api/' . $uriRaw;
$uri = '/api/'.$uriRaw;
} elseif ($uriRaw === 'v1') {
$uri = '/api/v1';
} else {
return;
}
if (!str_starts_with($uri, '/api/v1')) {
if (! str_starts_with($uri, '/api/v1')) {
return;
}
@@ -56,7 +56,7 @@ class OpenApiRouteExporter
$tag = $this->resolveTag($uri);
foreach ($methods as $method) {
$lower = strtolower($method);
if (!isset($paths[$uri][$lower])) {
if (! isset($paths[$uri][$lower])) {
$paths[$uri][$lower] = [
'tags' => [$tag],
'summary' => $this->summaryFromAction($route),
@@ -73,12 +73,12 @@ class OpenApiRouteExporter
private function isDocumentableRoute(Route $route): bool
{
$uri = ltrim($route->uri(), '/');
if (!str_starts_with($uri, 'api/v1') && !str_starts_with($uri, 'v1/')) {
if (! str_starts_with($uri, 'api/v1') && ! str_starts_with($uri, 'v1/')) {
return false;
}
$action = $route->getActionName();
if (!is_string($action)) {
if (! is_string($action)) {
return false;
}
@@ -120,11 +120,13 @@ class OpenApiRouteExporter
if (is_string($action) && str_contains($action, '@')) {
[$controller, $method] = explode('@', $action, 2);
$base = class_basename($controller);
return $base . '::' . $method;
return $base.'::'.$method;
}
if (is_string($action)) {
return $action;
}
return 'Endpoint';
}
}