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/SpeedTest/SpeedTest.php

    r874 r887  
    1414class ModuleSpeedTest extends AppModule
    1515{
    16   function __construct($System)
     16  function __construct(System $System)
    1717  {
    1818    parent::__construct($System);
     
    2525  }
    2626
    27   function DoStart()
     27  function DoStart(): void
    2828  {
    2929    $this->System->Pages['speedtest'] = 'PageSpeedTest';
     
    3333class PageSpeedTest extends Page
    3434{
    35   var $FullTitle = 'Test rychlosti připojení';
    36   var $ShortTitle = 'Test rychlosti';
    37   var $ParentClass = 'PagePortal';
     35  function __construct(System $System)
     36  {
     37    parent::__construct($System);
     38    $this->FullTitle = 'Test rychlosti připojení';
     39    $this->ShortTitle = 'Test rychlosti';
     40    $this->ParentClass = 'PagePortal';
     41  }
    3842
    39   function Show()
     43  function Show(): string
    4044  {
    4145    if (count($this->System->PathItems) > 1)
     
    4751  }
    4852
    49   function ShowDownload()
     53  function ShowDownload(): void
    5054  {
    5155    global $config;
     
    5458  }
    5559
    56   function ShowMain()
     60  function ShowMain(): string
    5761  {
    5862    global $config;
Note: See TracChangeset for help on using the changeset viewer.