Skip to content

Commit b5df435

Browse files
committed
update code convention
1 parent ea5dd81 commit b5df435

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Helper/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ public function buildUrl($inputUrl)
9999
$ciUrl = $baseUrl . $inputUrl . "?";
100100

101101
if ($this->getImageQuality() < 100) {
102-
if (!strpos($ciUrl, "?q=" . $this->getImageQuality())) {
102+
if (strpos($ciUrl, "?q=" . $this->getImageQuality()) === false) {
103103
$ciUrl .= "q=" . $this->getImageQuality();
104104
}
105105
$flagCheck = true;
106106
}
107107

108108
if ($this->isOrgIfSml()) {
109109
$configParam = "org_if_sml=1";
110-
if (!strpos($ciUrl, $configParam)) {
110+
if (strpos($ciUrl, $configParam) === false) {
111111

112112
if (substr($ciUrl, -1) === $this->getImageQuality() . '?') {
113113
$ciUrl = substr($ciUrl, 0, -1);

Helper/Images.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ public function processHtml($html)
108108
$imageSrc = $element->getAttribute('src') . $quality;
109109

110110
if (!empty($this->config->getCName())) {
111-
if (!stripos($imageSrc, $this->config->getCName())) {
111+
if (stripos($imageSrc, $this->config->getCName()) === false) {
112112
$ciSrc = $this->config->buildUrl($imageSrc);
113113
$element->setAttribute('src', $ciSrc);
114114
}
115115
} else {
116-
if (!stripos($imageSrc, $this->config->getToken())) {
116+
if (stripos($imageSrc, $this->config->getToken()) === false) {
117117
$ciSrc = $this->config->buildUrl($imageSrc);
118118
$element->setAttribute('src', $ciSrc);
119119
}

0 commit comments

Comments
 (0)