@@ -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 | |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | * Set error reporting to maximum |
| 5 | 5 | */ |
| 6 | 6 | error_reporting( -1 ); |
| 7 | -ini_set('display_errors', '1'); |
|
| 7 | +ini_set( 'display_errors', '1' ); |
|
| 8 | 8 | |
| 9 | -date_default_timezone_set('UTC'); |
|
| 9 | +date_default_timezone_set( 'UTC' ); |
|
| 10 | 10 | |
| 11 | 11 | |
| 12 | 12 | /* |
| 13 | 13 | * Set locale settings to reasonable defaults |
| 14 | 14 | */ |
| 15 | -setlocale(LC_ALL, 'en_US.UTF-8'); |
|
| 16 | -setlocale(LC_NUMERIC, 'POSIX'); |
|
| 17 | -setlocale(LC_CTYPE, 'en_US.UTF-8'); |
|
| 18 | -setlocale(LC_TIME, 'POSIX'); |
|
| 15 | +setlocale( LC_ALL, 'en_US.UTF-8' ); |
|
| 16 | +setlocale( LC_NUMERIC, 'POSIX' ); |
|
| 17 | +setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
|
| 18 | +setlocale( LC_TIME, 'POSIX' ); |
|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | require_once 'TestHelper.php'; |