Completed
Push — master ( d382da...94ba74 )
by Filip
03:12
created
src/CatalogueCompiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LocaleResolver/AcceptHeaderResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LocaleResolver/SessionResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.