mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/frr: style sweep
This commit is contained in:
+3
-3
@@ -91,7 +91,7 @@ class DiagnosticsController extends ApiControllerBase
|
||||
public function searchGeneralroute4Action(): array
|
||||
{
|
||||
$records = [];
|
||||
foreach($this->getInformation("general", "route4", "json")['response'] as $routes) {
|
||||
foreach ($this->getInformation('general', 'route4', 'json')['response'] as $routes) {
|
||||
foreach ($routes as $route) {
|
||||
foreach ($route['nexthops'] as $nexthop) {
|
||||
$nexthop = array_merge($route, $nexthop);
|
||||
@@ -113,7 +113,7 @@ class DiagnosticsController extends ApiControllerBase
|
||||
public function searchGeneralroute6Action(): array
|
||||
{
|
||||
$records = [];
|
||||
foreach($this->getInformation("general", "route6", "json")['response'] as $routes) {
|
||||
foreach ($this->getInformation('general', 'route6', 'json')['response'] as $routes) {
|
||||
foreach ($routes as $route) {
|
||||
foreach ($route['nexthops'] as $nexthop) {
|
||||
$nexthop = array_merge($route, $nexthop);
|
||||
@@ -258,7 +258,7 @@ class DiagnosticsController extends ApiControllerBase
|
||||
{
|
||||
$records = [];
|
||||
$payload = $this->getInformation("ospf", "route", "json")['response'];
|
||||
foreach($payload as $net => $network) {
|
||||
foreach ($payload as $net => $network) {
|
||||
if (empty($network['nexthops'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user