Completed
Push — master ( c1617c...820ca9 )
by Rudie
02:11
created
src/IMAPMessagePart.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@
 block discarded – undo
104 104
 		return $this->decode($body);
105 105
 	}
106 106
 
107
+	/**
108
+	 * @param string $content
109
+	 */
107 110
 	public function decode( $content ) {
108 111
 		return quoted_printable_decode($content);
109 112
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
 					}
53 53
 
54 54
 					$iterate($part);
55
-				}
56
-				else {
55
+				} else {
57 56
 					$parts[] = $part;
58 57
 				}
59 58
 			}
Please login to merge, or discard this patch.
src/IMAPMessage.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
 					$structure,
93 93
 					[1]
94 94
 				);
95
-			}
96
-			else {
95
+			} else {
97 96
 				foreach ($structure->parts as $n => $part) {
98 97
 					$this->parts[] = new IMAPMessagePart(
99 98
 						$this,
@@ -117,8 +116,7 @@  discard block
 block discarded – undo
117 116
 					}
118 117
 
119 118
 					$iterate($part);
120
-				}
121
-				else {
119
+				} else {
122 120
 					$parts[] = $part;
123 121
 				}
124 122
 			}
Please login to merge, or discard this patch.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
 		}
33 33
 	}
34 34
 
35
+	/**
36
+	 * @param boolean $clear
37
+	 */
35 38
 	protected function flags( $flags, $clear ) {
36 39
 		$cb = [$this->imap(), $clear ? 'clearflag' : 'setflag'];
37 40
 
@@ -76,6 +79,9 @@  discard block
 block discarded – undo
76 79
 		return $this->headers;
77 80
 	}
78 81
 
82
+	/**
83
+	 * @param string $name
84
+	 */
79 85
 	public function header( $name ) {
80 86
 		$headers = $this->headers();
81 87
 		return @$headers[ strtolower($name) ];
@@ -140,6 +146,9 @@  discard block
 block discarded – undo
140 146
 		return $parts;
141 147
 	}
142 148
 
149
+	/**
150
+	 * @param integer $index
151
+	 */
143 152
 	public function part( $index ) {
144 153
 		$parts = $this->parts();
145 154
 		return @$parts[$index];
Please login to merge, or discard this patch.