Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix coding standards.

  • Loading branch information...
commit 2480ee1beb67e378f8aceab4eb1cb67e28588541 1 parent 76e724e
@markstory markstory authored
View
6 lib/Cake/Network/Email/CakeEmail.php
@@ -139,7 +139,7 @@ class CakeEmail {
* @var mixed True to generate, False to ignore, String with value
*/
protected $_messageId = true;
-
+
/**
* Domain for messageId generation.
* Needs to be manually set for CLI mailing as env('HTTP_HOST') is empty
@@ -320,7 +320,7 @@ public function __construct($config = null) {
if (empty($this->_domain)) {
$this->_domain = php_uname('n');
}
-
+
if ($config) {
$this->config($config);
}
@@ -913,7 +913,7 @@ public function domain($domain = null) {
$this->_domain = $domain;
return $this;
}
-
+
/**
* Add attachments to the email message
*
View
4 lib/Cake/Test/Case/Console/ShellTest.php
@@ -597,10 +597,10 @@ public function testCreateFileInteractive() {
*/
public function testCreateFileNoPermissions() {
$this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Cant perform operations using permissions on windows.');
-
+
$path = TMP . 'shell_test';
$file = $path . DS . 'no_perms';
-
+
if (!is_dir($path)) {
mkdir($path);
}
View
1  lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -5258,7 +5258,6 @@ public function testSaveAssociatedHasManyEmpty() {
$result = $TestModel->saveAssociated(array('Article' => array()), array('validate' => true, 'atomic' => false));
$this->assertEquals(array('Article' => false), $result);
-
}
/**
View
6 lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
@@ -397,7 +397,7 @@ public function testDomain() {
$result = $this->CakeEmail->domain();
$expected = env('HTTP_HOST') ? env('HTTP_HOST') : php_uname('n');
$this->assertSame($expected, $result);
-
+
$this->CakeEmail->domain('example.org');
$result = $this->CakeEmail->domain();
$expected = 'example.org';
@@ -408,12 +408,12 @@ public function testDomain() {
* testMessageIdWithDomain method
*
* @return void
- */
+ */
public function testMessageIdWithDomain() {
$result = $this->CakeEmail->getHeaders();
$expected = '@' . (env('HTTP_HOST') ? env('HTTP_HOST') : php_uname('n')) . '>';
$this->assertTextContains($expected, $result['Message-ID']);
-
+
$this->CakeEmail->domain('example.org');
$result = $this->CakeEmail->getHeaders();
$expected = '@example.org>';
View
3  lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -3551,7 +3551,6 @@ public function testRadioHiddenInputDisabling() {
$this->assertTags($result, $expected);
}
-
/**
* test adding an empty option for radio buttons
*
@@ -3607,7 +3606,7 @@ public function testRadioAddEmptyOption() {
'/div'
);
$this->assertTags($result, $expected);
-
+
$result = $this->Form->input('Model.1.field', array(
'type' => 'radio',
'options' => array('option A'),
Please sign in to comment.
Something went wrong with that request. Please try again.