mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
Fix CS
This commit is contained in:
parent
e176e2f4e1
commit
97b6f8674c
3 changed files with 6 additions and 6 deletions
|
@ -862,7 +862,7 @@ class DboSource extends DataSource {
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$connected = false;
|
$connected = false;
|
||||||
}
|
}
|
||||||
$this->connected = ! empty($connected);
|
$this->connected = !empty($connected);
|
||||||
return $this->connected;
|
return $this->connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -832,7 +832,7 @@ class CakeResponse {
|
||||||
if (!$public && !$private && !$noCache) {
|
if (!$public && !$private && !$noCache) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$sharable = $public || ! ($private || $noCache);
|
$sharable = $public || !($private || $noCache);
|
||||||
return $sharable;
|
return $sharable;
|
||||||
}
|
}
|
||||||
if ($public) {
|
if ($public) {
|
||||||
|
|
|
@ -2288,10 +2288,10 @@ class CakeEmailTest extends CakeTestCase {
|
||||||
protected function _getEmailByOldStyleCharset($charset, $headerCharset) {
|
protected function _getEmailByOldStyleCharset($charset, $headerCharset) {
|
||||||
$email = new CakeEmail(array('transport' => 'Debug'));
|
$email = new CakeEmail(array('transport' => 'Debug'));
|
||||||
|
|
||||||
if (! empty($charset)) {
|
if (!empty($charset)) {
|
||||||
$email->charset = $charset;
|
$email->charset = $charset;
|
||||||
}
|
}
|
||||||
if (! empty($headerCharset)) {
|
if (!empty($headerCharset)) {
|
||||||
$email->headerCharset = $headerCharset;
|
$email->headerCharset = $headerCharset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2312,10 +2312,10 @@ class CakeEmailTest extends CakeTestCase {
|
||||||
protected function _getEmailByNewStyleCharset($charset, $headerCharset) {
|
protected function _getEmailByNewStyleCharset($charset, $headerCharset) {
|
||||||
$email = new CakeEmail(array('transport' => 'Debug'));
|
$email = new CakeEmail(array('transport' => 'Debug'));
|
||||||
|
|
||||||
if (! empty($charset)) {
|
if (!empty($charset)) {
|
||||||
$email->charset($charset);
|
$email->charset($charset);
|
||||||
}
|
}
|
||||||
if (! empty($headerCharset)) {
|
if (!empty($headerCharset)) {
|
||||||
$email->headerCharset($headerCharset);
|
$email->headerCharset($headerCharset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue