Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Apr 23, 2018
1 parent e5d99f6 commit 75cc773
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/TestSuite/Constraint/MailContainsConstraint.php
Expand Up @@ -34,6 +34,7 @@ public function matches($other)

return preg_match("/$other/", $message) !== false;
}

return false;
}

Expand All @@ -47,6 +48,7 @@ public function toString()
if ($this->at) {
return sprintf('is in email #%d', $this->at);
}

return 'is in an email';
}
}
1 change: 1 addition & 0 deletions src/TestSuite/Constraint/MailSentFromConstraint.php
Expand Up @@ -31,6 +31,7 @@ public function toString()
if ($this->at) {
return sprintf('sent email #%d', $this->at);
}

return 'sent an email';
}
}
1 change: 1 addition & 0 deletions src/TestSuite/Constraint/MailSentToConstraint.php
Expand Up @@ -31,6 +31,7 @@ public function toString()
if ($this->at) {
return sprintf('was sent email #%d', $this->at);
}

return 'was sent an email';
}
}
5 changes: 3 additions & 2 deletions src/TestSuite/Constraint/MailSentWithConstraint.php
Expand Up @@ -24,8 +24,8 @@ class MailSentWithConstraint extends MailConstraintBase
/**
* Constructor
*
* @param string $method Method
* @param int $at At
* @param string $method Method
* @return void
*/
public function __construct($at = null, $method = null)
Expand Down Expand Up @@ -54,6 +54,7 @@ public function matches($other)
return true;
}
}

return false;
}

Expand All @@ -67,7 +68,7 @@ public function toString()
if ($this->at) {
return sprintf('is in email #%d `%s`', $this->at, $this->method);
}

return sprintf('is in an email `%s`', $this->method);
}

}
4 changes: 2 additions & 2 deletions src/TestSuite/TestEmailTransport.php
Expand Up @@ -14,8 +14,8 @@
*/
namespace Cake\TestSuite;

use Cake\Mailer\Email;
use Cake\Mailer\AbstractTransport;
use Cake\Mailer\Email;

/**
* TestEmailTransport
Expand All @@ -31,7 +31,7 @@ class TestEmailTransport extends AbstractTransport
/**
* Stores email for later assertions
*
* @param Email $email
* @param Email $email Email
* @return bool
*/
public function send(Email $email)
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/TestSuite/EmailTraitTest.php
Expand Up @@ -15,8 +15,8 @@
namespace Cake\Test\TestCase\TestSuite;

use Cake\Mailer\Email;
use Cake\TestSuite\TestEmailTransport;
use Cake\TestSuite\TestCase;
use Cake\TestSuite\TestEmailTransport;
use PHPUnit\Framework\AssertionFailedError;

/**
Expand Down

0 comments on commit 75cc773

Please sign in to comment.