Passed
Push — master ( bfa811...05badb )
by Aimeos
02:11
created
lib/custom/src/MW/Translation/Gettext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 	{
122 122
 		if( !isset( $this->files[$domain] ) )
123 123
 		{
124
-			if ( !isset( $this->sources[$domain] ) )
124
+			if( !isset( $this->sources[$domain] ) )
125 125
 			{
126 126
 				$msg = sprintf( 'No translation directory for domain "%1$s" available', $domain );
127 127
 				throw new \Aimeos\MW\Translation\Exception( $msg );
Please login to merge, or discard this patch.
lib/custom/src/MW/Translation/File/Mo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 */
169 169
 	protected function readInt( $byteOrder )
170 170
 	{
171
-		if( ( $content = $this->read( 4 )) === false ) {
171
+		if( ( $content = $this->read( 4 ) ) === false ) {
172 172
 			return false;
173 173
 		}
174 174
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 * @param integer $bytes Number of bytes to read
197 197
 	 * @return string|boolean Read bytes or false on failure
198 198
 	 */
199
-	protected function read($bytes)
199
+	protected function read( $bytes )
200 200
 	{
201 201
 		$data = substr( $this->str, $this->pos, $bytes );
202 202
 		$this->seekto( $this->pos + $bytes );
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 	 * @param integer $pos Number of bytes to move
212 212
 	 * @return integer New file position in bytes
213 213
 	 */
214
-	protected function seekto($pos)
214
+	protected function seekto( $pos )
215 215
 	{
216 216
 		$this->pos = ( $this->strlen < $pos ? $this->strlen : $pos );
217 217
 		return $this->pos;
Please login to merge, or discard this patch.
lib/custom/tests/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
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 9
 
10 10
 /*
11 11
  * Set locale settings to reasonable defaults
12 12
  */
13
-setlocale(LC_ALL, 'en_US.UTF-8');
14
-setlocale(LC_NUMERIC, 'POSIX');
15
-setlocale(LC_CTYPE, 'en_US.UTF-8');
16
-setlocale(LC_TIME, 'POSIX');
13
+setlocale( LC_ALL, 'en_US.UTF-8' );
14
+setlocale( LC_NUMERIC, 'POSIX' );
15
+setlocale( LC_CTYPE, 'en_US.UTF-8' );
16
+setlocale( LC_TIME, 'POSIX' );
17 17
 
18 18
 
19 19
 require_once 'TestHelper.php';
Please login to merge, or discard this patch.