Method testEditAdvancedPermission
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function testEditAdvancedPermission()
{
$members = ['Users:1'];
$conditions = [
[
Missing class import via use statement (line '108', column '27'). Open
$this->assertFalse((new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->exists(), 'The record was not removed from the database ID: ' . self::$id);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '89', column '15'). Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '39', column '15'). Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '28', column '22'). Open
$recordModel = new \Settings_AdvancedPermission_Record_Model();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid using static access to class '\Settings_AdvancedPermission_Record_Model' in method 'testEditAdvancedPermission'. Open
$recordModel = \Settings_AdvancedPermission_Record_Model::getInstance(self::$id);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'testAddAdvancedPermission'. Open
$this->assertSame(\App\Json::encode($members), $row['members']);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'testAddAdvancedPermission'. Open
$this->assertSame(\App\Json::encode([]), $row['conditions']);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'testEditAdvancedPermission'. Open
$this->assertSame(\App\Json::encode($members), $row['members']);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'testEditAdvancedPermission'. Open
$this->assertSame(\App\Json::encode($conditions), $row['conditions']);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Settings_AdvancedPermission_Record_Model' in method 'testDelteAdvancedPermission'. Open
$recordModel = \Settings_AdvancedPermission_Record_Model::getInstance(self::$id);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Define a constant instead of duplicating this literal "action" 4 times. Open
$recordModel->set('action', 0);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "a_#__adv_permission" 3 times. Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "No record id: " 3 times. Open
$this->assertNotFalse($row, 'No record id: ' . self::$id);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "status" 4 times. Open
$recordModel->set('status', 0);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "tabid" 4 times. Open
$recordModel->set('tabid', 4);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "members" 4 times. Open
$recordModel->set('members', $members);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "conditions" 4 times. Open
$recordModel->set('conditions', []);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "priority" 4 times. Open
$recordModel->set('priority', 0);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Call to undeclared method \App\Db\Query::from
Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(0, $row['priority']);
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
$this->assertFalse((new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->exists(), 'The record was not removed from the database ID: ' . self::$id);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertNotFalse
Open
$this->assertNotFalse($row, 'No record id: ' . self::$id);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame('test edit', $row['name']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(1, $row['status']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(0, $row['status']);
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(0, $row['action']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertNotFalse
Open
$this->assertNotFalse($recordModel, 'No record id: ' . self::$id);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertNotFalse
Open
$this->assertNotFalse($row, 'No record id: ' . self::$id);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(\App\Json::encode($conditions), $row['conditions']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(4, $row['tabid']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(\App\Json::encode([]), $row['conditions']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(\App\Json::encode($members), $row['members']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertFalse
Open
$this->assertFalse((new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->exists(), 'The record was not removed from the database ID: ' . self::$id);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(4, $row['tabid']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(0, $row['priority']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame('test', $row['name']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(\App\Json::encode($members), $row['members']);
- Exclude checks
Call to undeclared method \Tests\Settings\AdvancedPermission::assertSame
Open
$this->assertSame(0, $row['action']);
- Exclude checks
Avoid variables with short names like $id. Configured minimum length is 3. Open
private static $id;
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('status', 0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'joincondition' => '',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'value' => 'ek',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('members', $members);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'fieldname' => 'salutationtype',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'operation' => 'is',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'value' => 'Mr.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $id;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('tabid', 4);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(0, $row['action']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$conditions = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'valuetype' => 'rawtext',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'fieldname' => 'firstname',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('conditions', []);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->save();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('priority', 0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(0, $row['status']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testEditAdvancedPermission()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Advanced permission id.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing advanced permission creation.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotFalse($row, 'No record id: ' . self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'groupid' => 0,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel = new \Settings_AdvancedPermission_Record_Model();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$members = ['Users:1'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$id = $recordModel->getId();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(\App\Json::encode($members), $row['members']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('name', 'test');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
[
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('action', 0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing advanced permission edition.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
[
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(\App\Json::encode($members), $row['members']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotFalse($recordModel, 'No record id: ' . self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(0, $row['priority']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing advanced permission deletion.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$members = ['Users:1', 'Groups:3', 'Roles:H6', 'RoleAndSubordinates:H34'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$row = (new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->one();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(0, $row['priority']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'groupjoin' => 'and',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'operation' => 'contains',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'valuetype' => 'rawtext',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'groupid' => 1,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('status', 1);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(0, $row['action']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(\App\Json::encode($conditions), $row['conditions']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('action', 0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('members', $members);
- Exclude checks
Line exceeds 120 characters; contains 182 characters Open
$this->assertFalse((new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->exists(), 'The record was not removed from the database ID: ' . self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'groupjoin' => null,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(4, $row['tabid']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(1, $row['status']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testDelteAdvancedPermission()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->save();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'joincondition' => '',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('test edit', $row['name']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertFalse((new \App\Db\Query())->from('a_#__adv_permission')->where(['id' => self::$id])->exists(), 'The record was not removed from the database ID: ' . self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('priority', 0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotFalse($row, 'No record id: ' . self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('name', 'test edit');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('conditions', $conditions);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testAddAdvancedPermission()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('test', $row['name']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(4, $row['tabid']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(\App\Json::encode([]), $row['conditions']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel = \Settings_AdvancedPermission_Record_Model::getInstance(self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->delete();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel = \Settings_AdvancedPermission_Record_Model::getInstance(self::$id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('tabid', 4);
- Exclude checks