@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function isValidSimpleWrapper($email) |
32 | 32 | { |
33 | - return (boolean)preg_match('/^(.*<?)(.*)@(.*)(>?)$/', $email); |
|
33 | + return (boolean) preg_match('/^(.*<?)(.*)@(.*)(>?)$/', $email); |
|
34 | 34 | } |
35 | 35 | } |
@@ -77,9 +77,9 @@ |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | $count = ( |
80 | - count((array)$message->getTo()) |
|
81 | - + count((array)$message->getCc()) |
|
82 | - + count((array)$message->getBcc()) |
|
80 | + count((array) $message->getTo()) |
|
81 | + + count((array) $message->getCc()) |
|
82 | + + count((array) $message->getBcc()) |
|
83 | 83 | ); |
84 | 84 | |
85 | 85 | return $count; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | if ($i !== null) { |
112 | 112 | $tree[-1] = min(count($replace) - 1, $i); |
113 | 113 | $tree[-2] = $last_size; |
114 | - $this->_treeMaxLen = (int)$size; |
|
114 | + $this->_treeMaxLen = (int) $size; |
|
115 | 115 | } |
116 | 116 | foreach ($replace as $rep) { |
117 | 117 | if (!is_array($rep)) { |
@@ -8,17 +8,17 @@ |
||
8 | 8 | * file that was distributed with this source code. |
9 | 9 | */ |
10 | 10 | |
11 | -require __DIR__ . '/classes/Swift.php'; |
|
11 | +require __DIR__.'/classes/Swift.php'; |
|
12 | 12 | |
13 | 13 | Swift::registerAutoload( |
14 | - function () { |
|
14 | + function() { |
|
15 | 15 | // Load in dependency maps |
16 | - require __DIR__ . '/dependency_maps/cache_deps.php'; |
|
17 | - require __DIR__ . '/dependency_maps/mime_deps.php'; |
|
18 | - require __DIR__ . '/dependency_maps/message_deps.php'; |
|
19 | - require __DIR__ . '/dependency_maps/transport_deps.php'; |
|
16 | + require __DIR__.'/dependency_maps/cache_deps.php'; |
|
17 | + require __DIR__.'/dependency_maps/mime_deps.php'; |
|
18 | + require __DIR__.'/dependency_maps/message_deps.php'; |
|
19 | + require __DIR__.'/dependency_maps/transport_deps.php'; |
|
20 | 20 | |
21 | 21 | // Load in global library preferences |
22 | - require __DIR__ . '/preferences.php'; |
|
22 | + require __DIR__.'/preferences.php'; |
|
23 | 23 | } |
24 | 24 | ); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__ . '/../mime_types.php'; |
|
3 | +require __DIR__.'/../mime_types.php'; |
|
4 | 4 | |
5 | 5 | Swift_DependencyContainer::getInstance() |
6 | 6 | ->register('properties.charset') |
@@ -113,7 +113,7 @@ |
||
113 | 113 | */ |
114 | 114 | public function toString() |
115 | 115 | { |
116 | - return $this->_fieldName . ': ' . $this->_value; |
|
116 | + return $this->_fieldName.': '.$this->_value; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $angleAddrs = array(); |
157 | 157 | |
158 | 158 | foreach ($this->_ids as $id) { |
159 | - $angleAddrs[] = '<' . $id . '>'; |
|
159 | + $angleAddrs[] = '<'.$id.'>'; |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | $this->setCachedValue(implode(' ', $angleAddrs)); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | { |
177 | 177 | if ($this->_emailValidator->isValidSimpleWrapper($id) === false) { |
178 | 178 | throw new Swift_RfcComplianceException( |
179 | - 'Invalid ID given <' . $id . '>' |
|
179 | + 'Invalid ID given <'.$id.'>' |
|
180 | 180 | ); |
181 | 181 | } |
182 | 182 | } |
@@ -126,7 +126,7 @@ |
||
126 | 126 | { |
127 | 127 | if (!$this->getCachedValue()) { |
128 | 128 | if (isset($this->_address)) { |
129 | - $this->setCachedValue('<' . $this->_address . '>'); |
|
129 | + $this->setCachedValue('<'.$this->_address.'>'); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | protected function getSafeMapShareId() |
39 | 39 | { |
40 | - return get_class($this) . ($this->_dotEscape ? '.dotEscape' : ''); |
|
40 | + return get_class($this).($this->_dotEscape ? '.dotEscape' : ''); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | protected function initSafeMap() |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $newLineLength = $lineLen + ($i === false ? $size : $i); |
101 | 101 | |
102 | 102 | if ($currentLine && $newLineLength >= $thisLineLength) { |
103 | - $is->write($prepend . $this->_standardize($currentLine)); |
|
103 | + $is->write($prepend.$this->_standardize($currentLine)); |
|
104 | 104 | $currentLine = ''; |
105 | 105 | $prepend = "=\r\n"; |
106 | 106 | $thisLineLength = $maxLineLength; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | if ($currentLine !== '') { |
121 | - $is->write($prepend . $this->_standardize($currentLine)); |
|
121 | + $is->write($prepend.$this->_standardize($currentLine)); |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 |