Passed
Branch master (030bd9)
by Aimeos
02:50
created
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.