Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
Location:
trunk/Modules/NetworkConfigRouterOS/Generators
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/AddressPortability.php

    r873 r874  
    1111{
    1212  $TimeParts = explode(':', $Time);
    13   return ($TimeParts[0] * 3600 + $TimeParts[1] * 60 + $TimeParts[2]);
     13  return $TimeParts[0] * 3600 + $TimeParts[1] * 60 + $TimeParts[2];
    1414}
    1515
  • trunk/Modules/NetworkConfigRouterOS/Generators/Common.php

    r873 r874  
    99  {
    1010    $DbRow = $DbResult->fetch_assoc();
    11     return ($DbRow['Id']);
     11    return $DbRow['Id'];
    1212  } else
    1313  {
    1414    $DbResult = $Database->query('INSERT INTO `NetworkMark` (`Comment`) VALUES ("'.$Comment.'")');
    15     return ($Database->insert_id);
     15    return $Database->insert_id;
    1616  }
    1717}
     
    2525  {
    2626    $DbRow = $DbResult->fetch_assoc();
    27     return ($DbRow['Id']);
     27    return $DbRow['Id'];
    2828  } else
    2929  {
    3030    $DbResult = $Database->query('INSERT INTO `NetworkMangleSubgroup` (`AddressRange`) VALUES ("'.$AddressRange.'")');
    31     return ($Database->insert_id);
     31    return $Database->insert_id;
    3232  }
    3333}
  • trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php

    r873 r874  
    7474    if (substr($Value, -3, 3) == "Mbp") $Value = substr($Value, 0, -3); // without Mbp unit   
    7575    if (substr($Value, -1, 1) == "M") $Value = substr($Value, 0, -1); // without M unit
    76     return ($Value);
     76    return $Value;
    7777  }
    7878
Note: See TracChangeset for help on using the changeset viewer.