Jake Vanderwerf
2026-01-25 b38f03c0e7218762d90fa5092696b127f24f36db
inc/integrations/GoogleMyBusiness.php
@@ -2,7 +2,6 @@
namespace JVBase\integrations;
use JVBase\meta\MetaManager;
use JVBase\managers\CacheManager;
use WP_Error;
if (!defined('ABSPATH')) {
   exit;
@@ -129,7 +128,9 @@
         ]
      );
//    $this->cache->clear();
      if (JVB_TESTING) {
         $this->cache->flush();
      }
   }
   protected function initialize(): void
@@ -1737,9 +1738,7 @@
      $text = preg_replace('/\s+/', ' ', $text);
      // Trim
      $text = trim($text);
      return $text;
      return trim($text);
   }
   /**
    * Format date for GMB API
@@ -1780,11 +1779,10 @@
         // Validate hour and minute ranges
         if ($hour >= 0 && $hour <= 23 && $minute >= 0 && $minute <= 59) {
            $result = [
            return [
               'hours' => $hour,
               'minutes' => $minute
            ];
            return $result;
         }
      }
@@ -2074,9 +2072,7 @@
         [],
         'posts'
      );
      $result = $response['foodMenus'] ?? [];
      return $result;
      return $response['foodMenus'] ?? [];
   }
   /**
@@ -2279,7 +2275,7 @@
   {
      try {
         // Use the static method to clear the entire cache group
         $this->cache->clear();
         $this->cache->flush();
         return true;
      } catch (\Exception $e) {
@@ -2351,12 +2347,11 @@
            'dailyRange.endDate.day' => date('j', strtotime($end_date))
         ];
         $response = $this->getRequest(
            "/v1/{$location_name}:fetchMultiDailyMetricsTimeSeries?" . http_build_query($params),
            $params,
            'performance'
         );
      return $response;
      return $this->getRequest(
         "/v1/{$location_name}:fetchMultiDailyMetricsTimeSeries?" . http_build_query($params),
         $params,
         'performance'
      );
   }
   /**