Fixed code style according to PSR-2

This commit is contained in:
MikChan 2020-03-19 01:15:25 +03:00 committed by GitHub
parent a5f5b44798
commit cb275d3e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ class UserClass
*/ */
public $abilities = []; public $abilities = [];
public function __construct(string $name, string $parent=null, array $abilities=[]) public function __construct(string $name, string $parent = null, array $abilities = [])
{ {
global $_shm_user_classes; global $_shm_user_classes;
@ -189,7 +189,8 @@ new UserClass("user", "base", [
Permissions::READ_PM => true, Permissions::READ_PM => true,
]); ]);
new UserClass("admin", "base", [ Permissions::CHANGE_SETTING => true, new UserClass("admin", "base", [
Permissions::CHANGE_SETTING => true,
Permissions::OVERRIDE_CONFIG => true, Permissions::OVERRIDE_CONFIG => true,
Permissions::BIG_SEARCH => true, Permissions::BIG_SEARCH => true,
@ -279,7 +280,6 @@ new UserClass("admin", "base", [ Permissions::CHANGE_SETTING => true,
Permissions::APPROVE_IMAGE => true, Permissions::APPROVE_IMAGE => true,
Permissions::APPROVE_COMMENT => true, Permissions::APPROVE_COMMENT => true,
]); ]);
new UserClass("hellbanned", "user", [ new UserClass("hellbanned", "user", [