original_string: protected static function has_expired(string $period, int $comparisondate) : bool {
          $dt = new \DateTime();
          $dt->setTimestamp($comparisondate);
          $dt->add(new \DateInterval($period));
  
          return (time() >= $dt->getTimestamp());
      }
code: protected static function has_expired(string $period, int $comparisondate) : bool {
          $dt = new \DateTime();
          $dt->setTimestamp($comparisondate);
          $dt->add(new \DateInterval($period));
  
          return (time() >= $dt->getTimestamp());
      }
code_tokens: protected static function has_expired ( string $ period , int $ comparisondate ) : bool { $ dt = new \ DateTime ( ) ; $ dt -> setTimestamp ( $ comparisondate ) ; $ dt -> add ( new \ DateInterval ( $ period ) ) ; return ( time ( ) >= $ dt -> getTimestamp ( ) ) ; }
docstring: Check whether a date is beyond the specified period.
  
  @param   string      $period The Expiry Period
  @param   int         $comparisondate The date for comparison
  @return  bool
docstring_tokens: Check whether a date is beyond the specified period .