rhosocial/yii2-organization

View on GitHub

Showing 816 of 816 total issues

Line exceeds 120 characters; contains 332 characters
Open

    'If this option is enabled, all members of the organization (including subordinate departments) who have the "Set Up Organization" permission will not be able to set up a new organization.' => '若启用本选项,则本组织(含下属部门)中,所有具有“开设组织”权限的成员将无法开设新组织。',

Line exceeds 120 characters; contains 162 characters
Open

        if ($this->isDepartment() && !$this->parent->equals($this->topOrganization) && $this->isOnlyAcceptSuperiorOrgMember && !$this->parent->hasMember($user)) {
Severity: Minor
Found in Organization.php by phpcodesniffer

Line exceeds 120 characters; contains 223 characters
Open

            [['exclude_other_members', 'disallow_member_join_other', 'only_accept_current_org_member', 'only_accept_superior_org_member', 'exit_allow_withdraw_actively'], 'boolean', 'trueValue' => '1', 'falseValue' => '0'],
Severity: Minor
Found in forms/SettingsForm.php by phpcodesniffer

Line exceeds 120 characters; contains 124 characters
Open

            [$this->contentAttribute, 'default', 'value' => is_numeric($this->defaultLimit) ? (int)$this->defaultLimit : 50]
Severity: Minor
Found in SubordinateLimit.php by phpcodesniffer

Line exceeds 120 characters; contains 130 characters
Open

                $this->addConfirmText = Yii::t('organization', 'Are you sure to add this user to the organization / department?');

Line exceeds 120 characters; contains 129 characters
Open

                return Url::to(['remove-member', 'user' => $model->memberUser->getID(), 'org' => $model->organization->getID()]);

Line exceeds 120 characters; contains 155 characters
Open

                return Yii::$app->authManager->checkAccess($this->operator->getGUID(), (new ManageMember)->name, ['organization' => $model->organization]);

Line exceeds 120 characters; contains 136 characters
Open

            'data-confirm' => Yii::t('organization', 'Are you sure you want to remove this member from the organization / department?'),

Line exceeds 120 characters; contains 170 characters
Open

            Yii::$app->session->setFlash(Module::SESSION_KEY_MESSAGE, $this->joinFailedMessage . ' ' . Yii::t('organization', 'Your current IP address is not allowed.'));

Line exceeds 120 characters; contains 174 characters
Open

    'You can open up to {limit,plural,=1{only one organization} other{# organizations}}.' => '您可以开设最多{limit,plural,=1{仅一个组织} other{ # 个组织}}。',

Line exceeds 120 characters; contains 177 characters
Open

            Yii::$app->session->setFlash(Module::SESSION_KEY_MESSAGE, $this->joinFailedMessage . ($model->hasErrors('password') ? ' ' . $model->getFirstError('password') : ''));

Line exceeds 120 characters; contains 300 characters
Open

    'If you check "Only accept organization members", let the user try to join the organization where this department affiliated to first before joining this department.' => '如果您勾选“只接受组织成员”,则在加入本部门之前,先让用户尝试加入本部门所属组织。',

Line exceeds 120 characters; contains 269 characters
Open

    'If you only limit an address, such as {ip}, you can only enter the IP address itself, we will automatically fill "/32" at the end.' => '如果只限定某个地址,如 {ip},则只输入 IP 地址即可,我们会在提交后自动在结尾补齐“/32”。',

Line exceeds 120 characters; contains 230 characters
Open

                Yii::t('organization', 'If this option is enabled, all members of the organization (including subordinate departments) who have the "Set Up Organization" permission will not be able to set up a new organization.'),
Severity: Minor
Found in forms/SettingsForm.php by phpcodesniffer

Line exceeds 120 characters; contains 251 characters
Open

            'join_entrance_url' => Yii::t('organization', 'You can assign a unique code to the ' . ($this->organization->isOrganization() ? 'organization' : 'department') . ', and we will generate a unique entrance URL based on this code.') . "<br>" .
Severity: Minor
Found in forms/SettingsForm.php by phpcodesniffer

Line exceeds 120 characters; contains 142 characters
Open

                return Yii::$app->authManager->checkAccess($this->operator->getGUID(), (new ManageProfile)->name, ['organization' => $model]);

Line exceeds 120 characters; contains 133 characters
Open

                    Yii::$app->session->setFlash(OrganizationController::SESSION_KEY_RESULT, OrganizationController::RESULT_SUCCESS);

Line exceeds 120 characters; contains 122 characters
Open

            <?= Html::a(Yii::t('organization', 'Back to Organization List'), ['index'], ['class' => 'btn btn-primary']) ?>

Line exceeds 120 characters; contains 136 characters
Open

        echo ($keepMember) ? ("But he is still a member of it.\n") : ("At the same time, he was also removed from the organization.\n");

Line exceeds 120 characters; contains 129 characters
Open

                Yii::$app->session->setFlash(OrganizationController::SESSION_KEY_MESSAGE, $this->organizationSetUpFailedMessage);
Severity
Category
Status
Source
Language