Passed
Push — master ( c05588...b38d31 )
by Philipp
04:34
created
src/Tongue.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,10 @@
 block discarded – undo
209 209
     {
210 210
        $bcp47 = data_get($locales, "{$locale}.regional");
211 211
 
212
-       if(! $bcp47) return $locale; //locale is the "minimum" of BCP 47
212
+       if(! $bcp47) {
213
+           return $locale;
214
+       }
215
+       //locale is the "minimum" of BCP 47
213 216
 
214 217
        //regional value needs to replace underscore
215 218
        return str_replace('_', '-', $bcp47);
Please login to merge, or discard this patch.