Passed
Branch master (2076f7)
by Aimeos
02:20
created
lib/custom/src/MW/Translation/Zend2.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/custom/tests/MW/Translation/Zend2Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.