Passed
Branch master (030bd9)
by Aimeos
02:50
created
lib/custom/tests/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,18 +4,18 @@
 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
-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';
Please login to merge, or discard this patch.
lib/custom/tests/MW/Mail/SwiftTest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@
 block discarded – undo
46 46
 	public function testClosure()
47 47
 	{
48 48
 		$mock = $this->mock;
49
-		$object = new \Aimeos\MW\Mail\Swift( function() use ( $mock ) { return $mock; } );
49
+		$object = new \Aimeos\MW\Mail\Swift( function() use ( $mock )
50
+		{
51
+return $mock; } );
50 52
 
51 53
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Mail\\Swift', $object );
52 54
 	}
Please login to merge, or discard this patch.
lib/custom/src/MW/Mail/Swift.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@  discard block
 block discarded – undo
32 32
 		if( $object instanceof \Closure ) {
33 33
 			$this->closure = $object;
34 34
 		} else {
35
-			$this->closure = function() use ( $object ) { return $object; };
35
+			$this->closure = function() use ( $object )
36
+			{
37
+return $object; };
36 38
 		}
37 39
 	}
38 40
 
@@ -67,6 +69,8 @@  discard block
 block discarded – undo
67 69
 	public function __clone()
68 70
 	{
69 71
 		$closure = $this->closure;
70
-		$this->closure = function() use ( $closure ) { return clone $closure(); };
72
+		$this->closure = function() use ( $closure )
73
+		{
74
+return clone $closure(); };
71 75
 	}
72 76
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/Mail/Message/Swift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
 	 */
157 157
 	public function setBody( $message )
158 158
 	{
159
-		$this->object->addPart($message, 'text/plain');
159
+		$this->object->addPart( $message, 'text/plain' );
160 160
 		return $this;
161 161
 	}
162 162
 
Please login to merge, or discard this patch.