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

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Notify/Notify.php

    r868 r873  
    4646  function RegisterCheck($Name, $Callback)
    4747  {
    48     if(array_key_exists($Name, $this->Checks))
     48    if (array_key_exists($Name, $this->Checks))
    4949      throw new Exception('Check function "'.$Name.'" already registered.');
    5050    $this->Checks[$Name] = array('Callback' => $Callback);
     
    5353  function UnregisterCheck($Name)
    5454  {
    55     if(!array_key_exists($Name, $this->Checks))
     55    if (!array_key_exists($Name, $this->Checks))
    5656      throw new Exception('Check function "'.$Name.'" not registered.');
    5757    unset($this->Checks[$Name]);
     
    8888      'LEFT JOIN `User` ON `User`.`Id` = `NotifyUser`.`User` '.
    8989      'LEFT JOIN `Contact` ON `Contact`.`Id` = `NotifyUser`.`Contact`');
    90     while($User = $DbResult->fetch_assoc())
     90    while ($User = $DbResult->fetch_assoc())
    9191    {
    9292      $Output .= 'User '.$User['Name'].'<br/>';
     
    9494      $this->Database->update('NotifyUser', '`Id`='.$User['Id'], array('LastTime' => TimeToMysqlDateTime($Time)));
    9595
    96       if(($User['Category'] == CONTACT_CATEGORY_EMAIL) and ($Content != ''))
     96      if (($User['Category'] == CONTACT_CATEGORY_EMAIL) and ($Content != ''))
    9797      {
    9898        $Mail = new Mail();
     
    120120    }
    121121
    122     return($Output);
     122    return ($Output);
    123123  }
    124124
     
    178178      ' ORDER BY `Time` DESC LIMIT '.$Count;
    179179    $DbResult = $this->System->Database->query($sql);
    180     while($Line = $DbResult->fetch_assoc())
     180    while ($Line = $DbResult->fetch_assoc())
    181181    {
    182182      $Items[] = array
     
    195195    $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail'];
    196196    $RSS->Items = $Items;
    197     return($RSS->Generate());
     197    return ($RSS->Generate());
    198198  }
    199199}
Note: See TracChangeset for help on using the changeset viewer.