mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-05 13:39:42 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\GroupCenter;
|
||||
use Chill\MainBundle\Entity\PermissionsGroup;
|
||||
use Chill\MainBundle\Entity\RoleScope;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use LogicException;
|
||||
|
||||
/**
|
||||
* A trait to prepare user with permission. May be used
|
||||
@@ -47,9 +46,9 @@ trait PrepareUserTrait
|
||||
*
|
||||
* @param array $permissions an array of permissions, with key 'center' for the center and key 'attrs' for an array of ['role' => (string), 'scope' => (int)]
|
||||
*
|
||||
* @throws LogicException if the trait is not set up
|
||||
*
|
||||
* @return User
|
||||
*
|
||||
* @throws \LogicException if the trait is not set up
|
||||
*/
|
||||
protected function prepareUser(array $permissions)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user