@@ -4,18 +4,18 @@ |
||
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'; |
@@ -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 | } |
@@ -156,7 +156,7 @@ |
||
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 |