Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/TimeMeasure/Measure.php

    r873 r874  
    2525  function TimeSegment($Base, $Level)
    2626  {
    27     return (pow($this->LevelReducing, $Level) * $Base);
     27    return pow($this->LevelReducing, $Level) * $Base;
    2828  }
    2929
    3030  function StatTableName($Level)
    3131  {
    32     if ($Level == 0) return ('Data');
    33       else return ('DataCache');
     32    if ($Level == 0) return 'Data';
     33      else return 'DataCache';
    3434  }
    3535
    3636  function AlignTime($Time, $TimeSegment)
    3737  {
    38     return (round(($Time - $this->ReferenceTime) / $TimeSegment) * $TimeSegment + $this->ReferenceTime);
     38    return round(($Time - $this->ReferenceTime) / $TimeSegment) * $TimeSegment + $this->ReferenceTime;
    3939  }
    4040
     
    124124  {
    125125    $Y = ($Y2 - $Y1) / ($X2 - $X1) * ($X - $X1) + $Y1;
    126     return ($Y);
     126    return $Y;
    127127  }
    128128
     
    203203      $NewValue['Avg'] = $NewValue['Avg'] / ($RightTime - $LeftTime);
    204204    }
    205     return ($NewValue);
     205    return $NewValue;
    206206  }
    207207
     
    228228      echo('AbsoluteRightTime: '.$AbsoluteRightTime.'('.TimeToMysqlDateTime($AbsoluteRightTime).')<br>');
    229229    }
    230     return (array('Left' => $AbsoluteLeftTime, 'Right' => $AbsoluteRightTime));
     230    return array('Left' => $AbsoluteLeftTime, 'Right' => $AbsoluteRightTime);
    231231  }
    232232
     
    239239      $Row = $DbResult->fetch_assoc();
    240240      $Row['Time'] = MysqlDateTimeToTime($Row['Time']);
    241       return (array($Row));
     241      return array($Row);
    242242    } else
    243243    {
     
    253253      }
    254254     // if ($Debug) print_r($Result);
    255       return ($Result);
     255      return $Result;
    256256    }
    257257  }
     
    266266      $Row = $DbResult->fetch_assoc();
    267267      $Row['Time'] = MysqlDateTimeToTime($Row['Time']);
    268       return (array($Row));
     268      return array($Row);
    269269    } else
    270270    {
     
    280280        array_push($Result, array('Time' => (MysqlDateTimeToTime($Row['Time']) - 10), 'Min' => 0, 'Avg' => 0, 'Max' => 0, 'Continuity' => 0));
    281281      }
    282       return ($Result);
     282      return $Result;
    283283    }
    284284  }
     
    338338      if ($this->Debug) print_r($Points);
    339339    } else $Points[] = array('Min' => 0, 'Avg' => 0, 'Max' => 0);
    340     return ($Points);
     340    return $Points;
    341341  }
    342342
Note: See TracChangeset for help on using the changeset viewer.