@@ -161,7 +161,7 @@ |
||
| 161 | 161 | , $locale, $availableCatalogues[$locale]->all(), new Code\PhpLiteral($fallbackContent) |
| 162 | 162 | ); |
| 163 | 163 | |
| 164 | - return '<?php' . "\n\n" . $content; |
|
| 164 | + return '<?php'."\n\n".$content; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | |
@@ -65,10 +65,10 @@ |
||
| 65 | 65 | return NULL; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - $s = strtolower($header); // case insensitive |
|
| 69 | - $s = strtr($s, '_', '-'); // cs_CZ means cs-CZ |
|
| 70 | - rsort($langs); // first more specific |
|
| 71 | - preg_match_all('#(' . implode('|', $langs) . ')(?:-[^\s,;=]+)?\s*(?:;\s*q=([0-9.]+))?#', $s, $matches); |
|
| 68 | + $s = strtolower($header); // case insensitive |
|
| 69 | + $s = strtr($s, '_', '-'); // cs_CZ means cs-CZ |
|
| 70 | + rsort($langs); // first more specific |
|
| 71 | + preg_match_all('#('.implode('|', $langs).')(?:-[^\s,;=]+)?\s*(?:;\s*q=([0-9.]+))?#', $s, $matches); |
|
| 72 | 72 | |
| 73 | 73 | if (!$matches[0]) { |
| 74 | 74 | return NULL; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | if (!$this->session->isStarted() && $this->httpResponse->isSent()) { |
| 78 | 78 | trigger_error( |
| 79 | - "The advice of session locale resolver is required but the session has not been started and headers had been already sent. " . |
|
| 79 | + "The advice of session locale resolver is required but the session has not been started and headers had been already sent. ". |
|
| 80 | 80 | "Either start your sessions earlier or disabled the SessionResolver.", |
| 81 | 81 | E_USER_WARNING |
| 82 | 82 | ); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | return NULL; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - $short = array_map(function ($locale) { |
|
| 90 | + $short = array_map(function($locale) { |
|
| 91 | 91 | return substr($locale, 0, 2); |
| 92 | 92 | }, $translator->getAvailableLocales()); |
| 93 | 93 | |