@@ -282,7 +282,7 @@ |
||
282 | 282 | return $this->router->generate($routePrefix . 'view'); |
283 | 283 | case 'userOwnView': |
284 | 284 | case 'adminOwnView': |
285 | - return $this->router->generate($routePrefix . 'view', [ 'own' => 1 ]); |
|
285 | + return $this->router->generate($routePrefix . 'view', ['own' => 1]); |
|
286 | 286 | case 'userDisplay': |
287 | 287 | case 'adminDisplay': |
288 | 288 | if ( |
@@ -256,7 +256,7 @@ |
||
256 | 256 | // access the logging channel |
257 | 257 | $logger = new Logger('mailer'); |
258 | 258 | $logger->pushHandler(new StreamHandler($logFile, Logger::INFO)); |
259 | - $logger->addError("Could not send message to: ${emailList} :: " . $this->message->toString()); |
|
259 | + $logger->addError("Could not send message to: ${emaillist} :: " . $this->message->toString()); |
|
260 | 260 | } |
261 | 261 | |
262 | 262 | $this->eventDispatcher->dispatch($event, MailerEvents::SEND_MESSAGE_FAILURE); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $requiredDependents = $this->dependencyHelper->getDependentExtensions($extension); |
56 | 56 | if (!empty($requiredDependents)) { |
57 | 57 | if ($input->isInteractive()) { |
58 | - $names = implode(', ', array_map(function ($dependent) { |
|
58 | + $names = implode(', ', array_map(function($dependent) { |
|
59 | 59 | return $dependent->getModname(); |
60 | 60 | }, $requiredDependents)); |
61 | 61 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | public function deleteUsers(GenericEvent $event): void |
56 | 56 | { |
57 | - $deletedUid = (int) $event->getSubject(); |
|
57 | + $deletedUid = (int)$event->getSubject(); |
|
58 | 58 | $this->mappingRepository->removeByZikulaId($deletedUid); |
59 | 59 | $this->verificationRepository->removeByZikulaId($deletedUid); |
60 | 60 | } |
@@ -120,7 +120,7 @@ |
||
120 | 120 | */ |
121 | 121 | public function delete(GenericEvent $event): void |
122 | 122 | { |
123 | - $userId = (int) $event->getSubject(); |
|
123 | + $userId = (int)$event->getSubject(); |
|
124 | 124 | |
125 | 125 | |
126 | 126 | $repo = $this->entityFactory->getRepository('route'); |
@@ -78,7 +78,7 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | $mapping = new AuthenticationMappingEntity(); |
81 | - $mapping->setUid((int) $user['uid']); |
|
81 | + $mapping->setUid((int)$user['uid']); |
|
82 | 82 | $mapping->setUname($user['uname']); |
83 | 83 | $mapping->setEmail($user['email']); |
84 | 84 | $mapping->setVerifiedEmail(true); |
@@ -152,7 +152,7 @@ |
||
152 | 152 | $templateParameters['all'] = 'csv' === $request->getRequestFormat() ? 1 : $request->query->getInt('all'); |
153 | 153 | $showOnlyOwnEntriesSetting = (bool)$request->query->getInt( |
154 | 154 | 'own', |
155 | - (int) $this->variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries') |
|
155 | + (int)$this->variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries') |
|
156 | 156 | ); |
157 | 157 | $showOnlyOwnEntriesSetting = $showOnlyOwnEntriesSetting ? 1 : 0; |
158 | 158 | $templateParameters['own'] = $showOnlyOwnEntriesSetting; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | echo "case 0"; |
72 | 72 | default: |
73 | 73 | } |
74 | -EOF |
|
74 | +eof |
|
75 | 75 | ]; |
76 | 76 | |
77 | 77 | // #2 switch with two cases, second with break |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | break; |
99 | 99 | default: |
100 | 100 | } |
101 | -EOF |
|
101 | +eof |
|
102 | 102 | ]; |
103 | 103 | |
104 | 104 | // #3 switch with two cases (second with break) and default |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | default: |
127 | 127 | echo "default case"; |
128 | 128 | } |
129 | -EOF |
|
129 | +eof |
|
130 | 130 | ]; |
131 | 131 | |
132 | 132 | // #4 switch with two cases (first without body, second with break) and default |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | default: |
154 | 154 | echo "default case"; |
155 | 155 | } |
156 | -EOF |
|
156 | +eof |
|
157 | 157 | ]; |
158 | 158 | |
159 | 159 | return $tests; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $this->userRepo |
77 | 77 | ->method('findByUids') |
78 | 78 | ->with($this->anything()) |
79 | - ->willReturnCallback(function (array $uids) { |
|
79 | + ->willReturnCallback(function(array $uids) { |
|
80 | 80 | $groups = new ArrayCollection(); |
81 | 81 | // getGroups returns [gid => $group, gid => $group, ...] |
82 | 82 | if (in_array(self::RANDOM_USER_ID, $uids, true)) { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $this->currentUserApi |
145 | 145 | ->method('get') |
146 | 146 | ->with($this->equalTo('uid')) |
147 | - ->willReturnCallback(static function () use ($userId) { |
|
147 | + ->willReturnCallback(static function() use ($userId) { |
|
148 | 148 | return $userId ?? Constant::USER_ID_ANONYMOUS; |
149 | 149 | }); |
150 | 150 | $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator); |