=== DUPLICATE FUNCTION SCAN === Scanning 500 files... ⚠️ FOUND 133 DUPLICATE FUNCTIONS: ❌ fmt() - /cleanup.php:35 - /pages/currency-calculator.php:1021 ❌ getPropertyImageUrl() - /includes/image-helpers.php:117 - /pages/activity.php:175 - /pages/property.php:259 - /functions.php:1776 ❌ actResolveImage() - /includes/image-helpers.php:209 - /pages/activity.php:172 ❌ homeRideClasses() - /includes/home_rides_section.php:13 - /pages/home.php:694 ❌ homeRideSocialProof() - /includes/home_rides_section.php:32 - /pages/home.php:737 ❌ miceSendMail() - /includes/mice_helpers.php:273 - /functions.php:3385 ❌ coSafe() - /includes/company_helpers.php:773 - /pages/carbon-offset.php:274 ❌ vendorCanAddProperty() - /includes/subscription_helpers.php:105 - /functions.php:344 ❌ vendorCanAddRoom() - /includes/subscription_helpers.php:120 - /functions.php:368 ❌ vendorCanAddStaff() - /includes/subscription_helpers.php:138 - /functions.php:393 ❌ getVendorPlan() - /includes/subscription_helpers.php:278 - /functions.php:322 ❌ startVendorTrial() - /includes/subscription_helpers.php:309 - /functions.php:251 ❌ changeVendorPlan() - /includes/subscription_helpers.php:337 - /functions.php:417 ❌ cancelVendorSubscription() - /includes/subscription_helpers.php:430 - /functions.php:525 ❌ reactivateVendorSubscription() - /includes/subscription_helpers.php:442 - /functions.php:542 ❌ toggleVendorAutoRenew() - /includes/subscription_helpers.php:451 - /functions.php:559 ❌ rvCrownSvg() - /includes/header.php:76 - /includes/footer.php:6 ❌ escapeHtml() - /includes/header.php:2247 - /includes/header.php:2462 - /includes/notifications.js.php:51 - /includes/concierge-widget.php:72 - /pages/map.php:1880 - /pages/admin/create-tenant.php:805 - /pages/robot-concierge.php:1079 - /pages/agent/dashboard.php:1017 - /pages/voice-concierge.php:1002 - /pages/restaurant.php:952 - /pages/ride-receipt.php:279 - /pages/live-chat.php:794 - /pages/group-chat.php:1670 - /pages/guest-menu.php:2105 ❌ runSearch() - /includes/header.php:2253 - /pages/map.php:1563 ❌ pollNotifications() - /includes/header.php:2417 - /includes/notifications.js.php:7 ❌ showToast() - /includes/header.php:2435 - /includes/notifications.js.php:31 - /pages/ar-room-preview.php:766 - /pages/profile-public.php:844 - /pages/guest-app.php:952 - /pages/smart-room.php:1190 - /pages/group-chat.php:1675 - /pages/guest-menu.php:2505 - /pages/crypto-referrals.php:1089 - /pages/wishlist.php:1036 - /pages/for-you.php:782 - /pages/ar-preview.php:763 ❌ tourImage() - /includes/tour_operators.php:438 - /pages/home-fold.php:649 - /pages/home.php:941 ❌ tourSafe() - /includes/tour_operators.php:512 - /pages/home-fold.php:706 ❌ tourTypeMeta() - /includes/tour_operators.php:516 - /pages/home-fold.php:687 - /pages/home.php:979 ❌ tourFormatDuration() - /includes/tour_operators.php:548 - /pages/home-fold.php:673 - /pages/home.php:965 ❌ gaQ() - /includes/analytics_helpers.php:26 - /pages/guest-app.php:26 ❌ gaQA() - /includes/analytics_helpers.php:37 - /pages/guest-app.php:31 ❌ gaPayoutStats() - /includes/analytics_helpers.php:869 - /pages/admin/analytics-global.php:185 ❌ gaCashPosition() - /includes/analytics_helpers.php:919 - /pages/admin/analytics-global.php:217 ❌ trackInteraction() - /pages/ar-room-preview.php:809 - /pages/ar-preview.php:866 ❌ toast() - /pages/carbon-offset.php:1429 - /pages/smart-key.php:1071 - /pages/carbon-marketplace.php:1233 - /pages/user/conversation.php:1420 - /pages/user/favorites.php:1023 - /pages/user/security.php:894 - /pages/user/notifications.php:932 - /pages/user/preferences.php:1385 - /pages/user/rewards.php:1145 - /pages/user/wishlist.php:1072 - /pages/blockchain-profile.php:1111 ❌ toggleSelectAll() - /pages/admin/payouts.php:654 - /pages/admin/audit-logs.php:912 - /pages/admin/bookings.php:1426 - /pages/admin/subscriptions.php:1139 - /pages/admin/iot-devices.php:1157 - /pages/admin/currencies.php:652 - /pages/admin/properties.php:1632 - /pages/admin/tenants.php:491 ❌ updateBulkBar() - /pages/admin/payouts.php:658 - /pages/admin/audit-logs.php:916 - /pages/admin/bookings.php:1430 - /pages/admin/subscriptions.php:1143 - /pages/admin/iot-devices.php:1161 - /pages/admin/currencies.php:657 - /pages/admin/properties.php:1636 - /pages/admin/tenants.php:495 - /pages/agent/tickets.php:908 - /pages/agent/dashboard.php:928 - /pages/user/favorites.php:894 - /pages/user/notifications.php:844 - /pages/user/wishlist.php:914 ❌ submitBulk() - /pages/admin/payouts.php:665 - /pages/admin/bookings.php:1437 - /pages/admin/subscriptions.php:1148 - /pages/admin/iot-devices.php:1166 - /pages/admin/external-events.php:595 - /pages/admin/currencies.php:663 - /pages/admin/tenants.php:500 ❌ openCreateModal() - /pages/admin/payouts.php:670 - /pages/admin/subscriptions.php:1171 - /pages/admin/email-templates.php:674 ❌ closeCreateModal() - /pages/admin/payouts.php:671 - /pages/admin/subscriptions.php:1172 - /pages/admin/email-templates.php:675 ❌ admSafeOne() - /pages/admin/restaurant-payouts.php:25 - /pages/admin/restaurant-detail.php:25 - /pages/admin/restaurant-form.php:23 - /pages/admin/restaurant-vendors.php:23 - /pages/admin/restaurants.php:23 - /pages/admin/restaurant-sales.php:23 ❌ admSafeAll() - /pages/admin/restaurant-payouts.php:38 - /pages/admin/restaurant-detail.php:38 - /pages/admin/restaurant-form.php:35 - /pages/admin/restaurant-vendors.php:35 - /pages/admin/restaurants.php:35 - /pages/admin/restaurant-sales.php:36 ❌ admTableExists() - /pages/admin/restaurant-payouts.php:51 - /pages/admin/restaurant-detail.php:51 - /pages/admin/restaurant-form.php:47 - /pages/admin/restaurant-vendors.php:47 - /pages/admin/restaurants.php:47 - /pages/admin/restaurant-sales.php:49 ❌ admColumnExists() - /pages/admin/restaurant-payouts.php:78 - /pages/admin/restaurant-detail.php:73 - /pages/admin/restaurant-form.php:68 - /pages/admin/restaurant-vendors.php:57 - /pages/admin/restaurants.php:57 - /pages/admin/restaurant-sales.php:74 ❌ admSafeExec() - /pages/admin/restaurant-payouts.php:104 - /pages/admin/restaurant-detail.php:98 - /pages/admin/restaurant-form.php:92 - /pages/admin/restaurant-vendors.php:67 - /pages/admin/restaurants.php:67 ❌ admFlashSet() - /pages/admin/restaurant-payouts.php:111 - /pages/admin/restaurant-detail.php:105 - /pages/admin/restaurant-form.php:122 - /pages/admin/restaurants.php:74 ❌ admFlashConsume() - /pages/admin/restaurant-payouts.php:120 - /pages/admin/restaurant-detail.php:114 - /pages/admin/restaurant-form.php:128 - /pages/admin/restaurants.php:83 ❌ admCsrfToken() - /pages/admin/restaurant-payouts.php:134 - /pages/admin/restaurant-detail.php:128 - /pages/admin/restaurant-form.php:141 - /pages/admin/restaurant-vendors.php:74 - /pages/admin/restaurants.php:97 ❌ admCsrfValid() - /pages/admin/restaurant-payouts.php:143 - /pages/admin/restaurant-detail.php:137 - /pages/admin/restaurant-form.php:149 - /pages/admin/restaurant-vendors.php:83 - /pages/admin/restaurants.php:106 ❌ currentUserHasBookingPermission() - /pages/admin/bookings.php:19 - /pages/admin/admin-booking-detail.php:11 ❌ inlineSave() - /pages/admin/bookings.php:1442 - /pages/admin/properties.php:1657 ❌ singleAction() - /pages/admin/bookings.php:1458 - /pages/admin/properties.php:1680 - /pages/user/messages.php:1354 ❌ openCmdk() - /pages/admin/bookings.php:1517 - /pages/admin/properties.php:1709 ❌ closeCmdk() - /pages/admin/bookings.php:1522 - /pages/admin/properties.php:1715 ❌ renderCmdk() - /pages/admin/bookings.php:1526 - /pages/admin/properties.php:1716 ❌ closeModal() - /pages/admin/roles.php:912 - /pages/admin/iot-devices.php:1008 - /pages/admin/vendors.php:574 - /pages/admin/currencies.php:648 - /pages/admin/users.php:583 - /pages/admin/properties.php:1599 ❌ tpSafe() - /pages/admin/tour-packages.php:195 - /pages/trip-planner.php:39 ❌ showProgress() - /pages/admin/cron-jobs.php:616 - /pages/admin/backup.php:445 ❌ openEditModal() - /pages/admin/vendors.php:575 - /pages/admin/currencies.php:634 - /pages/admin/properties.php:1601 ❌ openAddModal() - /pages/admin/currencies.php:620 - /pages/admin/properties.php:1594 - /pages/user/payment-methods.php:970 ❌ confirmDelete() - /pages/admin/properties.php:1685 - /pages/user/messages.php:1381 ❌ openLightbox() - /pages/admin/kyc-review.php:330 - /pages/activity.php:1239 - /pages/property.php:2623 - /pages/tour-package.php:1170 ❌ closeLightbox() - /pages/admin/kyc-review.php:334 - /pages/activity.php:1250 - /pages/property.php:2632 - /pages/tour-package.php:1177 ❌ revendaCachePath() - /pages/activity.php:14 - /pages/activities.php:27 - /pages/properties.php:28 - /pages/property.php:14 ❌ revendaCacheGet() - /pages/activity.php:21 - /pages/activities.php:34 - /pages/properties.php:35 - /pages/property.php:21 ❌ revendaCacheSet() - /pages/activity.php:33 - /pages/activities.php:45 - /pages/properties.php:46 - /pages/property.php:32 ❌ revendaParallelFetch() - /pages/activity.php:48 - /pages/activities.php:50 - /pages/properties.php:55 - /pages/property.php:41 ❌ revendaImage() - /pages/activity.php:96 - /pages/home-fold.php:104 - /pages/home.php:439 - /pages/property.php:189 ❌ revendaBatchResolveImages() - /pages/activity.php:269 - /pages/property.php:263 ❌ navLightbox() - /pages/activity.php:1254 - /pages/property.php:2640 ❌ applyFilter() - /pages/careers.php:1570 - /pages/carbon-marketplace.php:1213 ❌ prSafe() - /pages/press.php:9 - /pages/pricing.php:228 ❌ homeLoadAirports() - /pages/home-fold.php:35 - /pages/home.php:383 ❌ homeHaversine() - /pages/home-fold.php:50 - /pages/home.php:394 ❌ homeLoadCityIndex() - /pages/home-fold.php:59 - /pages/home.php:403 ❌ homeEnrichDistance() - /pages/home-fold.php:76 - /pages/home.php:415 ❌ revendaPrefetchImages() - /pages/home-fold.php:134 - /pages/home.php:464 - /pages/api/home-loadmore.php:77 ❌ homeDestinationImage() - /pages/home-fold.php:187 - /pages/home.php:506 ❌ safeStarRating() - /pages/home-fold.php:205 - /pages/home.php:520 - /pages/api/home-loadmore.php:45 - /pages/properties.php:333 - /pages/property.php:383 - /functions.php:1896 ❌ homeActivityIcon() - /pages/home-fold.php:216 - /pages/home.php:531 - /pages/api/home-loadmore.php:62 ❌ homeCategoryMeta() - /pages/home-fold.php:233 - /pages/home.php:539 ❌ homePmsModules() - /pages/home-fold.php:274 - /pages/home.php:572 ❌ homeChannelPartners() - /pages/home-fold.php:292 - /pages/home.php:590 ❌ homePaymentMethods() - /pages/home-fold.php:306 - /pages/home.php:604 ❌ homeTravelerValues() - /pages/home-fold.php:319 - /pages/home.php:617 ❌ homeVendorBenefits() - /pages/home-fold.php:331 - /pages/home.php:629 ❌ homeHosLayers() - /pages/home-fold.php:343 - /pages/home.php:641 ❌ homeSmartFeatures() - /pages/home-fold.php:356 - /pages/home.php:654 ❌ homeEnterpriseModules() - /pages/home-fold.php:370 - /pages/home.php:668 ❌ homeGlobalDirectionPillars() - /pages/home-fold.php:384 - /pages/home.php:682 ❌ show() - /pages/home-fold.php:2250 - /pages/home.php:2916 ❌ fmtDate() - /pages/home-fold.php:2280 - /pages/home.php:2944 ❌ runAc() - /pages/home-fold.php:2304 - /pages/home.php:2967 ❌ paintAc() - /pages/home-fold.php:2330 - /pages/home.php:2993 ❌ hideAc() - /pages/home-fold.php:2331 - /pages/home.php:2994 ❌ pickAc() - /pages/home-fold.php:2332 - /pages/home.php:2995 ❌ hpEsc() - /pages/home-fold.php:2391 - /pages/home.php:3070 ❌ bkAgo() - /pages/booking.php:33 - /pages/user/bookings.php:32 - /pages/user/booking-detail.php:56 ❌ cancelBooking() - /pages/booking.php:1188 - /functions.php:800 ❌ applyFilters() - /pages/blog.php:804 - /pages/agent/tickets.php:942 - /pages/agent/dashboard.php:849 - /pages/guest-menu.php:2119 - /pages/user/bookings.php:760 - /pages/user/favorites.php:941 - /pages/user/booking-detail.php:885 - /pages/user/notifications.php:875 - /pages/user/wishlist.php:963 ❌ clearFilters() - /pages/blog.php:825 - /pages/agent/tickets.php:985 - /pages/agent/dashboard.php:897 - /pages/user/bookings.php:801 - /pages/user/favorites.php:988 - /pages/user/booking-detail.php:926 - /pages/user/notifications.php:898 - /pages/user/wishlist.php:1005 ❌ ppSafe() - /pages/privacy.php:12 - /pages/profile-public.php:12 ❌ initCityPicker() - /pages/activities.php:1265 - /pages/properties.php:1605 - /pages/mice.php:1091 ❌ render() - /pages/activities.php:1290 - /pages/properties.php:1632 - /pages/mice.php:1114 ❌ tkAgo() - /pages/agent/tickets.php:43 - /pages/ticket-detail.php:31 ❌ tkInitials() - /pages/agent/tickets.php:55 - /pages/ticket-detail.php:42 ❌ postAction() - /pages/agent/tickets.php:881 - /pages/agent/dashboard.php:954 ❌ toggleSelect() - /pages/agent/tickets.php:891 - /pages/agent/dashboard.php:910 - /pages/user/favorites.php:876 - /pages/user/notifications.php:827 - /pages/user/wishlist.php:897 ❌ clearSelection() - /pages/agent/tickets.php:901 - /pages/agent/dashboard.php:921 - /pages/user/favorites.php:887 - /pages/user/notifications.php:837 - /pages/user/wishlist.php:907 ❌ bulkAction() - /pages/agent/tickets.php:916 - /pages/agent/dashboard.php:935 - /pages/user/notifications.php:852 - /pages/user/messages.php:1317 ❌ getVisibleRows() - /pages/agent/tickets.php:995 - /pages/agent/dashboard.php:1035 ❌ focusRow() - /pages/agent/tickets.php:1002 - /pages/agent/dashboard.php:1039 ❌ setFilter() - /pages/agent/dashboard.php:842 - /pages/user/favorites.php:923 - /pages/user/wishlist.php:945 ❌ miceSafe() - /pages/venue.php:27 - /pages/mice.php:24 ❌ renderCart() - /pages/restaurant.php:895 - /pages/guest-menu.php:2372 ❌ getAmenityIconSafe() - /pages/api/home-loadmore.php:56 - /pages/property.php:361 - /functions.php:1892 ❌ getUserById() - /pages/profile.php:16 - /pages/user/profile.php:16 - /functions.php:194 ❌ fmtTime() - /pages/live-chat.php:799 - /pages/group-chat.php:1685 ❌ scrollBottom() - /pages/live-chat.php:802 - /pages/group-chat.php:1797 ❌ autogrow() - /pages/live-chat.php:814 - /pages/group-chat.php:1700 ❌ appendMessage() - /pages/live-chat.php:882 - /pages/group-chat.php:1756 ❌ submitBooking() - /pages/ride-book.php:486 - /pages/property.php:2858 ❌ bkDaysUntil() - /pages/user/bookings.php:27 - /pages/user/booking-detail.php:51 ❌ setView() - /pages/user/bookings.php:723 - /pages/user/favorites.php:930 - /pages/user/booking-detail.php:848 - /pages/user/wishlist.php:952 ❌ updateCharCount() - /pages/user/conversation.php:1245 - /pages/user/profile.php:1334 ❌ toggleStar() - /pages/user/conversation.php:1381 - /pages/user/messages.php:1369 ❌ bulkRemove() - /pages/user/favorites.php:901 - /pages/user/wishlist.php:922 ❌ copyCode() - /pages/user/security.php:882 - /pages/user/rewards.php:1139 ❌ snapshot() - /pages/user/profile.php:1348 - /pages/user/preferences.php:1329 ❌ msgSafe() - /pages/user/messages.php:49 - /pages/messages.php:28 ❌ msgInitial() - /pages/user/messages.php:52 - /pages/messages.php:31 ❌ msgRel() - /pages/user/messages.php:58 - /pages/messages.php:37 ❌ msgAvatarColor() - /pages/user/messages.php:69 - /pages/messages.php:48 ❌ slugify() - /functions.php:1246 - /tools/import_cities.php:47 ❌ smSlug() - /tools/seed-properties-more.php:266 - /tools/seed-properties-small.php:271 ❌ smPickImage() - /tools/seed-properties-more.php:273 - /tools/seed-properties-small.php:278 ❌ smAmenities() - /tools/seed-properties-more.php:281 - /tools/seed-properties-small.php:286