Completed
Push — master ( ed19ae...720022 )
by Rudie
01:32
created
src/IMAPTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	protected function iteratorToLowercaseArray( $iterator ) {
70 70
 		$data = [];
71 71
 		foreach ( $iterator as $name => $value ) {
72
-			$data[ strtolower($name) ] = $value;
72
+			$data[strtolower($name)] = $value;
73 73
 		}
74 74
 
75 75
 		return $data;
Please login to merge, or discard this patch.
src/IMAPMailbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 					}
96 96
 				}
97 97
 
98
-				if ( $options['limit'] && isset($messages[ $options['limit'] - 1 ]) ) {
98
+				if ( $options['limit'] && isset($messages[$options['limit'] - 1]) ) {
99 99
 					break;
100 100
 				}
101 101
 			}
Please login to merge, or discard this patch.
src/IMAPMessagePart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	/** @return string */
78 78
 	public function decodedContent() {
79 79
 		if ( $raw = $this->content() ) {
80
-			switch ($this->parameter('encoding')) {
80
+			switch ( $this->parameter('encoding') ) {
81 81
 				case ENC7BIT:
82 82
 				case ENC8BIT:
83 83
 				case ENCQUOTEDPRINTABLE:
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	}
103 103
 
104 104
 	/** @return bool */
105
-	public function saveAttachment($dir, $filenameOverride = null) {
105
+	public function saveAttachment( $dir, $filenameOverride = null ) {
106 106
 		if ( $filename = $this->safeFilename() ) {
107 107
 			$filepath = realpath($dir) . '/' . ($filenameOverride ?? $filename);
108 108
 			if ( file_put_contents($filepath, $this->decodedContent()) ) {
Please login to merge, or discard this patch.
src/IMAPMessageContent.php 1 patch
Spacing   +5 added lines, -5 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 ?? null;
68
+		return $parameters[strtolower($name)] ?? $structure->$name ?? null;
69 69
 	}
70 70
 
71 71
 	/** @return string[][] */
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			$this->headers = [];
83 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
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	/** @return string[] */
93 93
 	public function header( $name ) {
94 94
 		$headers = $this->headers();
95
-		return $headers[ strtolower($name) ] ?? [];
95
+		return $headers[strtolower($name)] ?? [];
96 96
 	}
97 97
 
98 98
 	/** @return IMAPMessagePartInterface[] */
Please login to merge, or discard this patch.