Completed
Push — master ( 41fdc1...6665fc )
by Maxence
02:50
created
lib/Controller/FederatedController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
 	 * @return DataResponse
226 226
 	 */
227 227
 	private function federatedFail($reason) {
228
-		$this->miscService->log(2, 'federated fail: ' . $reason);
228
+		$this->miscService->log(2, 'federated fail: '.$reason);
229 229
 
230 230
 		return new DataResponse(
231 231
 			[
Please login to merge, or discard this patch.
lib/Service/MiscService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
 		ob_start();
228 228
 		echo($result);
229 229
 		$size = ob_get_length();
230
-		header('Content-Length: ' . $size);
230
+		header('Content-Length: '.$size);
231 231
 		ob_end_flush();
232 232
 		flush();
233 233
 	}
Please login to merge, or discard this patch.
lib/Db/CirclesRequestBuilder.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 * @param IQueryBuilder $qb
68 68
 	 * @param string $field
69 69
 	 */
70
-	protected function leftJoinGroups(IQueryBuilder &$qb, $field) {
70
+	protected function leftJoinGroups(IQueryBuilder & $qb, $field) {
71 71
 		$expr = $qb->expr();
72 72
 
73 73
 		$qb->leftJoin(
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 *
82 82
 	 * @param IQueryBuilder $qb
83 83
 	 */
84
-	protected function limitToNonPersonalCircle(IQueryBuilder &$qb) {
84
+	protected function limitToNonPersonalCircle(IQueryBuilder & $qb) {
85 85
 		$expr = $qb->expr();
86 86
 
87 87
 		$qb->andWhere(
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @throws ConfigNoCircleAvailableException
101 101
 	 */
102 102
 	protected function limitRegardingCircleType(
103
-		IQueryBuilder &$qb, $userId, $circleUniqueId, $type, $name
103
+		IQueryBuilder & $qb, $userId, $circleUniqueId, $type, $name
104 104
 	) {
105 105
 		$orTypes = $this->generateLimit($qb, $circleUniqueId, $userId, $type, $name);
106 106
 		if (sizeof($orTypes) === 0) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 *
131 131
 	 * @return array
132 132
 	 */
133
-	private function generateLimit(IQueryBuilder &$qb, $circleUniqueId, $userId, $type, $name) {
133
+	private function generateLimit(IQueryBuilder & $qb, $circleUniqueId, $userId, $type, $name) {
134 134
 		$orTypes = [];
135 135
 		array_push($orTypes, $this->generateLimitPersonal($qb, $userId, $type));
136 136
 		array_push($orTypes, $this->generateLimitSecret($qb, $circleUniqueId, $type, $name));
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 				$expr->eq(
183 183
 					$qb->createNamedParameter($circleUniqueId),
184 184
 					$qb->createFunction(
185
-						'SUBSTR(`c`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')'
185
+						'SUBSTR(`c`.`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')'
186 186
 					)
187 187
 				)
188 188
 			);
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
 	 * @param IQueryBuilder $qb
247 247
 	 * @param string $userId
248 248
 	 */
249
-	protected function leftJoinUserIdAsViewer(IQueryBuilder &$qb, $userId) {
249
+	protected function leftJoinUserIdAsViewer(IQueryBuilder & $qb, $userId) {
250 250
 
251 251
 		if ($qb->getType() !== QueryBuilder::SELECT) {
252 252
 			return;
253 253
 		}
254 254
 
255 255
 		$expr = $qb->expr();
256
-		$pf = '`' . $this->default_select_alias . '`.';
256
+		$pf = '`'.$this->default_select_alias.'`.';
257 257
 
258 258
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
259 259
 		$qb->selectAlias('u.user_id', 'viewer_userid')
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 				   $expr->eq(
266 266
 					   'u.circle_id',
267 267
 					   $qb->createFunction(
268
-						   'SUBSTR(' . $pf . '`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH
268
+						   'SUBSTR('.$pf.'`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH
269 269
 						   . ')'
270 270
 					   )
271 271
 				   ),
@@ -280,14 +280,14 @@  discard block
 block discarded – undo
280 280
 	 *
281 281
 	 * @param IQueryBuilder $qb
282 282
 	 */
283
-	protected function leftJoinOwner(IQueryBuilder &$qb) {
283
+	protected function leftJoinOwner(IQueryBuilder & $qb) {
284 284
 
285 285
 		if ($qb->getType() !== QueryBuilder::SELECT) {
286 286
 			return;
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
 block discarded – undo
298 298
 			   $expr->andX(
299 299
 				   $expr->eq(
300 300
 					   $qb->createFunction(
301
-						   'SUBSTR(' . $pf . '`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH
301
+						   'SUBSTR('.$pf.'`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH
302 302
 						   . ')'
303 303
 					   )
304 304
 					   , 'o.circle_id'
@@ -315,14 +315,14 @@  discard block
 block discarded – undo
315 315
 	 *
316 316
 	 * @param IQueryBuilder $qb
317 317
 	 */
318
-	protected function leftJoinCircle(IQueryBuilder &$qb) {
318
+	protected function leftJoinCircle(IQueryBuilder & $qb) {
319 319
 
320 320
 		if ($qb->getType() !== QueryBuilder::SELECT) {
321 321
 			return;
322 322
 		}
323 323
 
324 324
 		$expr = $qb->expr();
325
-		$pf = $this->default_select_alias . '.';
325
+		$pf = $this->default_select_alias.'.';
326 326
 
327 327
 		/** @noinspection PhpMethodParametersCountMismatchInspection */
328 328
 		$qb->selectAlias('lc.type', 'circle_type')
@@ -330,9 +330,9 @@  discard block
 block discarded – undo
330 330
 		   ->leftJoin(
331 331
 			   $this->default_select_alias, CoreRequestBuilder::TABLE_CIRCLES, 'lc',
332 332
 			   $expr->eq(
333
-				   $pf . 'circle_id',
333
+				   $pf.'circle_id',
334 334
 				   $qb->createFunction(
335
-					   'SUBSTR(`lc`.`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')'
335
+					   'SUBSTR(`lc`.`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')'
336 336
 				   )
337 337
 			   )
338 338
 		   );
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 			   $qb->expr()
460 460
 				  ->eq(
461 461
 					  $qb->createFunction(
462
-						  'SUBSTR(`unique_id`, 1, ' . Circle::UNIQUEID_SHORT_LENGTH . ')'
462
+						  'SUBSTR(`unique_id`, 1, '.Circle::UNIQUEID_SHORT_LENGTH.')'
463 463
 					  ),
464 464
 					  $qb->createNamedParameter($circleUniqueId)
465 465
 				  )
Please login to merge, or discard this patch.