YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/MailIntegration/models/Activate.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Settings_MailIntegration_Activate_Model

The class Settings_MailIntegration_Activate_Model is not named in CamelCase.
Open

class Settings_MailIntegration_Activate_Model
{
    /**
     * Function checks if user is active..
     *

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

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

     */

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

     * Function checks if user is active..

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

    public static function isActive(string $source): bool

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

        if ('outlook' === $source) {

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

    /**

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

     * @param string $source

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

                'None' === \Config\Security::$cookieSameSite;

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 \in_array('https://appsforoffice.microsoft.com', \Config\Security::$allowedScriptDomains) &&

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

                false === \Config\Security::$cookieForceHttpOnly &&

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

                'parent' === \Config\Security::$csrfFrameBreakerWindow &&

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

     *

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

                \in_array('https://ajax.aspnetcdn.com', \Config\Security::$allowedScriptDomains) &&

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 false;

Class name "Settings_MailIntegration_Activate_Model" is not in camel caps format
Open

class Settings_MailIntegration_Activate_Model

There are no issues that match your filters.

Category
Status