@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | if (null !== $relative && null !== ($url = $this->aliasing->hasPublicAlias($relative, $e->getRequest()->attributes->get('site')))) { |
| 90 | - $rewrite = $absolutePrefix . $url . $suffix; |
|
| 90 | + $rewrite = $absolutePrefix.$url.$suffix; |
|
| 91 | 91 | $response->headers->set('location', $rewrite); |
| 92 | 92 | } |
| 93 | 93 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | $request->query->add($parser->parseUri(join('/', array_reverse($params)))); |
| 177 | 177 | |
| 178 | 178 | if (!$this->aliasing->hasInternalAlias($publicUrl, false)) { |
| 179 | - $this->rewriteRequest($event, $publicUrl . $queryString); |
|
| 179 | + $this->rewriteRequest($event, $publicUrl.$queryString); |
|
| 180 | 180 | |
| 181 | 181 | return; |
| 182 | 182 | } |
@@ -22,21 +22,21 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @see addAlias |
| 24 | 24 | */ |
| 25 | - const STRATEGY_OVERWRITE = 'overwrite'; |
|
| 25 | + const STRATEGY_OVERWRITE = 'overwrite'; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Keep existing aliases and do nothing |
| 29 | 29 | * |
| 30 | 30 | * @see addAlias |
| 31 | 31 | */ |
| 32 | - const STRATEGY_KEEP = 'keep'; |
|
| 32 | + const STRATEGY_KEEP = 'keep'; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Suffix existing aliases. |
| 36 | 36 | * |
| 37 | 37 | * @see addAlias |
| 38 | 38 | */ |
| 39 | - const STRATEGY_SUFFIX = 'suffix'; |
|
| 39 | + const STRATEGY_SUFFIX = 'suffix'; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @see AddAlias |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | $original = $publicUrl; |
| 294 | 294 | $i = 1; |
| 295 | 295 | do { |
| 296 | - $publicUrl = $original . '-' . ($i++); |
|
| 296 | + $publicUrl = $original.'-'.($i++); |
|
| 297 | 297 | } while ($this->hasInternalAlias($publicUrl, $site)); |
| 298 | 298 | |
| 299 | 299 | $alias = new UrlAlias($publicUrl, $internalUrl, $type, $site); |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | $this->isBatch = $isBatch; |
| 372 | 372 | $mgr = $this->manager; |
| 373 | 373 | $self = $this; |
| 374 | - return function () use ($mgr, $self) { |
|
| 374 | + return function() use ($mgr, $self) { |
|
| 375 | 375 | $mgr->flush(); |
| 376 | 376 | $self->setIsBatch(true); |
| 377 | 377 | }; |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | join( |
| 463 | 463 | ', ', |
| 464 | 464 | array_map( |
| 465 | - function ($v) use ($connection) { |
|
| 465 | + function($v) use ($connection) { |
|
| 466 | 466 | return $connection->quote($v, \PDO::PARAM_STR); |
| 467 | 467 | }, |
| 468 | 468 | $urls |