@@ -108,7 +108,7 @@ |
||
108 | 108 | Your registration at %site% associated with this email (%email%) has been deleted from the site. |
109 | 109 | This could have happened because you have delayed too long in confirming your email address, or because the administrator manually deleted your registration. |
110 | 110 | If you have any questions, please contact the site administrator or re-register. |
111 | -EOT |
|
111 | +eot |
|
112 | 112 | , ['%site%' => $siteName, '%email%' => $event->getUser()->getEmail()])); |
113 | 113 | try { |
114 | 114 | $this->mailer->send($email); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | <info>php %command.full_name% fabien</info> |
92 | 92 | |
93 | -EOT |
|
93 | +eot |
|
94 | 94 | ); |
95 | 95 | } |
96 | 96 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | 'icon' => 'fa-times', |
72 | 72 | ]) |
73 | 73 | ; |
74 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
74 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
75 | 75 | $supportedLocales = $this->localeApi->getSupportedLocales(); |
76 | 76 | $data = $event->getData(); |
77 | 77 | $labels = $data['labels']; |
@@ -110,7 +110,7 @@ |
||
110 | 110 | $imagine = new Imagine(); |
111 | 111 | $image = $imagine->open($avatarFilePath); |
112 | 112 | $image->resize(new Box($this->uploadConfig['max_width'], $this->uploadConfig['max_height'])) |
113 | - ->save($avatarFilePath); |
|
113 | + ->save($avatarFilePath); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | chmod($avatarFilePath, 0644); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $this->userRepo |
75 | 75 | ->method('findByUids') |
76 | 76 | ->with($this->anything()) |
77 | - ->willReturnCallback(function (array $uids) { |
|
77 | + ->willReturnCallback(function(array $uids) { |
|
78 | 78 | $groups = new ArrayCollection(); |
79 | 79 | // getGroups returns [gid => $group, gid => $group, ...] |
80 | 80 | if (in_array(self::RANDOM_USER_ID, $uids, true)) { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $this->currentUserApi |
68 | 68 | ->method('get') |
69 | 69 | ->with($this->equalTo('uid')) |
70 | - ->willReturnCallback(static function () use ($userId) { |
|
70 | + ->willReturnCallback(static function() use ($userId) { |
|
71 | 71 | return $userId ?? UsersConstant::USER_ID_ANONYMOUS; |
72 | 72 | }); |
73 | 73 | $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] |
52 | 52 | class PermissionCheck |
53 | 53 | { |
54 | - public function __construct(public string|array $value) |
|
54 | + public function __construct(public string | array $value) |
|
55 | 55 | { |
56 | 56 | } |
57 | 57 | } |
@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | |
46 | 46 | if (null !== $groupType) { |
47 | 47 | $qb->where('g.gtype = :gtype') |
48 | - ->setParameter('gtype', $groupType); |
|
48 | + ->setParameter('gtype', $groupType); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | if (null !== $excludedState) { |
52 | 52 | $qb->andWhere('g.state != :state') |
53 | - ->setParameter('state', $excludedState); |
|
53 | + ->setParameter('state', $excludedState); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $query = $qb->getQuery(); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | // already another group by that name. |
140 | 140 | if (is_numeric($excludedGroupId) && $excludedGroupId > 0) { |
141 | 141 | $qb->andWhere($qb->expr()->neq('g.gid', ':ggid')) |
142 | - ->setParameter('ggid', $excludedGroupId); |
|
142 | + ->setParameter('ggid', $excludedGroupId); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | $query = $qb->getQuery(); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | return 'excludedGid'; |
26 | 26 | } |
27 | 27 | |
28 | - public function getTargets(): string|array |
|
28 | + public function getTargets(): string | array |
|
29 | 29 | { |
30 | 30 | return self::CLASS_CONSTRAINT; |
31 | 31 | } |