Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
[PSR-2] fixers=braces,elseif,short_tag,php_closing_tag,trailing_space…
Browse files Browse the repository at this point in the history
…s,linefeed

Applied php-cs-fixer --fixers=braces,elseif,short_tag,php_closing_tag,trailing_spaces,linefeed
  • Loading branch information
Show file tree
Hide file tree
Showing 41 changed files with 99 additions and 93 deletions.
2 changes: 1 addition & 1 deletion src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Mail
*/
class BadMethodCallException extends \BadMethodCallException implements
class BadMethodCallException extends \BadMethodCallException implements
ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Mail
*/
class InvalidArgumentException extends \InvalidArgumentException implements
class InvalidArgumentException extends \InvalidArgumentException implements
ExceptionInterface
{
}
22 changes: 11 additions & 11 deletions src/Header/ContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function fromString($headerLine)
$header->addParameter($key, $value);
}
}

return $header;
}

Expand All @@ -77,7 +77,7 @@ public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
return implode(';' . Headers::FOLDING, $values);
}

public function setEncoding($encoding)
public function setEncoding($encoding)
{
// This header must be always in US-ASCII
return $this;
Expand Down Expand Up @@ -115,7 +115,7 @@ public function setType($type)

/**
* Retrieve the content type
*
*
* @return string
*/
public function getType()
Expand All @@ -125,9 +125,9 @@ public function getType()

/**
* Add a parameter pair
*
* @param string $name
* @param string $value
*
* @param string $name
* @param string $value
* @return ContentType
*/
public function addParameter($name, $value)
Expand All @@ -139,7 +139,7 @@ public function addParameter($name, $value)

/**
* Get all parameters
*
*
* @return array
*/
public function getParameters()
Expand All @@ -149,8 +149,8 @@ public function getParameters()

/**
* Get a parameter by name
*
* @param string $name
*
* @param string $name
* @return null|string
*/
public function getParameter($name)
Expand All @@ -164,8 +164,8 @@ public function getParameter($name)

/**
* Remove a named parameter
*
* @param string $name
*
* @param string $name
* @return bool
*/
public function removeParameter($name)
Expand Down
4 changes: 2 additions & 2 deletions src/Header/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function fromString($headerLine)

$header = new static();
$header->value= $value;

return $header;
}

Expand All @@ -48,7 +48,7 @@ public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
return $this->value;
}

public function setEncoding($encoding)
public function setEncoding($encoding)
{
// This header must be always in US-ASCII
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @package Zend_Mail
* @subpackage Header
*/
class BadMethodCallException extends Exception\BadMethodCallException implements
class BadMethodCallException extends Exception\BadMethodCallException implements
ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion src/Header/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
* @package Zend_Mail
* @subpackage Header
*/
class InvalidArgumentException extends Exception\InvalidArgumentException implements
class InvalidArgumentException extends Exception\InvalidArgumentException implements
ExceptionInterface
{}
2 changes: 1 addition & 1 deletion src/Header/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
* @package Zend_Mail
* @subpackage Header
*/
class RuntimeException extends Exception\RuntimeException implements
class RuntimeException extends Exception\RuntimeException implements
ExceptionInterface
{}
8 changes: 4 additions & 4 deletions src/Header/GenericHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class GenericHeader implements HeaderInterface, UnstructuredInterface

/**
* Header encoding
*
*
* @var string
*/
protected $encoding = 'ASCII';
Expand All @@ -50,7 +50,7 @@ public static function fromString($headerLine)

/**
* Constructor
*
*
* @param string $fieldName Optional
* @param string $fieldValue Optional
*/
Expand Down Expand Up @@ -99,7 +99,7 @@ public function getFieldName()

/**
* Set header value
*
*
* @param string $fieldValue
* @return GenericHeader
*/
Expand All @@ -124,7 +124,7 @@ public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
return $this->fieldValue;
}

