@@ -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 | ) |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | return $qb->expr()->andX( |
| 314 | 314 | $expr->in( |
| 315 | 315 | $qb->createFunction( |
| 316 | - 'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
| 316 | + 'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
| 317 | 317 | ), |
| 318 | 318 | $qb->createFunction($subQb->getSQL()) |
| 319 | 319 | ) |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | return $qb->expr()->andX( |
| 352 | 352 | $expr->in( |
| 353 | 353 | $qb->createFunction( |
| 354 | - 'SUBSTR(`c`.`unique_id`, 1, ' . Circle::SHORT_UNIQUE_ID_LENGTH . ')' |
|
| 354 | + 'SUBSTR(`c`.`unique_id`, 1, '.Circle::SHORT_UNIQUE_ID_LENGTH.')' |
|
| 355 | 355 | ), |
| 356 | 356 | $qb->createFunction($subQb->getSQL()) |
| 357 | 357 | ) |