aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-26 12:31:44 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-26 12:31:44 +0200
commit98e9170670f3463cfc0b90ce087cd4114408dd33 (patch)
treed3cdec3dfcd0a2dd69545fa216e0735abe8c6c4a
parent1ac6e383b9b5ae8f77d4a6093c5308a2ec6fef89 (diff)
downloadMail-98e9170670f3463cfc0b90ce087cd4114408dd33.zip
Mail-98e9170670f3463cfc0b90ce087cd4114408dd33.tar.gz
Mail-98e9170670f3463cfc0b90ce087cd4114408dd33.tar.bz2
Fix CS.
-rw-r--r--Content/Attachment.php3
-rw-r--r--Content/Encoder/QuotedPrintable.php1
-rw-r--r--Test/Unit/Content/Alternative.php4
-rw-r--r--Test/Unit/Content/Content.php2
-rw-r--r--Test/Unit/Content/Html.php2
-rw-r--r--Test/Unit/Content/Message.php8
-rw-r--r--Test/Unit/Content/Related.php2
7 files changed, 11 insertions, 11 deletions
diff --git a/Content/Attachment.php b/Content/Attachment.php
index 78cfa38..022ce84 100644
--- a/Content/Attachment.php
+++ b/Content/Attachment.php
@@ -85,7 +85,8 @@ class Attachment extends Content
try {
$mime = new Mime($stream);
$mimeType = $mime->getMime();
- } catch (Mime\Exception $e) { }
+ } catch (Mime\Exception $e) {
+ }
if (null === $mimeType) {
$mimeType = 'application/octet-stream';
diff --git a/Content/Encoder/QuotedPrintable.php b/Content/Encoder/QuotedPrintable.php
index c502bb6..176cb99 100644
--- a/Content/Encoder/QuotedPrintable.php
+++ b/Content/Encoder/QuotedPrintable.php
@@ -80,6 +80,5 @@ class QuotedPrintable implements Encoder
public static function decode($string)
{
-
}
}
diff --git a/Test/Unit/Content/Alternative.php b/Test/Unit/Content/Alternative.php
index 496330d..b043413 100644
--- a/Test/Unit/Content/Alternative.php
+++ b/Test/Unit/Content/Alternative.php
@@ -37,8 +37,8 @@
namespace Hoa\Mail\Test\Unit\Content;
use Hoa\Mail\Content\Alternative as SUT;
-use Hoa\Mail\Content\Text;
use Hoa\Mail\Content\Html;
+use Hoa\Mail\Content\Text;
use Hoa\Test;
/**
@@ -78,7 +78,7 @@ class Alternative extends Test\Unit\Suite
{
$this
->given(
- $this->function->microtime = function() use (&$microtime) {
+ $this->function->microtime = function () use (&$microtime) {
return $microtime = 42;
},
$content1 = new Text('foo'),
diff --git a/Test/Unit/Content/Content.php b/Test/Unit/Content/Content.php
index 7f0c285..0b93f51 100644
--- a/Test/Unit/Content/Content.php
+++ b/Test/Unit/Content/Content.php
@@ -36,8 +36,8 @@
namespace Hoa\Mail\Test\Unit\Content;
-use Mock\Hoa\Mail\Content as SUT;
use Hoa\Test;
+use Mock\Hoa\Mail\Content as SUT;
/**
* Class \Hoa\Mail\Test\Unit\Content\Content.
diff --git a/Test/Unit/Content/Html.php b/Test/Unit/Content/Html.php
index 57b9843..d2ca818 100644
--- a/Test/Unit/Content/Html.php
+++ b/Test/Unit/Content/Html.php
@@ -47,7 +47,7 @@ use Hoa\Test;
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class HTML extends Test\Unit\Suite
+class Html extends Test\Unit\Suite
{
public function case_basic()
{
diff --git a/Test/Unit/Content/Message.php b/Test/Unit/Content/Message.php
index a91dccf..ff6fc89 100644
--- a/Test/Unit/Content/Message.php
+++ b/Test/Unit/Content/Message.php
@@ -63,7 +63,7 @@ class Message extends Test\Unit\Suite
{
$this
->when(
- $this->function->date = function() use (&$date) {
+ $this->function->date = function () use (&$date) {
return $date = date('r', 42);
},
$result = new SUT()
@@ -205,7 +205,7 @@ class Message extends Test\Unit\Suite
{
$this
->given(
- $this->function->date = function() use (&$date) {
+ $this->function->date = function () use (&$date) {
return $date = date('r', 42);
},
$content = new Text('foo'),
@@ -228,10 +228,10 @@ class Message extends Test\Unit\Suite
{
$this
->given(
- $this->function->date = function() use (&$date) {
+ $this->function->date = function () use (&$date) {
return $date = date('r', 42);
},
- $this->function->microtime = function() use (&$microtime) {
+ $this->function->microtime = function () use (&$microtime) {
return $microtime = 42;
},
$content1 = new Text('foo'),
diff --git a/Test/Unit/Content/Related.php b/Test/Unit/Content/Related.php
index f45865f..bb2372f 100644
--- a/Test/Unit/Content/Related.php
+++ b/Test/Unit/Content/Related.php
@@ -78,7 +78,7 @@ class Related extends Test\Unit\Suite
{
$this
->given(
- $this->function->microtime = function() use (&$microtime) {
+ $this->function->microtime = function () use (&$microtime) {
return $microtime = 42;
},
$related1 = new CHtml('<strong>foo</strong>'),