Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cs fixer #226

Merged
merged 3 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/GenericConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,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
2 changes: 0 additions & 2 deletions src/Header/Consumer/Received/DomainConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ protected function isEndToken(string $token) : bool
* 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
1 change: 0 additions & 1 deletion src/Header/Part/DatePart.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function __construct(MbWrapper $charsetConverter, string $token)
/**
* Returns a DateTime object or null if it can't be parsed.
*
* @return DateTime
*/
public function getDateTime() : ?\DateTime
{
Expand Down
1 change: 0 additions & 1 deletion src/MailMimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public static function configureDependencyContainer(array $providers = [])
* {@see MailMimeParser::configureDependencyContainer}, which instantiates a
* new {@see Container} on every call.
*
* @param Container $di
*/
public static function setDependencyContainer(?Container $di = null)
{
Expand Down
4 changes: 0 additions & 4 deletions src/Message/NonMimePart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function isTextPart() : bool
/**
* Returns text/plain
*
* @return string
*/
public function getContentType(string $default = 'text/plain') : ?string
{
Expand All @@ -36,7 +35,6 @@ public function getContentType(string $default = 'text/plain') : ?string
/**
* Returns ISO-8859-1
*
* @return string
*/
public function getCharset() : ?string
{
Expand All @@ -46,7 +44,6 @@ public function getCharset() : ?string
/**
* Returns 'inline'.
*
* @return string
*/
public function getContentDisposition(?string $default = 'inline') : ?string
{
Expand All @@ -56,7 +53,6 @@ public function getContentDisposition(?string $default = 'inline') : ?string
/**
* Returns '7bit'.
*
* @return string
*/
public function getContentTransferEncoding(?string $default = '7bit') : ?string
{
Expand Down
5 changes: 0 additions & 5 deletions src/Message/PartStreamContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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 @@ -144,7 +143,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 @@ -167,7 +165,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 @@ -284,8 +281,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
2 changes: 0 additions & 2 deletions src/Message/UUEncodedPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public function __construct(?int $mode = null, ?string $filename = null, ?IMimeP
* Returns the filename included in the uuencoded 'begin' line for this
* part.
*
* @return string
*/
public function getFilename() : ?string
{
Expand Down Expand Up @@ -80,7 +79,6 @@ public function isTextPart() : bool
/**
* Returns 'application/octet-stream'.
*
* @return string
*/
public function getContentType(string $default = 'application/octet-stream') : ?string
{
Expand Down
1 change: 0 additions & 1 deletion src/Parser/Part/UUEncodedPartHeaderContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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
Loading