@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | - catch( \Exception $e ) { ; } // Discard errors, return original string instead |
|
| 77 | + catch( \Exception $e ) {; } // Discard errors, return original string instead |
|
| 78 | 78 | |
| 79 | 79 | return (string) $singular; |
| 80 | 80 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | - catch( \Exception $e ) { ; } // Discard errors, return original string instead |
|
| 112 | + catch( \Exception $e ) {; } // Discard errors, return original string instead |
|
| 113 | 113 | |
| 114 | 114 | if( $this->getPluralIndex( $number, $this->getLocale() ) > 0 ) { |
| 115 | 115 | return (string) $plural; |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | if( !isset( $this->translations[$domain] ) ) |
| 151 | 151 | { |
| 152 | - if ( !isset( $this->translationSources[$domain] ) ) |
|
| 152 | + if( !isset( $this->translationSources[$domain] ) ) |
|
| 153 | 153 | { |
| 154 | 154 | $msg = sprintf( 'No translation directory for domain "%1$s" available', $domain ); |
| 155 | 155 | throw new \Aimeos\MW\Translation\Exception( $msg ); |
@@ -74,7 +74,9 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | - catch( \Exception $e ) { ; } // Discard errors, return original string instead |
|
| 77 | + catch( \Exception $e ) |
|
| 78 | + { |
|
| 79 | +; } // Discard errors, return original string instead |
|
| 78 | 80 | |
| 79 | 81 | return (string) $singular; |
| 80 | 82 | } |
@@ -109,7 +111,9 @@ discard block |
||
| 109 | 111 | } |
| 110 | 112 | } |
| 111 | 113 | } |
| 112 | - catch( \Exception $e ) { ; } // Discard errors, return original string instead |
|
| 114 | + catch( \Exception $e ) |
|
| 115 | + { |
|
| 116 | +; } // Discard errors, return original string instead |
|
| 113 | 117 | |
| 114 | 118 | if( $this->getPluralIndex( $number, $this->getLocale() ) > 0 ) { |
| 115 | 119 | return (string) $plural; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | // test using the testfiles/case1/ka_GE file; lang: german |
| 99 | 99 | public function testAdapterGettext() |
| 100 | 100 | { |
| 101 | - $object = new \Aimeos\MW\Translation\Zend2( $this->translationSources, 'gettext', 'ka_GE', array('disableNotices'=>true) ); |
|
| 101 | + $object = new \Aimeos\MW\Translation\Zend2( $this->translationSources, 'gettext', 'ka_GE', array( 'disableNotices'=>true ) ); |
|
| 102 | 102 | |
| 103 | 103 | $this->assertEquals( 'Aktualisierung', $object->dt( 'testDomain', 'Update' ) ); |
| 104 | 104 | |