public function setEncoding($encoding)
public function setEncoding($encoding)
{
$this->encoding = $encoding;
return $this;
Expand Down
18 changes: 9 additions & 9 deletions src/Header/HeaderWrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ abstract class HeaderWrap
{
/**
* Wrap a long header line
*
* @param string $value
* @param HeaderInterface $header
*
* @param string $value
* @param HeaderInterface $header
* @return string
*/
public static function wrap($value, HeaderInterface $header)
Expand Down Expand Up @@ -60,7 +60,7 @@ protected static function wrapUnstructuredHeader($value, HeaderInterface $header

/**
* Wrap a structured header line
*
*
* @param string $value
* @param StructuredInterface $header
* @return string
Expand All @@ -85,11 +85,11 @@ protected static function wrapStructuredHeader($value, StructuredInterface $head
/**
* MIME-encode a value
*
* Performs quoted-printable encoding on a value, setting maximum
* line-length to 998.
*
* @param string $value
* @param string $encoding
* Performs quoted-printable encoding on a value, setting maximum
* line-length to 998.
*
* @param string $value
* @param string $encoding
* @param int $lineLength maximum line-length, by default 998
* @return string Returns the mime encode value without the last line ending
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Header/Received.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function fromString($headerLine)

$header = new static();
$header->value= $value;

return $header;
}

Expand All @@ -50,7 +50,7 @@ public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
return $this->value;
}

public function setEncoding($encoding)
public function setEncoding($encoding)
{
// This header must be always in US-ASCII
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Header/StructuredInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface StructuredInterface extends HeaderInterface
{
/**
* Return the delimiter at which a header line should be wrapped
*
*
* @return string
*/
public function getDelimiter();
Expand Down
6 changes: 3 additions & 3 deletions src/Header/Subject.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Subject implements UnstructuredInterface

/**
* Header encoding
*
*
* @var string
*/
protected $encoding = 'ASCII';
Expand All @@ -44,7 +44,7 @@ public static function fromString($headerLine)
$header->setEncoding('UTF-8');
}
$header->setSubject($value);

return $header;
}

Expand All @@ -62,7 +62,7 @@ public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
return $this->subject;
}

public function setEncoding($encoding)
public function setEncoding($encoding)
{
$this->encoding = $encoding;
return $this;
Expand Down
14 changes: 7 additions & 7 deletions src/Protocol/AbstractProtocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,26 @@ public function __destruct()
}

/**
* Set the maximum log size
*
* Set the maximum log size
*
* @param integer $maximumLog Maximum log size
*/
public function setMaximumLog($maximumLog)
{
$this->_maximumLog = (int) $maximumLog;
}


/**
* Get the maximum log size
*
* Get the maximum log size
*
* @return int the maximum log size
*/
public function getMaximumLog()
{
return $this->_maximumLog;
}


/**
* Create a connection to the remote host
Expand Down
2 changes: 1 addition & 1 deletion src/Protocol/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
* @category Zend
* @package Zend_Mail
*/
class InvalidArgumentException extends Exception\InvalidArgumentException implements
class InvalidArgumentException extends Exception\InvalidArgumentException implements
ExceptionInterface
{}
2 changes: 1 addition & 1 deletion src/Protocol/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
* @category Zend
* @package Zend_Mail
*/
class RuntimeException extends Exception\RuntimeException implements
class RuntimeException extends Exception\RuntimeException implements
ExceptionInterface
{}
4 changes: 2 additions & 2 deletions src/Protocol/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ public function fetch($items, $from, $to = null)
{
if (is_array($from)) {
$set = implode(',', $from);
} else if ($to === null) {
} elseif ($to === null) {
$set = (int)$from;
} else if ($to === INF) {
} elseif ($to === INF) {
$set = (int)$from . ':*';
} else {
$set = (int)$from . ':' . (int)$to;
Expand Down
8 changes: 4 additions & 4 deletions src/Protocol/Smtp/Auth/Crammd5.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class Crammd5 extends Smtp
/**
* Constructor.
*
* All parameters may be passed as an array to the first argument of the
* constructor. If so,
* All parameters may be passed as an array to the first argument of the
* constructor. If so,
*
* @param string|array $host (Default: 127.0.0.1)
* @param null|int $port (Default: null)
Expand Down Expand Up @@ -99,7 +99,7 @@ public function setUsername($username)
$this->username = $username;
return $this;
}

/**
* Get username
*
Expand All @@ -121,7 +121,7 @@ public function setPassword($password)
$this->password = $password;
return $this;
}

/**
* Get password
*
Expand Down
4 changes: 2 additions & 2 deletions src/Protocol/Smtp/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function setUsername($username)
$this->username = $username;
return $this;
}

/**
* Get username
*
Expand All @@ -122,7 +122,7 @@ public function setPassword($password)
$this->password = $password;
return $this;
}

/**
* Get password
*
Expand Down
4 changes: 2 additions & 2 deletions src/Protocol/Smtp/Auth/Plain.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function setUsername($username)
$this->username = $username;
return $this;
}

/**
* Get username
*
Expand All @@ -120,7 +120,7 @@ public function setPassword($password)
$this->password = $password;
return $this;
}

/**
* Get password
*
Expand Down
Loading

0 comments on commit 1914ec7

Please sign in to comment.