mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -58,7 +58,7 @@ class PermissionVoter extends ExtendedVoter
|
|||
protected function supports($attribute, $subject)
|
||||
{
|
||||
//Check if the attribute has the form @permission.operation
|
||||
if (preg_match('/^@\\w+\\.\\w+$/', $attribute)) {
|
||||
if (preg_match('#^@\\w+\\.\\w+$#', $attribute)) {
|
||||
$attribute = ltrim($attribute, '@');
|
||||
[$perm, $op] = explode('.', $attribute);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue