Completed
Push — master ( 15892e...8c5cae )
by Rudie
01:37
created
src/IMAPMessageContent.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 			$this->parameters['bytes'] = @$structure->bytes;
52 52
 
53 53
 			foreach ( (array) @$structure->parameters as $param ) {
54
-				$this->parameters[ strtolower($param->attribute) ] = $param->value;
54
+				$this->parameters[strtolower($param->attribute)] = $param->value;
55 55
 			}
56 56
 			foreach ( (array) @$structure->dparameters as $param ) {
57
-				$this->parameters[ strtolower($param->attribute) ] = $param->value;
57
+				$this->parameters[strtolower($param->attribute)] = $param->value;
58 58
 			}
59 59
 		}
60 60
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	public function parameter( $name ) {
66 66
 		$parameters = $this->parameters();
67 67
 		$structure = $this->structure();
68
-		return @$parameters[ strtolower($name) ] ?: @$structure->$name;
68
+		return @$parameters[strtolower($name)] ?: @$structure->$name;
69 69
 	}
70 70
 
71 71
 	/** @return string[][] */
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 			$headers = array_map('mb_decode_mimeheader', $headers);
81 81
 
82 82
 			$this->headers = [];
83
-			foreach ($headers as $header) {
83
+			foreach ( $headers as $header ) {
84 84
 				$x = explode(':', $header, 2);
85
-				$this->headers[ trim(strtolower($x[0])) ][] = trim($x[1]);
85
+				$this->headers[trim(strtolower($x[0]))][] = trim($x[1]);
86 86
 			}
87 87
 		}
88 88
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		$parts = $recursive ? $this->allParts() : $this->parts();
104 104
 		array_unshift($parts, $this);
105 105
 
106
-		return array_values(array_filter($parts, function(IMAPMessagePartInterface $part) use ($subtypes) {
106
+		return array_values(array_filter($parts, function( IMAPMessagePartInterface $part ) use ($subtypes) {
107 107
 			return in_array($part->subtype(), $subtypes);
108 108
 		}));
109 109
 	}
Please login to merge, or discard this patch.