Ignore:
Timestamp:
Nov 20, 2020, 12:08:12 AM (3 years ago)
Author:
chronos
Message:
  • Added: Static types added to almost all classes, methods and function. Supported by PHP 7.4.
  • Fixed: Various found code issues.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigLinux/Generators/Latency.php

    r873 r887  
    33class ConfigLatency extends NetworkConfigItem
    44{
    5   function PingHosts()
     5  function PingHosts(): void
    66  {
    77    $Timeout = 2000; // ms
     
    2323
    2424    $Queries = array();
    25     foreach ($Output as $Index => $Line) 
     25    foreach ($Output as $Index => $Line)
    2626    {
    2727      $IP = substr($Line, 0, strPos($Line, ' '));
     
    3535  }
    3636
    37   function Run()
     37  function Run(): void
    3838  {
    3939    RepeatFunction(10 * 60, array($this, 'PingHosts'));
Note: See TracChangeset for help on using the changeset viewer.