justfile: standardise test recipes to lint-php/lint-css/lint-js/test + add fix recipe

- Removed ambiguous aliases: phpstan, cs-check (both pointed to lint-php which
  also ran php-cs-fixer, making the names misleading)
- Removed syntax (php -l) — redundant, phpstan already catches parse errors
- Split lint-biome into lint-css and lint-js with correct paths
- Added lint meta-recipe that runs all three linters
- Added fix recipe: biome check --write (CSS/JS format+lint) + php-cs-fixer fix (PHP)
- Updated build-lint to delegate to lint-css + lint-js
This commit is contained in:
Pontoporeia
2026-07-05 10:50:42 +02:00
parent 786eef6df5
commit 34b5d3e585
7 changed files with 48 additions and 28 deletions
+12 -4
View File
@@ -41,9 +41,15 @@ class FormBootstrap
public static function adminOld(array &$formData): callable
{
return function (string $key, string $default = '') use (&$formData): string|array {
if (!isset($formData[$key])) return $default;
if (is_array($formData[$key])) return $formData[$key];
if ($formData[$key] === null) return $default;
if (!isset($formData[$key])) {
return $default;
}
if (is_array($formData[$key])) {
return $formData[$key];
}
if ($formData[$key] === null) {
return $default;
}
return htmlspecialchars((string)$formData[$key]);
};
}
@@ -159,7 +165,9 @@ class FormBootstrap
'helpBlocks' => $helpBlocks,
'oldFn' => self::adminOld($formData),
'withAutofocusFn' => function (string $field, array $attrs = []) use ($autofocusField): array {
if ($autofocusField === $field) $attrs['autofocus'] = true;
if ($autofocusField === $field) {
$attrs['autofocus'] = true;
}
return $attrs;
},