rhosocial/yii2-organization

View on GitHub

Showing 816 of 816 total issues

No space found after comma in function call
Open

            throw new OnlyAcceptCurrentOrgMemberException(Yii::t('organization' ,'This department is only accepted by members of the organization.'));
Severity: Minor
Found in Organization.php by phpcodesniffer

Whitespace found at end of line
Open

 * 
Severity: Minor
Found in Member.php by phpcodesniffer

Whitespace found at end of line
Open

     * @var User 
Severity: Minor
Found in forms/SetUpForm.php by phpcodesniffer

Whitespace found at end of line
Open

     * 
Severity: Minor
Found in Organization.php by phpcodesniffer

Whitespace found at end of line
Open

     * 
Severity: Minor
Found in Organization.php by phpcodesniffer

Whitespace found at end of line
Open

    public $defaultAction = 'show';  

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                $organization->type == Organization::TYPE_ORGANIZATION ? (new RevokeOrganization)->name : (new RevokeDepartment)->name,
Severity: Minor
Found in UserOrganizationTrait.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                ['organization' => $organization])) {
Severity: Minor
Found in UserOrganizationTrait.php by phpcodesniffer

Whitespace found at end of line
Open

     * 

No space found after comma in function call
Open

            $this->departmentSetUpSuccessMessage = Yii::t('organization' ,'Department Set Up.');

The variable $gravatar_type is not named in camelCase.
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.");
Severity: Minor
Found in UserOrganizationTrait.php by phpmd

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

    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);
    }
Severity: Minor
Found in UserOrganizationTrait.php by phpmd

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

    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);
    }
Severity: Minor
Found in UserOrganizationTrait.php by phpmd

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

    public function setUpDepartment($name, $parent, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '')
    {
        if (!($parent instanceof $this->organizationClass)) {
            throw new InvalidParamException('Invalid Parent Parameter.');
        }
Severity: Minor
Found in UserOrganizationTrait.php by phpmd

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

    protected function createBaseOrganization($name, $parent = null, $nickname = '', $gravatar_type = 0, $gravatar = '', $timezone = 'UTC', $description = '', $type = Organization::TYPE_ORGANIZATION)
    {
        $class = $this->organizationClass;
        $profileConfig = [
            'name' => $name,
Severity: Minor
Found in UserOrganizationTrait.php by phpmd

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

    public function setting_unique($attribute, $params, $validator)
    {
        $value = (string)$this->$attribute;
        if (empty($value)) {
            return;
Severity: Minor
Found in forms/SettingsForm.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language