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

    r738 r887  
    77class ModuleTimeMeasure extends AppModule
    88{
    9   function __construct($System)
     9  function __construct(System $System)
    1010  {
    1111    parent::__construct($System);
     
    1818  }
    1919
    20   function DoInstall()
     20  function DoInstall(): void
    2121  {
    2222  }
    2323
    24   function DoUnInstall()
     24  function DoUnInstall(): void
    2525  {
    2626  }
    2727
    28   function DoStart()
     28  function DoStart(): void
    2929  {
    30     $this->System->RegisterPage('grafy', 'PageMeasure');
    31     $this->System->RegisterPage(array('grafy', 'graf.png'), 'PageGraph');
    32     $this->System->RegisterPage(array('grafy', 'add.php'), 'PageMeasureAddValue');
     30    $this->System->RegisterPage(['grafy'], 'PageMeasure');
     31    $this->System->RegisterPage(['grafy', 'graf.png'], 'PageGraph');
     32    $this->System->RegisterPage(['grafy', 'add.php'], 'PageMeasureAddValue');
    3333    $this->System->FormManager->RegisterClass('Measure', array(
    3434      'Title' => 'Měření',
     
    5050  }
    5151
    52   function DoStop()
     52  function DoStop(): void
    5353  {
    5454  }
Note: See TracChangeset for help on using the changeset viewer.