Ignore:
Timestamp:
Nov 20, 2020, 12:08:12 AM (4 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/CheckPorts.php

    r874 r887  
    33class ConfigCheckPorts extends NetworkConfigItem
    44{
    5   function CheckPortStatus($IP, $Port, $Protocol = 'tcp')
     5  function CheckPortStatus($IP, $Port, $Protocol = 'tcp'): int
    66  {
    77    $Timeout = 1;
     
    1717    return $State;
    1818  }
    19  
    20   function CheckPorts()
     19
     20  function CheckPorts(): void
    2121  {
    2222    $StartTime = time();
     
    7777  }
    7878
    79   function Run()
     79  function Run(): void
    8080  {
    8181    RepeatFunction(60, array($this, 'CheckPorts'));
Note: See TracChangeset for help on using the changeset viewer.