Merge pull request #7427 from cakephp/2.7-cs

Fix CS
This commit is contained in:
ADmad 2015-09-21 18:15:06 +05:30
commit da969bbb80
3 changed files with 6 additions and 6 deletions

View file

@ -862,7 +862,7 @@ class DboSource extends DataSource {
} catch (Exception $e) {
$connected = false;
}
$this->connected = ! empty($connected);
$this->connected = !empty($connected);
return $this->connected;
}

View file

@ -832,7 +832,7 @@ class CakeResponse {
if (!$public && !$private && !$noCache) {
return null;
}
$sharable = $public || ! ($private || $noCache);
$sharable = $public || !($private || $noCache);
return $sharable;
}
if ($public) {

View file

@ -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);
}