Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing spacing.

  • Loading branch information...
commit 8cae1e850adaafb319ebc3b64fab53b188e92830 1 parent 826dbc4
@markstory markstory authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 cake/libs/i18n.php
View
14 cake/libs/i18n.php
@@ -496,15 +496,15 @@ function __loadLocaleDefinition($file, $domain = null) {
continue;
}
- $mustEscape = array($escape.',',$escape.';',$escape.'<',$escape.'>',$escape.$escape);
- $replacements = array_map('crc32',$mustEscape);
- $value = str_replace($mustEscape,$replacements,$value);
- $value = explode(';',$value);
+ $mustEscape = array($escape . ',' , $escape . ';', $escape . '<', $escape . '>', $escape . $escape);
+ $replacements = array_map('crc32', $mustEscape);
+ $value = str_replace($mustEscape, $replacements, $value);
+ $value = explode(';', $value);
$_this->__escape = $escape;
foreach ($value as $i => $val) {
- $val = trim($val,'"');
- $val = preg_replace_callback('/(?:<)?(.[^>]*)(?:>)?/',array(&$this,'__parseLiteralValue'),$val);
- $val = str_replace($replacements,$mustEscape,$val);
+ $val = trim($val, '"');
+ $val = preg_replace_callback('/(?:<)?(.[^>]*)(?:>)?/', array(&$this, '__parseLiteralValue'), $val);
+ $val = str_replace($replacements, $mustEscape, $val);
$value[$i] = $val;
}
if (count($value) == 1) {
Please sign in to comment.
Something went wrong with that request. Please try again.