@@ -34,6 +34,6 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | protected function percentFormat() { |
| 37 | - return self::PERCENT . '%s'; |
|
| 37 | + return self::PERCENT.'%s'; |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class LocaleEnDk extends LocaleEn { |
| 13 | 13 | protected function percentFormat() { |
| 14 | - return '%s' . self::NBSP . self::PERCENT; |
|
| 14 | + return '%s'.self::NBSP.self::PERCENT; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function territory() { |
@@ -30,11 +30,11 @@ |
||
| 30 | 30 | return array( |
| 31 | 31 | self::GROUP => self::ARAB_GROUP, |
| 32 | 32 | self::DECIMAL => self::ARAB_DECIMAL, |
| 33 | - self::NEGATIVE => self::LTR_MARK . self::MINUS_SIGN, |
|
| 33 | + self::NEGATIVE => self::LTR_MARK.self::MINUS_SIGN, |
|
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | protected function percentFormat() { |
| 38 | - return '%s' . self::ARAB_PERCENT; |
|
| 38 | + return '%s'.self::ARAB_PERCENT; |
|
| 39 | 39 | } |
| 40 | 40 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class LocaleEnDe extends LocaleEn { |
| 13 | 13 | protected function percentFormat() { |
| 14 | - return '%s' . self::NBSP . self::PERCENT; |
|
| 14 | + return '%s'.self::NBSP.self::PERCENT; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function territory() { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function numberSymbols() { |
| 22 | 22 | return array( |
| 23 | - self::NEGATIVE => self::LTR_MARK . self::HYPHEN, |
|
| 23 | + self::NEGATIVE => self::LTR_MARK.self::HYPHEN, |
|
| 24 | 24 | ); |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | protected function percentFormat() { |
| 33 | - return '%s' . self::PERCENT; |
|
| 33 | + return '%s'.self::PERCENT; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @return string Translated text |
| 54 | 54 | */ |
| 55 | 55 | public function translateContext($context, $message) { |
| 56 | - $key = $context . chr(4) . $message; |
|
| 56 | + $key = $context.chr(4).$message; |
|
| 57 | 57 | if (isset($this->translations[$key])) { |
| 58 | 58 | return $this->translations[$key]; |
| 59 | 59 | } else { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @return string Translated text |
| 73 | 73 | */ |
| 74 | 74 | public function translatePlural($message1, $message2, $number) { |
| 75 | - $key = $message1 . chr(0) . $message2; |
|
| 75 | + $key = $message1.chr(0).$message2; |
|
| 76 | 76 | if (isset($this->translations[$key])) { |
| 77 | 77 | $plurals = explode(chr(0), $this->translations[$key]); |
| 78 | 78 | if (count($plurals) === $this->plural_rule->plurals()) { |
@@ -20,6 +20,6 @@ |
||
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function pluralRule() { |
| 23 | - throw new \DomainException('No plural rule defined for language ' . __CLASS__); |
|
| 23 | + throw new \DomainException('No plural rule defined for language '.__CLASS__); |
|
| 24 | 24 | } |
| 25 | 25 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | private function readMoWords($fp, $offset, $count, $pack) { |
| 73 | 73 | fseek($fp, $offset); |
| 74 | 74 | |
| 75 | - return unpack($pack . $count, fread($fp, $count * 4)); |
|
| 75 | + return unpack($pack.$count, fread($fp, $count * 4)); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | case 'php': |
| 48 | 48 | $translations = include $filename; |
| 49 | 49 | if (is_array($translations)) { |
| 50 | - $this->translations = $translations; |
|
| 51 | - } |
|
| 50 | + $this->translations = $translations; |
|
| 51 | + } |
|
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | } |