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

    r738 r873  
    1212    $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1');
    1313    $Row = $DbResult->fetch_array();
    14     return($Row[0]);
     14    return ($Row[0]);
    1515  }
    1616
     
    2020    $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1 AND gmlevel > 0');
    2121    $Row = $DbResult->fetch_array();
    22     return($Row[0]);
     22    return ($Row[0]);
    2323  }
    2424
     
    2828    $DbResult = $Database->query('SELECT COUNT(*) FROM account');
    2929    $Row = $DbResult->fetch_array();
    30     return($Row[0]);
     30    return ($Row[0]);
    3131  }
    3232
     
    3636    $DbResult = $Database->query('SELECT COUNT(*) FROM guild');
    3737    $Row = $DbResult->fetch_array();
    38     return($Row[0]);
     38    return ($Row[0]);
    3939  }
    4040
     
    4444    $DbResult = $Database->query('SELECT COUNT(*) FROM `characters`');
    4545    $Row = $DbResult->fetch_array();
    46     return($Row[0]);
     46    return ($Row[0]);
    4747  }
    4848
     
    5252    $DbResult = $Database->query('SELECT COUNT(*) FROM uptime');
    5353    $Row = $DbResult->fetch_array();
    54     return($Row[0]);
     54    return ($Row[0]);
    5555  }
    5656
    5757  function WoWEmulatorAvailability()
    5858  {
    59     if(CheckPortStatus('localhost', 8085)) return(100); else return(0);
     59    if (CheckPortStatus('localhost', 8085)) return (100); else return (0);
    6060  }
    6161
     
    6969    $Row = $DbResult->fetch_array();
    7070    $Value = $Row[0];
    71     return($Value);
     71    return ($Value);
    7272  }
    7373}
Note: See TracChangeset for help on using the changeset viewer.