Showing 816 of 816 total issues
No space found after comma in function call Open
Open
throw new OnlyAcceptCurrentOrgMemberException(Yii::t('organization' ,'This department is only accepted by members of the organization.'));
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks
Whitespace found at end of line Open
Open
* @var User
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks
Whitespace found at end of line Open
Open
public $defaultAction = 'show';
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
$organization->type == Organization::TYPE_ORGANIZATION ? (new RevokeOrganization)->name : (new RevokeDepartment)->name,
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
['organization' => $organization])) {
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks
No space found after comma in function call Open
Open
$this->departmentSetUpSuccessMessage = Yii::t('organization' ,'Department Set Up.');
- Exclude checks
The variable $gravatar_type is not named in camelCase. Open
Open
public function setUpOrganization($name, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '')
{
$accessChecker = Yii::$app->authManager;
if (!$accessChecker->checkAccess($this, (new SetUpOrganization)->name)) {
throw new InvalidParamException("You do not have permission to set up organization.");
- 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 $gravatar_type is not named in camelCase. Open
Open
public function createOrganization($name, $parent = null, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '')
{
return $this->createBaseOrganization($name, $parent, $nickname, $gravatar_type, $gravatar, $timezone, $description);
}
- 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 $gravatar_type is not named in camelCase. Open
Open
public function createDepartment($name, $parent = null, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '')
{
return $this->createBaseOrganization($name, $parent, $nickname, $gravatar_type, $gravatar, $timezone, $description, Organization::TYPE_DEPARTMENT);
}
- 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 $gravatar_type is not named in camelCase. Open
Open
public function setUpDepartment($name, $parent, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '')
{
if (!($parent instanceof $this->organizationClass)) {
throw new InvalidParamException('Invalid Parent Parameter.');
}
- 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 $gravatar_type is not named in camelCase. Open
Open
protected function createBaseOrganization($name, $parent = null, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '', $type = Organization::TYPE_ORGANIZATION)
{
$class = $this->organizationClass;
$profileConfig = [
'name' => $name,
- 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 method setting_unique is not named in camelCase. Open
Open
public function setting_unique($attribute, $params, $validator)
{
$value = (string)$this->$attribute;
if (empty($value)) {
return;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}