mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
src: style sweep
This commit is contained in:
parent
329d94de23
commit
f5323689f3
@ -311,5 +311,4 @@ class ConnectionsController extends ApiMutableModelControllerBase
|
||||
}
|
||||
return ['status' => 'failed'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -48,12 +48,12 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
$domain = $this->request->getPost('domain');
|
||||
$type = $this->request->getPost('type');
|
||||
$mdl = $this->getModel();
|
||||
$item = $mdl->getNodeByReference('dnsbl.'.$type);
|
||||
$item = $mdl->getNodeByReference('dnsbl.' . $type);
|
||||
|
||||
if ($item != null) {
|
||||
$remove = function($csv, $item) {
|
||||
$remove = function ($csv, $item) {
|
||||
$parts = explode(',', $csv);
|
||||
while(($i = array_search($item, $parts)) !== false) {
|
||||
while (($i = array_search($item, $parts)) !== false) {
|
||||
unset($parts[$i]);
|
||||
}
|
||||
return implode(',', $parts);
|
||||
|
||||
@ -59,7 +59,7 @@ class SPDField extends ArrayField
|
||||
if (!empty((string)$p2->spd) && !empty($phase1s[(string)$p2->ikeid])) {
|
||||
$reqid = !empty((string)$p2->reqid) ? (string)$p2->reqid : '0';
|
||||
foreach (explode(',', (string)$p2->spd) as $idx2 => $spd) {
|
||||
$spdkey = 'spd_' . (string)$p2->ikeid . '_' . (string)$idx . '_' . $idx2 ;
|
||||
$spdkey = 'spd_' . (string)$p2->ikeid . '_' . (string)$idx . '_' . $idx2;
|
||||
self::$legacyItems[$spdkey] = [
|
||||
'enabled' => '1',
|
||||
'reqid' => $reqid,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user