Completed
Push — master ( 7a1dd5...15892e )
by Rudie
01:31
created
src/IMAPMessageContent.php 1 patch
Doc Comments   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,13 +33,14 @@  discard block
 block discarded – undo
33 33
 		return $parts;
34 34
 	}
35 35
 
36
-	/** @return IMAPMessagePart */
36
+	/** @param integer $index
37
+/** @return IMAPMessagePart */
37 38
 	public function part( $index ) {
38 39
 		$parts = $this->parts();
39 40
 		return @$parts[$index];
40 41
 	}
41 42
 
42
-	/** @return array */
43
+	/** @return string */
43 44
 	public function parameters() {
44 45
 		if ( empty($this->parameters) ) {
45 46
 			$structure = $this->structure();
@@ -57,7 +58,8 @@  discard block
 block discarded – undo
57 58
 		return $this->parameters;
58 59
 	}
59 60
 
60
-	/** @return mixed */
61
+	/** @param string $name
62
+/** @return mixed */
61 63
 	public function parameter( $name ) {
62 64
 		$parameters = $this->parameters();
63 65
 		$structure = $this->structure();
@@ -85,7 +87,8 @@  discard block
 block discarded – undo
85 87
 		return $this->headers;
86 88
 	}
87 89
 
88
-	/** @return string|string[] */
90
+	/** @param string $name
91
+/** @return string|string[] */
89 92
 	public function header( $name ) {
90 93
 		$headers = $this->headers();
91 94
 		$header = $headers[strtolower($name)] ?? [null];
@@ -111,7 +114,9 @@  discard block
 block discarded – undo
111 114
 		}
112 115
 	}
113 116
 
114
-	/** @return string */
117
+	/** @param string[] $subtypes
118
+/** @return string
119
+* @param boolean $recursive */
115 120
 	public function subtypeContent( $subtypes, $recursive ) {
116 121
 		if ( $part = $this->subtypePart($subtypes, $recursive) ) {
117 122
 			return $part->content();
Please login to merge, or discard this patch.