style: auto-fix 1340 phpcs PSR-12 violations via phpcbf; exclude MissingNamespace and SideEffects
This commit is contained in:
+3
-1
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* API Bootstrap - Common setup for API endpoints
|
||||
*
|
||||
@@ -54,7 +55,8 @@ $conn = Database::getConnection();
|
||||
* Output a JSON response, appending the rotated CSRF token so the
|
||||
* client-side lt.api interceptor can update window.CSRF_TOKEN.
|
||||
*/
|
||||
function apiRespond(array $data): void {
|
||||
function apiRespond(array $data): void
|
||||
{
|
||||
if (!empty($GLOBALS['_new_csrf_token'])) {
|
||||
$data['csrf_token'] = $GLOBALS['_new_csrf_token'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user