protected function isCurrent($expression, $current)
    {
        // if it's any
        if ($expression == Scheduler::ANY) {
            return true;
        }

        // if this is in a series
        if (is_array($expression)) {
            return in_array($current, $expression);
        }

        // if there's a direct match
        if ((string) $expression === (string) $current) {
            return true;
        }

        return false;
    }
protected function isCurrent($expression, $current)
    {
        // if it's any
        if ($expression == Scheduler::ANY) {
            return true;
        }

        // if this is in a series
        if (is_array($expression)) {
            return in_array($current, $expression);
        }

        // if there's a direct match
        if ((string) $expression === (string) $current) {
            return true;
        }

        return false;
    }
protected function isCurrent ( $ expression , $ current ) { // if it's any if ( $ expression == Scheduler :: ANY ) { return true ; } // if this is in a series if ( is_array ( $ expression ) ) { return in_array ( $ current , $ expression ) ; } // if there's a direct match if ( ( string ) $ expression === ( string ) $ current ) { return true ; } return false ; }
This method checks syntax for all scheduling components.

- If there's a direct match
- If it's an ANY match
- If the expression exists in the series

@param string $expression The expression to compare
@param string $current    The current value to compare against

@return bool
This method checks syntax for all scheduling components .