Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Routerboard2.php

    r873 r874  
    1414  {
    1515    if (is_array($Commands)) $Commands = implode(';', $Commands);
    16     return (parent::Execute($Commands));
     16    return parent::Execute($Commands);
    1717  }
    1818
     
    2828      $List[substr($ResultLineParts[0], 0, -1)] = $ResultLineParts[1];
    2929    }
    30     return ($List);
     30    return $List;
    3131  }
    3232
     
    5252      $List[] = $ListItem;
    5353    }
    54     return ($List);
     54    return $List;
    5555  }
    5656
    5757  function GetSystemResource()
    5858  {
    59     return ($this->GetItem('/system resource print'));
     59    return $this->GetItem('/system resource print');
    6060  }
    6161
    6262  function GetFirewallFilterList()
    6363  {
    64     return ($this->GetList('/ip firewall nat', array('src-address', 'dst-address', 'bytes')));
     64    return $this->GetList('/ip firewall nat', array('src-address', 'dst-address', 'bytes'));
    6565  }
    6666
    6767  function GetDHCPServerLeasesList()
    6868  {
    69     return ($this->GetList('/ip dhcp-server lease', array('address', 'active-address', 'comment', 'lease-time', 'status', 'host-name')));
     69    return $this->GetList('/ip dhcp-server lease', array('address', 'active-address', 'comment', 'lease-time', 'status', 'host-name'));
    7070  }
    7171}
Note: See TracChangeset for help on using the changeset viewer.