@@ -51,9 +51,9 @@ public function licenseExpirationNotice()
5151            return ;
5252        }
5353
54-         global  $ pagenow  ;
54+         global  $ pageNow  ;
5555
56-         if  (' plugins.php '   !== $ pagenow  ) {
56+         if  ($ pageNow   !== ' plugins.php '  ) {
5757            return ;
5858        }
5959
@@ -83,13 +83,13 @@ public function licenseExpirationNotice()
8383
8484    public  function  checkUpdate ($ cacheData )
8585    {
86-         global  $ pagenow  ;
86+         global  $ pageNow  ;
8787
8888        if  (!\is_object ($ cacheData )) {
8989            $ cacheData  = new  stdClass ();
9090        }
9191
92-         if  (' plugins.php '   === $ pagenow   && is_multisite ()) {
92+         if  ($ pageNow   === ' plugins.php '   && is_multisite ()) {
9393            return  $ cacheData ;
9494        }
9595
@@ -98,7 +98,7 @@ public function checkUpdate($cacheData)
9898
9999    public  function  setProPluginInfo ($ data , $ action  = '' , $ args  = null )
100100    {
101-         if  (' plugin_information '   !== $ action  ) {
101+         if  ($ action   !== ' plugin_information '  ) {
102102            return  $ data ;
103103        }
104104        if  (!isset ($ args ->slug ) || ($ args ->slug  !== $ this  ->slug )) {
@@ -152,9 +152,9 @@ public function showUpdateInfo($file, $plugin)
152152
153153    public  function  removeCache ()
154154    {
155-         global  $ pagenow  ;
155+         global  $ pageNow  ;
156156
157-         if  ('update-core.php '  ===  $ pagenow   && isset ($ _GET  ['force-check ' ])) {
157+         if  ($ pageNow  ===  'update-core.php '  && isset ($ _GET  ['force-check ' ])) {
158158            delete_option (PluginCommonConfig::getProPluginPrefix () . $ this  ->cacheKey );
159159        }
160160    }
@@ -201,18 +201,18 @@ public function checkCacheData($cacheData)
201201            $ cacheData ->response [$ this  ->name ] = $ this  ->formatApiResponse ($ versionInfo );
202202        } else  {
203203            $ noUpdateInfo  = (object ) [
204-                 'id '  => $ this  ->name ,
205-                 'slug '  => $ this  ->slug ,
206-                 'plugin '  => $ this  ->name ,
204+                 'id '            => $ this  ->name ,
205+                 'slug '          => $ this  ->slug ,
206+                 'plugin '        => $ this  ->name ,
207207                'new_version '  => $ this  ->version ,
208-                 'url '  => '' ,
209-                 'package '  => '' ,
210-                 'banners '  => [
208+                 'url '           => '' ,
209+                 'package '       => '' ,
210+                 'banners '       => [
211211                    'high '  => 'https://ps.w.org/bit-flow/assets/banner-772x250.jpg?rev=2657199 ' ,
212212                ],
213-                 'banners_rtl '  => [],
214-                 'tested '  => '' ,
215-                 'requires_php '  => '' ,
213+                 'banners_rtl '     => [],
214+                 'tested '          => '' ,
215+                 'requires_php '    => '' ,
216216                'compatibility '  => new  stdClass (),
217217            ];
218218            $ cacheData ->no_update [$ this  ->name ] = $ noUpdateInfo ;
@@ -254,7 +254,7 @@ private function setCache($cacheValue)
254254
255255        $ data  = [
256256            'timeout '  => $ expiration ,
257-             'value '  => $ cacheValue ,
257+             'value '     => $ cacheValue ,
258258        ];
259259
260260        update_option (PluginCommonConfig::getProPluginPrefix () . $ this  ->cacheKey , $ data , 'no ' );
0 commit comments