YetiForceCompany/YetiForceCRM

View on GitHub
app/Conditions/RecordFields/DatetimeField.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

        return ($dateValue >= strtotime($startDate)) && ($dateValue <= strtotime($endDate));

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool

Spaces must be used to indent lines; tabs are not allowed
Open

        $dateValue = strtotime($this->getValue());

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

    public function operatorGreater()

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function operatorSmaller()

Spaces must be used to indent lines; tabs are not allowed
Open

     * Custom operator.

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    public function operatorCustom()

Spaces must be used to indent lines; tabs are not allowed
Open

        [$startDate, $endDate] = explode(',', $this->value);

Spaces must be used to indent lines; tabs are not allowed
Open

     * Smaller operator.

Spaces must be used to indent lines; tabs are not allowed
Open

        return strtotime($this->getValue()) > strtotime('now');

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

        return strtotime($this->getValue()) < strtotime('now');

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     * Greater operator.

Spaces must be used to indent lines; tabs are not allowed
Open

    }

There are no issues that match your filters.

Category
Status