src/modules/Jira/IssueFile.php
/**
     * Check interval between current time and time of last notification
     * with $notificationInterval
     *
     * @param IssueFile $issueFile
     * @param int       $firstTimeNotificationInterval in seconds
     * @param int       $notificationInterval               in seconds
     *
     * @return bool
     */
Check interval between current time and time of last notification
with $notificationInterval

@param IssueFile $issueFile
@param int       $firstTimeNotificationInterval in seconds
@param int       $notificationInterval               in seconds

@return bool
Check interval between current time and time of last notification with $notificationInterval @param IssueFile $issueFile @param int $firstTimeNotificationInterval in seconds @param int $notificationInterval in seconds @return bool
protected static function isExpired(
        IssueFile $issueFile,
        $firstTimeNotificationInterval,
        $notificationInterval)
    {
        $isFirstIntervalExpired = time() - $issueFile->getLastCommentTime() >= $firstTimeNotificationInterval;
        $lastNotification = $issueFile->getLastNotification();
        $isNotificationIntervalExpired = time() - $lastNotification >= $notificationInterval;
        return $isFirstIntervalExpired && (!$lastNotification || $isNotificationIntervalExpired);
    }
protected static function isExpired ( IssueFile $ issueFile , $ firstTimeNotificationInterval , $ notificationInterval ) { $ isFirstIntervalExpired = time ( ) - $ issueFile -> getLastCommentTime ( ) >= $ firstTimeNotificationInterval ; $ lastNotification = $ issueFile -> getLastNotification ( ) ; $ isNotificationIntervalExpired = time ( ) - $ lastNotification >= $ notificationInterval ; return $ isFirstIntervalExpired && ( ! $ lastNotification || $ isNotificationIntervalExpired ) ; }
Check interval between current time and time of last notification
 with $notificationInterval
Check interval between current time and time of last notification with $notificationInterval