modules/Settings/MailIntegration/models/Activate.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_MailIntegration_Activate_Model
- Exclude checks
The class Settings_MailIntegration_Activate_Model is not named in CamelCase. Open
Open
class Settings_MailIntegration_Activate_Model
{
/**
* Function checks if user is active..
*
- Read upRead up
- Exclude checks
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
Open
* @return bool
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function checks if user is active..
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function isActive(string $source): bool
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ('outlook' === $source) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param string $source
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'None' === \Config\Security::$cookieSameSite;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return \in_array('https://appsforoffice.microsoft.com', \Config\Security::$allowedScriptDomains) &&
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
false === \Config\Security::$cookieForceHttpOnly &&
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'parent' === \Config\Security::$csrfFrameBreakerWindow &&
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\in_array('https://ajax.aspnetcdn.com', \Config\Security::$allowedScriptDomains) &&
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return false;
- Exclude checks
Class name "Settings_MailIntegration_Activate_Model" is not in camel caps format Open
Open
class Settings_MailIntegration_Activate_Model
- Exclude checks