Completed
Push — master ( e8c2d6...8f74cc )
by Rudie
01:32
created
src/IMAPMessageContent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
 			$this->parameters['bytes'] = @$structure->bytes;
48 48
 
49 49
 			foreach ( (array) @$structure->parameters as $param ) {
50
-				$this->parameters[ strtolower($param->attribute) ] = $param->value;
50
+				$this->parameters[strtolower($param->attribute)] = $param->value;
51 51
 			}
52 52
 			foreach ( (array) @$structure->dparameters as $param ) {
53
-				$this->parameters[ strtolower($param->attribute) ] = $param->value;
53
+				$this->parameters[strtolower($param->attribute)] = $param->value;
54 54
 			}
55 55
 		}
56 56
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	public function parameter( $name ) {
62 62
 		$parameters = $this->parameters();
63 63
 		$structure = $this->structure();
64
-		return @$parameters[ strtolower($name) ] ?: @$structure->$name;
64
+		return @$parameters[strtolower($name)] ?: @$structure->$name;
65 65
 	}
66 66
 
67 67
 	/** @return IMAPMessagePartInterface[] */
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		$parts = $recursive ? $this->allParts() : $this->parts();
72 72
 		array_unshift($parts, $this);
73 73
 
74
-		return array_values(array_filter($parts, function(IMAPMessagePartInterface $part) use ($subtypes) {
74
+		return array_values(array_filter($parts, function( IMAPMessagePartInterface $part ) use ($subtypes) {
75 75
 			return in_array($part->subtype(), $subtypes);
76 76
 		}));
77 77
 	}
Please login to merge, or discard this patch.
src/IMAPMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	/** @return string */
83 83
 	public function header( $name ) {
84 84
 		$headers = $this->headers();
85
-		return @$headers[ strtolower($name) ];
85
+		return @$headers[strtolower($name)];
86 86
 	}
87 87
 
88 88
 	/** @return IMAPMessagePart */
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 				}
181 181
 			}
182 182
 			if ( $bytes = $part->parameter('bytes') ) {
183
-				$name .= ' (' . number_format($bytes/1024, 1) . 'kb)';
183
+				$name .= ' (' . number_format($bytes / 1024, 1) . 'kb)';
184 184
 			}
185 185
 
186 186
 			$parts[] = $name;
Please login to merge, or discard this patch.