@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $expr->eq( |
182 | 182 | $qb->createNamedParameter($circleUniqueId), |
183 | 183 | $qb->createFunction( |
184 | - 'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
184 | + 'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
185 | 185 | ) |
186 | 186 | ) |
187 | 187 | ); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | } |
253 | 253 | |
254 | 254 | $expr = $qb->expr(); |
255 | - $pf = '`' . $this->default_select_alias . '`.'; |
|
255 | + $pf = '`'.$this->default_select_alias.'`.'; |
|
256 | 256 | |
257 | 257 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
258 | 258 | $qb->selectAlias('u.user_id', 'viewer_userid') |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | $expr->eq( |
265 | 265 | 'u.circle_id', |
266 | 266 | $qb->createFunction( |
267 | - 'SUBSTR(' . $pf . '`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH |
|
267 | + 'SUBSTR('.$pf.'`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH |
|
268 | 268 | . ')' |
269 | 269 | ) |
270 | 270 | ), |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | } |
288 | 288 | |
289 | 289 | $expr = $qb->expr(); |
290 | - $pf = '`' . $this->default_select_alias . '`.'; |
|
290 | + $pf = '`'.$this->default_select_alias.'`.'; |
|
291 | 291 | |
292 | 292 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
293 | 293 | $qb->selectAlias('o.user_id', 'owner_userid') |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | $expr->andX( |
299 | 299 | $expr->eq( |
300 | 300 | $qb->createFunction( |
301 | - 'SUBSTR(' . $pf . '`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH |
|
301 | + 'SUBSTR('.$pf.'`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH |
|
302 | 302 | . ')' |
303 | 303 | ) |
304 | 304 | , 'o.circle_id' |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | $qb->expr() |
360 | 360 | ->eq( |
361 | 361 | $qb->createFunction( |
362 | - 'SUBSTR(`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
362 | + 'SUBSTR(`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
363 | 363 | ), |
364 | 364 | $qb->createNamedParameter($circleUniqueId) |
365 | 365 | ) |
@@ -140,12 +140,12 @@ discard block |
||
140 | 140 | */ |
141 | 141 | protected function limitToShortenUniqueId(IQueryBuilder &$qb, $circleUniqueId, $length) { |
142 | 142 | $expr = $qb->expr(); |
143 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? '`' . $this->default_select_alias . '`.' : ''; |
|
143 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? '`'.$this->default_select_alias.'`.' : ''; |
|
144 | 144 | |
145 | 145 | $qb->andWhere( |
146 | 146 | $expr->eq( |
147 | 147 | $qb->createNamedParameter($circleUniqueId), |
148 | - $qb->createFunction('SUBSTR(' . $pf . '`unique_id`' . ', 1, ' . $length . ')') |
|
148 | + $qb->createFunction('SUBSTR('.$pf.'`unique_id`'.', 1, '.$length.')') |
|
149 | 149 | ) |
150 | 150 | ); |
151 | 151 | |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | $expr = $qb->expr(); |
199 | 199 | |
200 | 200 | if ($pf === '') { |
201 | - $p = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : ''; |
|
202 | - $qb->andWhere($expr->gte($p . 'level', $qb->createNamedParameter($level))); |
|
201 | + $p = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : ''; |
|
202 | + $qb->andWhere($expr->gte($p.'level', $qb->createNamedParameter($level))); |
|
203 | 203 | |
204 | 204 | return; |
205 | 205 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | if ($p === 'g' && !$this->leftJoinedNCGroupAndUser) { |
228 | 228 | continue; |
229 | 229 | } |
230 | - $orX->add($expr->gte($p . '.level', $qb->createNamedParameter($level))); |
|
230 | + $orX->add($expr->gte($p.'.level', $qb->createNamedParameter($level))); |
|
231 | 231 | } |
232 | 232 | |
233 | 233 | return $orX; |
@@ -242,12 +242,12 @@ discard block |
||
242 | 242 | protected function limitToMembersAndAlmost(IQueryBuilder &$qb) { |
243 | 243 | $expr = $qb->expr(); |
244 | 244 | |
245 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : ''; |
|
245 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : ''; |
|
246 | 246 | |
247 | 247 | $orX = $expr->orX(); |
248 | - $orX->add($expr->eq($pf . 'status', $qb->createNamedParameter(Member::STATUS_MEMBER))); |
|
249 | - $orX->add($expr->eq($pf . 'status', $qb->createNamedParameter(Member::STATUS_INVITED))); |
|
250 | - $orX->add($expr->eq($pf . 'status', $qb->createNamedParameter(Member::STATUS_REQUEST))); |
|
248 | + $orX->add($expr->eq($pf.'status', $qb->createNamedParameter(Member::STATUS_MEMBER))); |
|
249 | + $orX->add($expr->eq($pf.'status', $qb->createNamedParameter(Member::STATUS_INVITED))); |
|
250 | + $orX->add($expr->eq($pf.'status', $qb->createNamedParameter(Member::STATUS_REQUEST))); |
|
251 | 251 | |
252 | 252 | $qb->andWhere($orX); |
253 | 253 | } |
@@ -260,8 +260,8 @@ discard block |
||
260 | 260 | */ |
261 | 261 | private function limitToDBField(IQueryBuilder &$qb, $field, $value) { |
262 | 262 | $expr = $qb->expr(); |
263 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : ''; |
|
264 | - $qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value))); |
|
263 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : ''; |
|
264 | + $qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value))); |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | |
@@ -272,8 +272,8 @@ discard block |
||
272 | 272 | */ |
273 | 273 | private function limitToDBFieldOrGreater(IQueryBuilder &$qb, $field, $value) { |
274 | 274 | $expr = $qb->expr(); |
275 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : ''; |
|
276 | - $qb->andWhere($expr->gte($pf . $field, $qb->createNamedParameter($value))); |
|
275 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : ''; |
|
276 | + $qb->andWhere($expr->gte($pf.$field, $qb->createNamedParameter($value))); |
|
277 | 277 | } |
278 | 278 | |
279 | 279 | |
@@ -288,9 +288,9 @@ discard block |
||
288 | 288 | protected function limitToNCGroupUser(IQueryBuilder $qb, $userId = '') { |
289 | 289 | $expr = $qb->expr(); |
290 | 290 | |
291 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : ''; |
|
291 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : ''; |
|
292 | 292 | |
293 | - $and = $expr->andX($expr->eq($pf . 'group_id', 'ncgu.gid')); |
|
293 | + $and = $expr->andX($expr->eq($pf.'group_id', 'ncgu.gid')); |
|
294 | 294 | if ($userId !== '') { |
295 | 295 | $and->add($expr->eq('ncgu.uid', $qb->createNamedParameter($userId))); |
296 | 296 | } else { |
@@ -311,14 +311,14 @@ discard block |
||
311 | 311 | */ |
312 | 312 | protected function rightJoinCircles(IQueryBuilder &$qb) { |
313 | 313 | $expr = $qb->expr(); |
314 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias . '.' : ''; |
|
314 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->default_select_alias.'.' : ''; |
|
315 | 315 | |
316 | 316 | $qb->from(self::TABLE_CIRCLES, 'c') |
317 | 317 | ->andWhere( |
318 | 318 | $expr->eq( |
319 | - $pf . 'circle_id', |
|
319 | + $pf.'circle_id', |
|
320 | 320 | $qb->createFunction( |
321 | - 'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
321 | + 'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
322 | 322 | ) |
323 | 323 | ) |
324 | 324 | ); |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | } |
339 | 339 | |
340 | 340 | $expr = $qb->expr(); |
341 | - $pf = $this->default_select_alias . '.'; |
|
341 | + $pf = $this->default_select_alias.'.'; |
|
342 | 342 | |
343 | 343 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
344 | 344 | $qb->selectAlias('lc.type', 'circle_type') |
@@ -346,9 +346,9 @@ discard block |
||
346 | 346 | ->leftJoin( |
347 | 347 | $this->default_select_alias, CoreRequestBuilder::TABLE_CIRCLES, 'lc', |
348 | 348 | $expr->eq( |
349 | - $pf . 'circle_id', |
|
349 | + $pf.'circle_id', |
|
350 | 350 | $qb->createFunction( |
351 | - 'SUBSTR(`lc`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
351 | + 'SUBSTR(`lc`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
352 | 352 | ) |
353 | 353 | ) |
354 | 354 | ); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | $expr->eq('ncgu.gid', 'g.group_id'), |
382 | 382 | $expr->eq( |
383 | 383 | 'g.circle_id', $qb->createFunction( |
384 | - 'SUBSTR(' . $field . ', 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
384 | + 'SUBSTR('.$field.', 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
385 | 385 | ) |
386 | 386 | ) |
387 | 387 | ) |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : ''; |
77 | 77 | $qb->andWhere( |
78 | 78 | $expr->in( |
79 | - $pf . 'share_with', |
|
79 | + $pf.'share_with', |
|
80 | 80 | $qb->createNamedParameter($circleUniqueIds, IQueryBuilder::PARAM_STR_ARRAY) |
81 | 81 | ) |
82 | 82 | ); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $expr = $qb->expr(); |
94 | 94 | $pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : ''; |
95 | 95 | |
96 | - $qb->andWhere($expr->eq($pf . 'id', $qb->createNamedParameter($shareId))); |
|
96 | + $qb->andWhere($expr->eq($pf.'id', $qb->createNamedParameter($shareId))); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | |
@@ -142,8 +142,8 @@ discard block |
||
142 | 142 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
143 | 143 | $qb->andWhere( |
144 | 144 | $expr->orX( |
145 | - $expr->eq($pf . 'parent', $qb->createNamedParameter($circleId)), |
|
146 | - $expr->eq($pf . 'id', $qb->createNamedParameter($circleId)) |
|
145 | + $expr->eq($pf.'parent', $qb->createNamedParameter($circleId)), |
|
146 | + $expr->eq($pf.'id', $qb->createNamedParameter($circleId)) |
|
147 | 147 | ) |
148 | 148 | ); |
149 | 149 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : ''; |
166 | 166 | $qb->andWhere( |
167 | 167 | $expr->in( |
168 | - $pf . 'file_source', |
|
168 | + $pf.'file_source', |
|
169 | 169 | $qb->createNamedParameter($files, IQueryBuilder::PARAM_INT_ARRAY) |
170 | 170 | ) |
171 | 171 | ); |
@@ -198,13 +198,13 @@ discard block |
||
198 | 198 | $pf = ($qb->getType() === QueryBuilder::SELECT) ? 's.' : ''; |
199 | 199 | |
200 | 200 | if ($reShares === false) { |
201 | - $qb->andWhere($expr->eq($pf . 'uid_initiator', $qb->createNamedParameter($userId))); |
|
201 | + $qb->andWhere($expr->eq($pf.'uid_initiator', $qb->createNamedParameter($userId))); |
|
202 | 202 | } else { |
203 | 203 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
204 | 204 | $qb->andWhere( |
205 | 205 | $expr->orX( |
206 | - $expr->eq($pf . 'uid_owner', $qb->createNamedParameter($userId)), |
|
207 | - $expr->eq($pf . 'uid_initiator', $qb->createNamedParameter($userId)) |
|
206 | + $expr->eq($pf.'uid_owner', $qb->createNamedParameter($userId)), |
|
207 | + $expr->eq($pf.'uid_initiator', $qb->createNamedParameter($userId)) |
|
208 | 208 | ) |
209 | 209 | ); |
210 | 210 | } |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | |
227 | 227 | $tmpOrX = $expr->eq( |
228 | 228 | 's.share_with', |
229 | - $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')') |
|
229 | + $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')') |
|
230 | 230 | ); |
231 | 231 | |
232 | 232 | if ($shareId === -1) { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | 'c', CoreRequestBuilder::TABLE_MEMBERS, 'mo', $expr->andX( |
258 | 258 | $expr->eq( |
259 | 259 | 'mo.circle_id', |
260 | - $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')') |
|
260 | + $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')') |
|
261 | 261 | ), $expr->eq('mo.user_type', $qb->createNamedParameter(Member::TYPE_USER)), |
262 | 262 | $expr->eq('mo.level', $qb->createNamedParameter(Member::LEVEL_OWNER)) |
263 | 263 | ) |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | $expr->eq( |
308 | 308 | 'm.circle_id', |
309 | 309 | $qb->createFunction( |
310 | - 'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
310 | + 'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
311 | 311 | ) |
312 | 312 | ) |
313 | 313 | ); |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | $expr->andX( |
335 | 335 | $expr->eq( |
336 | 336 | 'g.circle_id', |
337 | - $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')') |
|
337 | + $qb->createFunction('SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')') |
|
338 | 338 | ), |
339 | 339 | $expr->gte('g.level', $qb->createNamedParameter(Member::LEVEL_MEMBER)) |
340 | 340 | ) |
@@ -217,7 +217,7 @@ |
||
217 | 217 | * @return string |
218 | 218 | */ |
219 | 219 | public function generateLinkRemoteURL($remote) { |
220 | - return $this->configService->generateRemoteHost($remote) . self::REMOTE_URL_LINK; |
|
220 | + return $this->configService->generateRemoteHost($remote).self::REMOTE_URL_LINK; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 |
@@ -481,23 +481,23 @@ |
||
481 | 481 | switch ($type) { |
482 | 482 | case Circle::CIRCLES_PERSONAL: |
483 | 483 | return $urlGen->getAbsoluteURL( |
484 | - $urlGen->imagePath(Application::APP_NAME, 'personal' . $ext) |
|
484 | + $urlGen->imagePath(Application::APP_NAME, 'personal'.$ext) |
|
485 | 485 | ); |
486 | 486 | case Circle::CIRCLES_CLOSED: |
487 | 487 | return $urlGen->getAbsoluteURL( |
488 | - $urlGen->imagePath(Application::APP_NAME, 'closed' . $ext) |
|
488 | + $urlGen->imagePath(Application::APP_NAME, 'closed'.$ext) |
|
489 | 489 | ); |
490 | 490 | case Circle::CIRCLES_SECRET: |
491 | 491 | return $urlGen->getAbsoluteURL( |
492 | - $urlGen->imagePath(Application::APP_NAME, 'secret' . $ext) |
|
492 | + $urlGen->imagePath(Application::APP_NAME, 'secret'.$ext) |
|
493 | 493 | ); |
494 | 494 | case Circle::CIRCLES_PUBLIC: |
495 | 495 | return $urlGen->getAbsoluteURL( |
496 | - $urlGen->imagePath(Application::APP_NAME, 'public' . $ext) |
|
496 | + $urlGen->imagePath(Application::APP_NAME, 'public'.$ext) |
|
497 | 497 | ); |
498 | 498 | } |
499 | 499 | |
500 | - return $urlGen->getAbsoluteURL($urlGen->imagePath(Application::APP_NAME, 'black_circle' . $ext)); |
|
500 | + return $urlGen->getAbsoluteURL($urlGen->imagePath(Application::APP_NAME, 'black_circle'.$ext)); |
|
501 | 501 | } |
502 | 502 | |
503 | 503 |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | try { |
280 | 280 | $client->post( |
281 | 281 | $this->generatePayloadDeliveryURL( |
282 | - $this->configService->getLocalAddress() . \OC::$WEBROOT |
|
282 | + $this->configService->getLocalAddress().\OC::$WEBROOT |
|
283 | 283 | ), [ |
284 | 284 | 'body' => $args, |
285 | 285 | 'timeout' => Application::CLIENT_TIMEOUT, |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @return string |
301 | 301 | */ |
302 | 302 | private function generatePayloadDeliveryURL($remote) { |
303 | - return $this->configService->generateRemoteHost($remote) . Application::REMOTE_URL_PAYLOAD; |
|
303 | + return $this->configService->generateRemoteHost($remote).Application::REMOTE_URL_PAYLOAD; |
|
304 | 304 | } |
305 | 305 | |
306 | 306 | |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | |
375 | 375 | } catch (Exception $e) { |
376 | 376 | $this->miscService->log( |
377 | - 'fail to send frame to ' . $link->getAddress() . ' - ' . $e->getMessage() |
|
377 | + 'fail to send frame to '.$link->getAddress().' - '.$e->getMessage() |
|
378 | 378 | ); |
379 | 379 | } |
380 | 380 | } |
@@ -296,7 +296,7 @@ |
||
296 | 296 | return; |
297 | 297 | } |
298 | 298 | |
299 | - $tmpContact = $this->userId . ':' . $ident; |
|
299 | + $tmpContact = $this->userId.':'.$ident; |
|
300 | 300 | try { |
301 | 301 | MiscService::getContactData($tmpContact); |
302 | 302 | } catch (Exception $e) { |
@@ -248,7 +248,7 @@ |
||
248 | 248 | $emailTemplate->addHeader(); |
249 | 249 | $emailTemplate->addHeading($subject, false); |
250 | 250 | $emailTemplate->addBodyText( |
251 | - htmlspecialchars($text) . '<br>' . htmlspecialchars($this->l10n->t('Click the button below to open it.')), $text |
|
251 | + htmlspecialchars($text).'<br>'.htmlspecialchars($this->l10n->t('Click the button below to open it.')), $text |
|
252 | 252 | ); |
253 | 253 | $emailTemplate->addBodyButton($this->l10n->t('Open »%s«', [htmlspecialchars($fileName)]), $link); |
254 | 254 |