Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zbateson/mail-mime-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Mar 2, 2024
2 parents 089ac1f + 4f662eb commit 0db93a6
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 308 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

$config = include 'PhpCsFixer.php';
$config = include 'vendor/zbateson/mb-wrapper/PhpCsFixer.php';

return $config->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
Expand Down
277 changes: 0 additions & 277 deletions PhpCsFixer.php

This file was deleted.

1 change: 0 additions & 1 deletion src/Header/Consumer/AbstractGenericConsumerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ private function addSpaceToRetParts(array $parts, array &$retParts, int $curInde
*
* @param HeaderPart[] $parts
* @param HeaderPart[] $retParts
* @param HeaderPart $spacePart
*/
private function addSpaces(array $parts, array &$retParts, int $curIndex, ?HeaderPart &$spacePart = null) : self
{
Expand Down
3 changes: 0 additions & 3 deletions src/Header/Consumer/Received/DomainConsumerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ protected function isEndToken(string $token) : bool
* Attempts to match a parenthesized expression to find a hostname and an
* address. Returns true if the expression matched, and either hostname or
* address were found.
*
* @param string $hostname
* @param string $address
*/
private function matchHostPart(string $value, ?string &$hostname, ?string &$address) : bool
{
Expand Down
3 changes: 0 additions & 3 deletions src/MailMimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ public static function getGlobalContainer() : Container

/**
* Sets global configuration for php-di.
*
* @param array|string|DefinitionSource $phpDiConfig
* @return void
*/
public static function setGlobalPhpDiConfiguration(array|string|DefinitionSource $phpDiConfig) : void
{
Expand Down
8 changes: 0 additions & 8 deletions src/Message/NonMimePart.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public function isTextPart() : bool

/**
* Returns text/plain
*
* @return string
*/
public function getContentType(string $default = 'text/plain') : ?string
{
Expand All @@ -35,8 +33,6 @@ public function getContentType(string $default = 'text/plain') : ?string

/**
* Returns ISO-8859-1
*
* @return string
*/
public function getCharset() : ?string
{
Expand All @@ -45,8 +41,6 @@ public function getCharset() : ?string

/**
* Returns 'inline'.
*
* @return string
*/
public function getContentDisposition(?string $default = 'inline') : ?string
{
Expand All @@ -55,8 +49,6 @@ public function getContentDisposition(?string $default = 'inline') : ?string

/**
* Returns '7bit'.
*
* @return string
*/
public function getContentTransferEncoding(?string $default = '7bit') : ?string
{
Expand Down
9 changes: 0 additions & 9 deletions src/Message/PartStreamContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ public function hasContent() : bool
*
* setContentStream can be called with 'null' to indicate the IMessagePart
* does not contain any content.
*
* @param StreamInterface $contentStream
*/
public function setContentStream(?StreamInterface $contentStream = null)
{
Expand All @@ -143,8 +141,6 @@ public function setContentStream(?StreamInterface $contentStream = null)
/**
* Returns true if the attached stream filter used for decoding the content
* on the current handle is different from the one passed as an argument.
*
* @param string $transferEncoding
*/
private function isTransferEncodingFilterChanged(?string $transferEncoding) : bool
{
Expand All @@ -166,8 +162,6 @@ private function isCharsetFilterChanged(string $fromCharset, string $toCharset)
/**
* Attaches a decoding filter to the attached content handle, for the passed
* $transferEncoding.
*
* @param string $transferEncoding
*/
protected function attachTransferEncodingFilter(?string $transferEncoding) : self
{
Expand Down Expand Up @@ -283,9 +277,6 @@ public function getContentStream(?string $transferEncoding, ?string $fromCharset
/**
* Checks what transfer-encoding decoder stream is attached on the
* underlying stream, and resets it if the requested arguments differ.
*
* @param string $transferEncoding
* @return StreamInterface
*/
public function getBinaryContentStream(?string $transferEncoding = null) : ?StreamInterface
{
Expand Down
4 changes: 0 additions & 4 deletions src/Message/UUEncodedPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function __construct(
/**
* Returns the filename included in the uuencoded 'begin' line for this
* part.
*
* @return string
*/
public function getFilename() : ?string
{
Expand Down Expand Up @@ -75,8 +73,6 @@ public function isTextPart() : bool

/**
* Returns 'application/octet-stream'.
*
* @return string
*/
public function getContentType(string $default = 'application/octet-stream') : ?string
{
Expand Down
2 changes: 0 additions & 2 deletions src/Parser/Part/UUEncodedPartHeaderContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public function setUnixFileMode(int $mode)
/**
* Returns the filename included in the uuencoded 'begin' line for this
* part.
*
* @return string
*/
public function getFilename() : ?string
{
Expand Down

0 comments on commit 0db93a6

Please sign in to comment.