File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments