Auth/UsrAuth.php
The variable $user_group is not named in camelCase. Open
Open
public static function hasAccess($groups)
{
$user_group = static::getUser()->getGroup();
return $groups === ($user_group & $groups);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_group is not named in camelCase. Open
Open
public static function hasAccess($groups)
{
$user_group = static::getUser()->getGroup();
return $groups === ($user_group & $groups);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}