Skip to content

Commit

Permalink
Merge pull request #4079 from bcrowe/3.0-cake-dev
Browse files Browse the repository at this point in the history
3.0 - Remove remaining cake_dev domain
  • Loading branch information
markstory committed Jul 25, 2014
2 parents 435d442 + 469a590 commit b8a7b0a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Network/Email/Email.php
Expand Up @@ -616,7 +616,7 @@ protected function _validateEmail($email) {
} elseif (preg_match($this->_emailPattern, $email)) {
return;
}
throw new Error\SocketException(__d('cake_dev', 'Invalid email: "%s"', $email));
throw new Error\SocketException(sprintf('Invalid email: "%s"', $email));
}

/**
Expand Down
5 changes: 1 addition & 4 deletions src/Network/Response.php
Expand Up @@ -1334,10 +1334,7 @@ public function file($path, array $options = array()) {
);

if (strpos($path, '..') !== false) {
throw new Error\NotFoundException(__d(
'cake_dev',
'The requested file contains `..` and will not be read.'
));
throw new Error\NotFoundException('The requested file contains `..` and will not be read.');
}

if (!is_file($path)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Template/Error/missing_layout.ctp
Expand Up @@ -20,7 +20,7 @@
</p>

<p>
<?php echo __d('cake_dev', 'Confirm you have created the file: %s', h($file)); ?>
<?= sprintf('Confirm you have created the file: %s', h($file)); ?>
in one of the following paths:
</p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Network/Email/SmtpTransportTest.php
Expand Up @@ -511,7 +511,7 @@ public function testExplicitDisconnect() {
* @return void
*/
public function testExplicitDisconnectNotConnected() {
$callback = function($arg) {
$callback = function($arg) {
$this->assertNotEquals("QUIT\r\n", $arg);
};
$this->socket->expects($this->any())->method('write')->will($this->returnCallback($callback));
Expand All @@ -532,7 +532,7 @@ public function testKeepAlive() {
$email->to('cake@cakephp.org', 'CakePHP');
$email->expects($this->exactly(2))->method('message')->will($this->returnValue(array('First Line')));

$callback = function($arg) {
$callback = function($arg) {
$this->assertNotEquals("QUIT\r\n", $arg);
};
$this->socket->expects($this->any())->method('write')->will($this->returnCallback($callback));
Expand Down

0 comments on commit b8a7b0a

Please sign in to comment.