src/modules/Jira/IssueFile.php
/**
     * Check all files in $pathToFolder for expired notification period
     * and use $callback on expired files
     *
     * @param callable $callback                           must be a function that takes over IssueFile
     * @param null|int $firstTimeNotificationInterval in seconds
     * @param null|int $notificationInterval               in seconds
     */
Check all files in $pathToFolder for expired notification period
and use $callback on expired files

@param callable $callback                           must be a function that takes over IssueFile
@param null|int $firstTimeNotificationInterval in seconds
@param null|int $notificationInterval               in seconds
Check all files in $pathToFolder for expired notification period and use $callback on expired files @param callable $callback must be a function that takes over IssueFile @param null|int $firstTimeNotificationInterval in seconds @param null|int $notificationInterval in seconds
public static function filesCheck(
        $callback,
        $firstTimeNotificationInterval = null,
        $notificationInterval = null)
    {
        $firstTimeNotificationInterval = $firstTimeNotificationInterval ?: self::getFirstTimeNotificationInterval();
        $notificationInterval          = $notificationInterval ?: self::getNotificationInterval();
        $pathToFolder = self::getPathToFolder();
        foreach (glob("{$pathToFolder}*") as $pathToFile) {
            $issueFile = self::get(basename($pathToFile));
            if (self::isExpired($issueFile, $firstTimeNotificationInterval, $notificationInterval)) {
                $callback($issueFile);
            }
        }
    }
public static function filesCheck ( $ callback , $ firstTimeNotificationInterval = null , $ notificationInterval = null ) { $ firstTimeNotificationInterval = $ firstTimeNotificationInterval ? : self :: getFirstTimeNotificationInterval ( ) ; $ notificationInterval = $ notificationInterval ? : self :: getNotificationInterval ( ) ; $ pathToFolder = self :: getPathToFolder ( ) ; foreach ( glob ( " { $ pathToFolder } * " ) as $ pathToFile ) { $ issueFile = self :: get ( basename ( $ pathToFile ) ) ; if ( self :: isExpired ( $ issueFile , $ firstTimeNotificationInterval , $ notificationInterval ) ) { $ callback ( $ issueFile ) ; } } }
Check all files in $pathToFolder for expired notification period
 and use $callback on expired files
Check all files in $pathToFolder for expired notification period and use $callback on expired files