Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/TimeMeasure/Measurement/MeasureClient.php

    r738 r873  
    88  {
    99    $DbResult = $this->Database->select('MeasureClient', '*');
    10     while($MeasureClient = $DbResult->fetch_assoc())
     10    while ($MeasureClient = $DbResult->fetch_assoc())
    1111    {
    1212      $DbResult2 = $this->Database->select('MeasureMethod', '*', 'Id='.$MeasureClient['Method']);
     
    1515      include_once(dirname(__FILE__).'/'.$MeasureMethod['MeasureClass'].'.php');
    1616      $MeasureMethod['MeasureClass'] .= 'Measurement';
    17       if(class_exists($MeasureMethod['MeasureClass']))
     17      if (class_exists($MeasureMethod['MeasureClass']))
    1818      {
    1919        $MeasureClass = new $MeasureMethod['MeasureClass']($this->System);
    20         if(method_exists($MeasureClass, $MeasureMethod['Method']))
     20        if (method_exists($MeasureClass, $MeasureMethod['Method']))
    2121        {
    22           if($MeasureClient['Parameter'] != '') $Value = $Measure->$MeasureMethod['Method']($MeasureClient['Parameter']);
     22          if ($MeasureClient['Parameter'] != '') $Value = $Measure->$MeasureMethod['Method']($MeasureClient['Parameter']);
    2323            else $Value = $MeasureClass->$MeasureMethod['Method']();
    2424          echo(file_get_contents('http://'.$MeasureClient['Host'].$MeasureClient['Path'].'/?M=Add&MeasureId='.$MeasureClient['MeasureId'].'&Value='.addslashes($Value)));
Note: See TracChangeset for help on using the changeset viewer.