Skip to content

Commit f950a64

Browse files
committed
Minor documentation changes
1 parent 80ab32e commit f950a64

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/Robtimus/Multipart/MultipartAlternative.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function addMultipart(Multipart $multipart)
5353
* @return MultipartAlternative this object.
5454
* @throws InvalidArgumentException If the content is not a string, resource or callable.
5555
* @throws InvalidArgumentException If the content type is empty.
56-
* @throws LogicException If the multipart is already finished.
56+
* @throws LogicException If the multipart is already finished.
5757
*/
5858
public function addPart($content, $contentType, $contentLength = -1, $contentTransferEncoding = '')
5959
{

src/Robtimus/Multipart/MultipartFormData.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function __construct($boundary = '')
3232
* @param string $value The parameter value.
3333
*
3434
* @return MultipartFormData this object.
35-
* @throws InvalidArgumentException If the parameter name or value is empty.
36-
* @throws LogicException If the multipart is already finished.
35+
* @throws InvalidArgumentException If the parameter name is empty.
36+
* @throws LogicException If the multipart is already finished.
3737
*/
3838
public function addValue($name, $value)
3939
{
@@ -62,9 +62,9 @@ public function addValue($name, $value)
6262
* Ignored if the file's content is a string.
6363
*
6464
* @return MultipartFormData this object.
65-
* @throws InvalidArgumentException If the name or content type is empty.
65+
* @throws InvalidArgumentException If the parameter name, file name or content type is empty.
6666
* @throws InvalidArgumentException If the content is not a string, resource or callable.
67-
* @throws LogicException If the multipart is already finished.
67+
* @throws LogicException If the multipart is already finished.
6868
*/
6969
public function addFile($name, $filename, $content, $contentType, $contentLength = -1)
7070
{

src/Robtimus/Multipart/MultipartMixed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function addMultipart(Multipart $multipart)
5353
* @return MultipartMixed this object.
5454
* @throws InvalidArgumentException If the content is not a string, resource or callable.
5555
* @throws InvalidArgumentException If the content type is empty.
56-
* @throws LogicException If the multipart is already finished.
56+
* @throws LogicException If the multipart is already finished.
5757
*/
5858
public function addPart($content, $contentType, $contentLength = -1, $contentTransferEncoding = '')
5959
{
@@ -87,9 +87,9 @@ public function addPart($content, $contentType, $contentLength = -1, $contentTra
8787
* @param string $contentTransferEncoding The optional content transfer encoding.
8888
*
8989
* @return MultipartMixed this object.
90-
* @throws InvalidArgumentException If the filename or content type is empty.
90+
* @throws InvalidArgumentException If the file name or content type is empty.
9191
* @throws InvalidArgumentException If the content is not a string, resource or callable.
92-
* @throws LogicException If the multipart is already finished.
92+
* @throws LogicException If the multipart is already finished.
9393
*/
9494
public function addAttachment($filename, $content, $contentType, $contentLength = -1, $contentTransferEncoding = '')
9595
{

src/Robtimus/Multipart/MultipartRelated.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct($boundary = '')
3939
* @return MultipartRelated this object.
4040
* @throws InvalidArgumentException If the content is not a string, resource or callable.
4141
* @throws InvalidArgumentException If the content type is empty.
42-
* @throws LogicException If the multipart is already finished.
42+
* @throws LogicException If the multipart is already finished.
4343
*/
4444
public function addPart($content, $contentType, $contentLength = -1, $contentTransferEncoding = '')
4545
{
@@ -74,9 +74,9 @@ public function addPart($content, $contentType, $contentLength = -1, $contentTra
7474
* @param string $contentTransferEncoding The optional content transfer encoding.
7575
*
7676
* @return MultipartRelated this object.
77-
* @throws InvalidArgumentException If the content id, filename or content type is empty.
77+
* @throws InvalidArgumentException If the content id, file name or content type is empty.
7878
* @throws InvalidArgumentException If the content is not a string, resource or callable.
79-
* @throws LogicException If the multipart is already finished.
79+
* @throws LogicException If the multipart is already finished.
8080
*/
8181
public function addInlineFile($contentID, $filename, $content, $contentType, $contentLength = -1, $contentTransferEncoding = '')
8282
{

0 commit comments

Comments
 (0)