mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
mvc: style sweep
This commit is contained in:
parent
19f32d435c
commit
6a4274a5e0
@ -27,7 +27,6 @@
|
||||
*/
|
||||
namespace OPNsense\Trust\Api;
|
||||
|
||||
|
||||
use OPNsense\Base\ApiControllerBase;
|
||||
use OPNsense\Base\UserException;
|
||||
use OPNsense\Core\Config;
|
||||
@ -239,7 +238,7 @@ class CrlController extends ApiControllerBase
|
||||
} else {
|
||||
$revoked_refs = [];
|
||||
if ($payload['crlmethod'] == 'internal') {
|
||||
for ($i=0 ; $i <= count(self::$status_codes); $i++) {
|
||||
for ($i = 0; $i <= count(self::$status_codes); $i++) {
|
||||
$fieldname = 'revoked_reason_' . $i;
|
||||
foreach (explode(',', $payload[$fieldname] ?? '') as $refid) {
|
||||
if (!empty($refid)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user