@@ -46,7 +46,9 @@ |
||
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 | } |
@@ -32,7 +32,9 @@ discard block |
||
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 |
||
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 | } |