@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function composeUri($params) |
| 28 | 28 | { |
| 29 | - $ret = []; |
|
| 29 | + $ret = []; |
|
| 30 | 30 | |
| 31 | 31 | foreach ($params as $param => $values) { |
| 32 | 32 | $internal = $param; |
@@ -82,19 +82,19 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | // don't rewrite this. |
| 84 | 84 | if (isset($parts['user']) || isset($parts['password'])) { |
| 85 | - $ret[$url] = $url; |
|
| 85 | + $ret[$url] = $url; |
|
| 86 | 86 | continue; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | $rewritten = ''; |
| 90 | 90 | if (isset($parts['scheme'])) { |
| 91 | - $rewritten .= $parts['scheme'] . ':'; |
|
| 91 | + $rewritten .= $parts['scheme'].':'; |
|
| 92 | 92 | } |
| 93 | 93 | if (isset($parts['host'])) { |
| 94 | - $rewritten .= '//' . $parts['host']; |
|
| 94 | + $rewritten .= '//'.$parts['host']; |
|
| 95 | 95 | } |
| 96 | 96 | if (isset($parts['port'])) { |
| 97 | - $rewritten .= ':' . $parts['port']; |
|
| 97 | + $rewritten .= ':'.$parts['port']; |
|
| 98 | 98 | } |
| 99 | 99 | if (isset($parts['path'])) { |
| 100 | 100 | if (isset($mappings[$parts['path']])) { |
@@ -106,13 +106,13 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | if (isset($parts['params'])) { |
| 109 | - $rewritten .= '/' . $parts['params']; |
|
| 109 | + $rewritten .= '/'.$parts['params']; |
|
| 110 | 110 | } |
| 111 | 111 | if (isset($parts['query'])) { |
| 112 | - $rewritten .= '?' . $parts['query']; |
|
| 112 | + $rewritten .= '?'.$parts['query']; |
|
| 113 | 113 | } |
| 114 | 114 | if (isset($parts['fragment'])) { |
| 115 | - $rewritten .= '#' . $parts['fragment']; |
|
| 115 | + $rewritten .= '#'.$parts['fragment']; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | $ret[$url] = $rewritten; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | foreach ($this->rewrite(array_keys($matchedGroups), $mode) as $from => $to) { |
| 199 | 199 | if (isset($matchedGroups[$from]) && $from !== $to) { |
| 200 | 200 | foreach ($matchedGroups[$from] as list($source, $prefix, $oldUrl, $suffix)) { |
| 201 | - $replacements[$source] = $prefix . $to . $suffix; |
|
| 201 | + $replacements[$source] = $prefix.$to.$suffix; |
|
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 90 | 90 | { |
| 91 | - $mode = TextTransformer::MODE_TO_INTERNAL | TextTransformer::MODE_TO_PUBLIC; |
|
| 91 | + $mode = TextTransformer::MODE_TO_INTERNAL|TextTransformer::MODE_TO_PUBLIC; |
|
| 92 | 92 | |
| 93 | 93 | if ($options['no_transform_public']) { |
| 94 | 94 | $mode ^= TextTransformer::MODE_TO_PUBLIC; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | // Order mapper by their priority |
| 34 | 34 | uasort( |
| 35 | 35 | $mappers, |
| 36 | - function ($a, $b) { |
|
| 36 | + function($a, $b) { |
|
| 37 | 37 | return (isset($b[0]['priority']) ? $b[0]['priority'] : 0) - (isset($a[0]['priority']) ? $a[0]['priority'] : 0); |
| 38 | 38 | } |
| 39 | 39 | ); |
@@ -54,9 +54,9 @@ |
||
| 54 | 54 | $modeChoiceOptions = [ |
| 55 | 55 | 'choice_translation_domain' => 'admin', |
| 56 | 56 | 'choices' => [ |
| 57 | - 'admin.alias_overview.mode_' . UrlAlias::ALIAS => UrlAlias::ALIAS, |
|
| 58 | - 'admin.alias_overview.mode_' . UrlAlias::MOVE => UrlAlias::MOVE, |
|
| 59 | - 'admin.alias_overview.mode_' . UrlAlias::REWRITE => UrlAlias::REWRITE, |
|
| 57 | + 'admin.alias_overview.mode_'.UrlAlias::ALIAS => UrlAlias::ALIAS, |
|
| 58 | + 'admin.alias_overview.mode_'.UrlAlias::MOVE => UrlAlias::MOVE, |
|
| 59 | + 'admin.alias_overview.mode_'.UrlAlias::REWRITE => UrlAlias::REWRITE, |
|
| 60 | 60 | ], |
| 61 | 61 | ]; |
| 62 | 62 | |