Ignore:
Timestamp:
Apr 7, 2020, 12:55:39 AM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

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

    r47 r55  
    3434function HumanDateTimeToTime($DateTime)
    3535{
    36   if($DateTime == '') return(NULL);
     36  if ($DateTime == '') return NULL;
    3737  $DateTime = str_replace('. ', '.', $DateTime);
    3838  $Parts = explode(' ', $DateTime);
     
    4444  } else $TimeParts = array(0, 0, 0);
    4545  $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[0], $DateParts[2]);
    46   return($Result);
     46  return $Result;
    4747}
    4848
    4949function HumanDateToTime($Date)
    5050{
    51   if($Date == '') return(NULL);
    52   return(HumanDateTimeToTime($Date.' 0:0:0'));
     51  if ($Date == '') return NULL;
     52  return HumanDateTimeToTime($Date.' 0:0:0');
    5353}
    5454
     
    6060  $ret = html_entity_decode($str, ENT_COMPAT, 'UTF-8');
    6161  $p2 = 0;
    62   for(;;)
     62  for (;;)
    6363  {
    6464    $p = strpos($ret, $prefix, $p2);
     
    105105function is_alpha($Char)
    106106{
    107   return ((($Char >= 'a') and ($Char <= 'z')) or (($Char >= 'A') and ($Char <= 'Z')));
     107  return (($Char >= 'a') and ($Char <= 'z')) or (($Char >= 'A') and ($Char <= 'Z'));
    108108}
    109109
     
    116116{
    117117  $Result = '';
    118   for(;;)
     118  for (;;)
    119119  {
    120120    $Pos = strpos($Text, $Needle);
     
    142142{
    143143  $Result = '';
    144   for(;;)
     144  for (;;)
    145145  {
    146146    $Pos = strpos($Text, $Needle);
     
    432432      $Result = 1;
    433433    } else $Result = 0;
    434     return($Result);
    435   }
    436 }
     434    return $Result;
     435  }
     436}
Note: See TracChangeset for help on using the changeset viewer.