Skip to content

Commit 75cc773

Browse files
committed
Fixed CS
1 parent e5d99f6 commit 75cc773

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

src/TestSuite/Constraint/MailContainsConstraint.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function matches($other)
3434

3535
return preg_match("/$other/", $message) !== false;
3636
}
37+
3738
return false;
3839
}
3940

@@ -47,6 +48,7 @@ public function toString()
4748
if ($this->at) {
4849
return sprintf('is in email #%d', $this->at);
4950
}
51+
5052
return 'is in an email';
5153
}
5254
}

src/TestSuite/Constraint/MailSentFromConstraint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function toString()
3131
if ($this->at) {
3232
return sprintf('sent email #%d', $this->at);
3333
}
34+
3435
return 'sent an email';
3536
}
3637
}

src/TestSuite/Constraint/MailSentToConstraint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function toString()
3131
if ($this->at) {
3232
return sprintf('was sent email #%d', $this->at);
3333
}
34+
3435
return 'was sent an email';
3536
}
3637
}

src/TestSuite/Constraint/MailSentWithConstraint.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class MailSentWithConstraint extends MailConstraintBase
2424
/**
2525
* Constructor
2626
*
27-
* @param string $method Method
2827
* @param int $at At
28+
* @param string $method Method
2929
* @return void
3030
*/
3131
public function __construct($at = null, $method = null)
@@ -54,6 +54,7 @@ public function matches($other)
5454
return true;
5555
}
5656
}
57+
5758
return false;
5859
}
5960

@@ -67,7 +68,7 @@ public function toString()
6768
if ($this->at) {
6869
return sprintf('is in email #%d `%s`', $this->at, $this->method);
6970
}
71+
7072
return sprintf('is in an email `%s`', $this->method);
7173
}
72-
7374
}

src/TestSuite/TestEmailTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
*/
1515
namespace Cake\TestSuite;
1616

17-
use Cake\Mailer\Email;
1817
use Cake\Mailer\AbstractTransport;
18+
use Cake\Mailer\Email;
1919

2020
/**
2121
* TestEmailTransport
@@ -31,7 +31,7 @@ class TestEmailTransport extends AbstractTransport
3131
/**
3232
* Stores email for later assertions
3333
*
34-
* @param Email $email
34+
* @param Email $email Email
3535
* @return bool
3636
*/
3737
public function send(Email $email)

tests/TestCase/TestSuite/EmailTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace Cake\Test\TestCase\TestSuite;
1616

1717
use Cake\Mailer\Email;
18-
use Cake\TestSuite\TestEmailTransport;
1918
use Cake\TestSuite\TestCase;
19+
use Cake\TestSuite\TestEmailTransport;
2020
use PHPUnit\Framework\AssertionFailedError;
2121

2222
/**

0 commit comments

Comments
 (0)