style: auto-fix 1340 phpcs PSR-12 violations via phpcbf; exclude MissingNamespace and SideEffects
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
// Apply rate limiting
|
||||
require_once dirname(__DIR__) . '/middleware/RateLimitMiddleware.php';
|
||||
RateLimitMiddleware::apply('api');
|
||||
@@ -51,7 +52,7 @@ if (!$operationType || !in_array($operationType, $validOperationTypes, true) ||
|
||||
}
|
||||
|
||||
// Validate ticket IDs: must be non-empty numeric strings (allows leading zeros)
|
||||
$ticketIds = array_values(array_filter(array_map(function($id) {
|
||||
$ticketIds = array_values(array_filter(array_map(function ($id) {
|
||||
$s = trim((string)$id);
|
||||
return (ctype_digit($s) && (int)$s > 0) ? $s : null;
|
||||
}, $ticketIds)));
|
||||
|
||||
Reference in New Issue
Block a user