diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index a41e88cef..235ff83d8 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -862,7 +862,7 @@ class DboSource extends DataSource { } catch (Exception $e) { $connected = false; } - $this->connected = ! empty($connected); + $this->connected = !empty($connected); return $this->connected; } diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index a19299228..de02e9c52 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -832,7 +832,7 @@ class CakeResponse { if (!$public && !$private && !$noCache) { return null; } - $sharable = $public || ! ($private || $noCache); + $sharable = $public || !($private || $noCache); return $sharable; } if ($public) { diff --git a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php index 7945f7481..3be1a7f95 100644 --- a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php +++ b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php @@ -2288,10 +2288,10 @@ class CakeEmailTest extends CakeTestCase { protected function _getEmailByOldStyleCharset($charset, $headerCharset) { $email = new CakeEmail(array('transport' => 'Debug')); - if (! empty($charset)) { + if (!empty($charset)) { $email->charset = $charset; } - if (! empty($headerCharset)) { + if (!empty($headerCharset)) { $email->headerCharset = $headerCharset; } @@ -2312,10 +2312,10 @@ class CakeEmailTest extends CakeTestCase { protected function _getEmailByNewStyleCharset($charset, $headerCharset) { $email = new CakeEmail(array('transport' => 'Debug')); - if (! empty($charset)) { + if (!empty($charset)) { $email->charset($charset); } - if (! empty($headerCharset)) { + if (!empty($headerCharset)) { $email->headerCharset($headerCharset); }