@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function __construct($filename) |
| 61 | 61 | { |
| 62 | - if (! is_readable($filename)) { |
|
| 62 | + if (!is_readable($filename)) { |
|
| 63 | 63 | $this->error = 2; // file does not exist |
| 64 | 64 | return; |
| 65 | 65 | } |
@@ -137,15 +137,15 @@ discard block |
||
| 137 | 137 | $res .= ') : ('; |
| 138 | 138 | break; |
| 139 | 139 | case ';': |
| 140 | - $res .= str_repeat( ')', $p) . ';'; |
|
| 140 | + $res .= str_repeat(')', $p) . ';'; |
|
| 141 | 141 | $p = 0; |
| 142 | 142 | break; |
| 143 | 143 | default: |
| 144 | 144 | $res .= $ch; |
| 145 | 145 | } |
| 146 | 146 | } |
| 147 | - $res = str_replace('n','$n',$res); |
|
| 148 | - $res = str_replace('plural','$plural',$res); |
|
| 147 | + $res = str_replace('n', '$n', $res); |
|
| 148 | + $res = str_replace('plural', '$plural', $res); |
|
| 149 | 149 | return $res; |
| 150 | 150 | } |
| 151 | 151 | |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | { |
| 239 | 239 | // this should contains all strings separated by NULLs |
| 240 | 240 | $key = $single . chr(0) . $plural; |
| 241 | - if (! array_key_exists($key, $this->cache_translations)) { |
|
| 241 | + if (!array_key_exists($key, $this->cache_translations)) { |
|
| 242 | 242 | return ($number != 1) ? $plural : $single; |
| 243 | 243 | } |
| 244 | 244 | |