Phalcon Framework 4.1.2

Error: Call to undefined method Phalcon\Mvc\Model\Row::save()

/home/tafront/current/apps/Frontend/Controllers/BusinessController.php (259)
#0Apps\Frontend\Controllers\BusinessController->loadCatalogBusiness
/home/tafront/current/apps/Frontend/Controllers/BusinessController.php (605)
<?php
 
/**************************************************************************
 * Copyright (C) TrustanAlytica, Inc - All Rights Reserved
 *
 * @file        BusinessController.php
 * @author      [email protected]
 * @project     TrustanAlytica
 * @date        10.09.2020
 */
 
namespace Apps\Frontend\Controllers;
 
use Apps\Api\Controllers\PartnersController;
use Apps\Models\Partners\PartnerDetails;
use Apps\Models\UserPartnerChanges;
use Apps\Models\Business;
use Apps\Models\Cases\Cases;
use Apps\Models\CatalogCategories;
use Apps\Models\CatalogRelatedCategories;
use Apps\Models\Integration;
use Apps\Models\Partners\Partners;
use Apps\Models\Partners\PartnerSentimentals;
use Apps\Models\Partners\PartnerTypes;
use Apps\Models\Reviews\Reviews;
use Apps\Models\Search\Search;
use Apps\Models\PartnerServices;
use Apps\Models\Sections\SectionsPage;
use Apps\Models\UsersPartners;
use Apps\Models\Partners\PartnerSubscription;
use Carbon\Carbon;
use Phalcon\Mvc\Controller;
use Phalcon\Assets\Filters\Jsmin;
use Phalcon\Mvc\View;
 
 
class BusinessController extends BaseController
{
    public $shortDescr;
    public function initialize()
    {
        parent::initialize(); // TODO: Change the autogenerated stub
    }
 
    public function indexAction(string $slug = "")
    {
        //$this->showWebChat = false;
 
        // Get Parnter
        $partner = Partners::findFirst([
            'conditions' => 'slug = :slug:',
            'bind' => [
                'slug' => $slug
            ]
        ]);
 
        if (!$partner) {
            return $this->route404Action();
        }
 
        if (strlen($partner->countryCode) <= 0 || strlen($partner->stateCode) <= 0 || strlen($partner->cityName) <= 0) {
            return $this->route404Action();
        }
 
        return $this->response->redirect(strtolower($partner->countryCode)."/".strtolower($partner->stateCode)."/".strtolower(str_replace(" ",
                "-", $partner->cityName))."/reviews/".$partner->slug, false, 301);
 
        // if (!$partner) {
        //     // search to EllasticSearch
        //     $search = new Search();
        //     $elasticItem = $search->findBySlug($slug);
 
        //     if (!empty($elasticItem) && !empty($elasticItem['_source'])) {
        //         $source = $elasticItem['_source'];
        //         $id = substr($elasticItem['_id'], 3);
        //         // Find By Google
        //         $partnerTemp = new Partners();
        //         //$partner = $partnerTemp->createGoogle($id, $slug, $source['data']);
        //     }
        // }
 
        // if (!$partner || $partner->isEnabled == 0)
        //     return $this->route404Action();
 
        // //$partner->updateRating();
        // $this->config->test->uuidPartner = $partner->uuid;
 
        // $this->title = $partner->fullName;
        // $this->description = $partner->shortDescr;
 
        // $this->assets->collection('header')
        //     ->addCss('https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css', true)
        //     ->addCss('assets/css/datepicker.min.css')
        //     ->addCss('assets/css/auth-buttons.css');
        // $this->assets->collection('footer')
        //     ->addJs('https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js', true)
        //     ->addJs('https://code.highcharts.com/highcharts.js', true)
        //     ->addJs('https://code.highcharts.com/modules/series-label.js', true)
        //     ->addJs('https://code.highcharts.com/modules/exporting.js', true)
        //     ->addJs('https://code.highcharts.com/modules/export-data.js', true)
        //     ->addJs('assets/js/datepicker.min.js')
        //     ->addJs('assets/js/jquery.selectric.js')
        //     ->addJs('assets/page/business.js')
        //     ->addJs('assets/js/timeago.js');
 
        // $mapSetup = false;
 
        // if (!empty($partner->lat) && !empty($partner->lng)) {
        //     $mapSetup = true;
        //     $this->assets->collection('footer')
        //         ->addJs('https://maps.googleapis.com/maps/api/js?key=' . $this->config->path('google.mapKey') . '&callback=initMap', true);
        // }
 
        // $summaryArray = Reviews::$summaryArray;
 
        // $this->view->setVars(compact('partner', 'mapSetup', 'summaryArray'));
    }
 
    // company profile page function
    private function loadCatalogBusiness(
        $slug,
        $catalogType = 1,
        $countryCode = false,
        $stateCode = false,
        $cityName = false
    ) {
        if (strpos($cityName, ' ') !== false || strpos($cityName, '%20') !== false) {
            return $this->response->redirect(strtolower($countryCode)."/".strtolower($stateCode)."/".strtolower(str_replace([
                    " ", "%20"
                ], "-", $cityName))."/reviews/".$slug, false, 301);
        }
 
        if ($cityName == 'sf') {
            return $this->response->redirect("/".$countryCode."/".$stateCode."/san-francisco/reviews/".$slug, false,
                301);
        }
 
        $isBusiness = 1;
        $columns = [
            'id',
            'uuid',
            'slug',
            'fullName',
            'fullDescr',
            'aiContent',
            'reviews_summary',
            'website',
            'phone',
            'raitingAvg',
            'reviewsCount',
            'fullAddress',
            'countryCode',
            'countryName',
            'stateCode',
            'stateName',
            'cityName',
            'isEnabled',
            'showMap',
            'redirectUrl',
            'mediaPhotos',
            'facePhoto',
            'timeWork',
            'timezoneName',
            'timeWorkGoogle',
            'googlePlaceId',
            'lat',
            'lng',
            'isFollowWebsite',
            'uploaded'
        ];
//
        $partner = Partners::getProfile($slug);
//        die(json_encode($partner));
        if (!$partner) {
 
            $slug = preg_replace('/-/i', '_', $slug);
            $partner = Partners::getProfile($slug);
        }
 
        if (!$partner) {
            if ($cityName) {
                return $this->response->redirect("/".$countryCode."/".$stateCode."/" . $cityName, false, 302);
            }
 
            if ($stateCode) {
                return $this->response->redirect("/".$countryCode."/".$stateCode, false, 302);
            }
 
            if ($countryCode) {
                return $this->response->redirect("/".$countryCode, false, 302);
            }
            return $this->route404Action();
        }
 
        $subCategories = CatalogCategories::getSubcategories($partner->id);
 
        $redirectCategories = [
            'adult_toy_store', 'gay_massage', 'asian_massage', 'cbd_store', 'cannabis_store'
        ];
        $subdomainCategories = []; // Add more as needed
        foreach ($subCategories as $category) {
            if (in_array($category->category, $redirectCategories)) {
                $linkTa = 'https://trustanalytica.com';
                header('Location: '.$linkTa, true, 301);
                exit;
            }
 
            array_push($subdomainCategories, $category->category);
        }
 
        $isLocalBusiness = strlen($partner->countryCode) > 0
            && strlen($partner->stateCode) > 0
            && strlen($partner->cityName) > 0;
        if ($catalogType == 2 && $isLocalBusiness) {
            return $this->response->redirect("/".strtolower($partner->countryCode)."/".strtolower($partner->stateCode)."/".strtolower(str_replace(' ',
                        '-', $partner->cityName)."/reviews/".$partner->slug), false, 301);
        }
 
        if ($catalogType == 1 && (
                $countryCode != strtolower($partner->countryCode)
                || $stateCode != strtolower($partner->stateCode)
                || $cityName != strtolower(str_replace(" ", "-", $partner->cityName))
            )) {
            return $this->route404Action();
        }
 
        $partnerClone = Partners::makeClone($partner, $columns);
        $partnerTypes = $partnerClone->getCatalogTypes(!$isLocalBusiness);
 
        if ($partner->isEnabled == 0) {
            if (count($partner->redirectUrl) > 0) {
                return $this->response->redirect($partner->redirectUrl, true, 301);
            }
            if ($catalogType == 2) {
                foreach ($partnerTypes as $pt) {
                    if ($pt->type == 2) {
                        return $this->response->redirect("online/reviews/".$pt->slug, false, 301);
                    }
                }
            }
            return $this->response->redirect("/".strtolower($partner->countryCode)."/".strtolower($partner->stateCode)."/".strtolower(str_replace(' ',
                    '-', $partner->cityName)), false, 301);
        }
 
        if(empty($partner->categoryPhotos)) {
            $partner = Partners::getProfile($partner->slug);
 
            foreach($partnerTypes as $type) {
                $catalogCategory = CatalogCategories::findFirst([
                    'conditions' => 'category = :category:',
                    'bind' => ['category' => $type->category],
                ]);
                if ($catalogCategory && !empty($catalogCategory->mediaFiles)) {
                    $mediaFilesArray = json_decode($catalogCategory->mediaFiles, true);
                    if (is_array($mediaFilesArray) && count($mediaFilesArray) >= 5) {
                        shuffle($mediaFilesArray);
                        $selectedImages = array_slice($mediaFilesArray, 0, 5);
                        $partner->categoryPhotos = json_encode($selectedImages);
                        if (!$partner->save()) {
                            return $this->response->setJsonContent([
                                'status' => false,
                                'message' => 'Failed to update partner photos'
                            ]);
                        }
                        break;
                    }
                }
            }
        }
 
        $this->view->isClaimed = UsersPartners::findFirst([
            'conditions' => 'userId != 1 AND partnerId = :partnerId:',
            'bind' => ['partnerId' => $partner->id]
        ]) ? true : false;
 
        $this->config->test->uuidPartner = $partner->uuid;
 
        $this->seoDescription = "Find all reviews about ".html_entity_decode($partner->fullName,
                ENT_QUOTES)." at ".html_entity_decode($partner->fullAddress,
                ENT_QUOTES).". Rated by real customers from all platforms in one place on TrustAnalytica.com";
//        $this->description = $partner->shortDescr ? $partner->shortDescr : "";
        $partnerAddress = html_entity_decode($partner->fullAddress, ENT_QUOTES);
        $fullDescr = $this->cleanString($partner->fullDescr);
        $aiContent = $this->cleanString($partner->aiContent);
        $useGoogleReviews = $partner->use_google_reviews;
 
        $chartData = Reviews::getReviewChartDataSet(null, $partner->id);
        $chartDataSet = json_encode($chartData['data']);
        $year = $chartData['year'];
 
        $reviewInsights = Reviews::getReviewsAvgRating($partner->id);
        $googleReviewsCount = $reviewInsights[0]->googleReviewsCount;
        $taReviewsCount = $reviewInsights[0]->taReviewsCount;
        $reviewsAvg = $partner->use_google_reviews == 1 ? $partner->google_ratingAvg : $reviewInsights[0]->rating;
        $reviewsCurrentCount = $partner->use_google_reviews == 1 ? $partner->google_reviewsCount : $reviewInsights[0]->totalReviews;
 
        $this->year = $year;
        $this->view->encryptUuid = $this->crypt->encryptBase64($partner->uuid, $this->config->application->cryptSalt,
            true);
 
        $this->assets->collection('header')
            ->addCss('assets/packages/slick/slick.css')
            ->addCss('assets/css/auth-buttons.css?v='.$this->ver)
            ->addCss('assets/css/sentimental-chart.css?v='.$this->ver)
            ->addCss('assets/page/business/style.css?v='.$this->ver)
            ->addCss('assets/page/top-business/keyword-previewer.css?v='.$this->ver);
        $this->assets->collection('footer')
            ->addJs('assets/packages/slick/slick.min.js')
            ->addJs('assets/packages/jquery.lazy/jquery.lazy.min.js')
            ->addJs('assets/js/chart.min.js')
            ->addJs('assets/page/sentimental-analysis-chart.js?v='.$this->ver)
            ->addJs('assets/page/business/business.js?v='.$this->ver)
            ->addJs('assets/js/timeago.js')
            ->addJs('assets/js/catalog.js?v='.$this->ver)
            ->addJs('assets/companent/devbridge-autocomplete/src/jquery.autocomplete.js')
            ->addJs('assets/page/top-business/keyword-previewer.js?v='.$this->ver)
            ->addJs($this->config->projectAdmin.'badge/reputation/'.$this->view->encryptUuid.'.js?v='.$this->ver);
        $mapSetup = false;
 
        $type = 'trustanalytica';
        $review_object = new Reviews();
 
 
        $googleSnippets = json_encode($partnerClone->getGoogleSnippets());
        $badgeData = $partnerClone->getBadgeData();
        $categoryBreadCrumbs = $partnerClone->getCategoriesBreadcrumbs();
        $clockAll = $partnerClone->getWorkForFront($partner);
        $ratingShow = (array) $partnerClone->ratingShow($type);
        $getReviewsProcent = $partnerClone->getReviewsProcent();
 
        $sentimental = $review_object->getSentimental($partner, null);
        $goodKeywords = $sentimental['goodKeywords'];
        $badKeywords = $sentimental['badKeywords'];
 
        $reviews_visuals = $review_object->getReviewsVisual($partner);
        $summaryArray = $reviews_visuals['summaryArray'];
        $reviewsCount = $reviews_visuals['reviewsCount'];
        $reviewsScore = $reviews_visuals['reviewsScore'];
        $reviewsScoreInt = $reviews_visuals['reviewsScoreInt'];
 
        $reviews_visuals = $review_object->getAddReviewButton($partner, $this->session, $this->hybridauth);
        $rating = $reviews_visuals['rating'];
        $adapters = $reviews_visuals['adapters'];
        $sessionUser = $reviews_visuals['sessionUser'];
        $checkReview = $reviews_visuals['checkReview'];
        $message = $reviews_visuals['message'];
        $current_review = $reviews_visuals['current_review'];
        $reviewsHtml = $reviews_visuals['reviewsHtml'];
 
        $userReviews = (new Reviews())->getUserReviews($partner, 1, 20, 'trustanalytica');
//        die(json_encode($userReviewsx));
        $reviewsHtml = $this->view->getPartial('partials/business/viewReview', $userReviews);
        $reviews = $userReviews;
//        die(json_encode($userReviews));
        $page = $userReviews['page'];
        $showMore = $userReviews['showMore'];
        $lastReview = isset($reviews[0]) ? $reviews[0] : null;
 
        $this->title = number_format($reviewsAvg,
                1).' ⭐ '.html_entity_decode($partner->fullName).' Reviews by Real Customers '.date("Y");
        $this->seoTitle = html_entity_decode($partner->fullName, ENT_QUOTES)." - Reviews by Real Customers";
 
        $encryptUuid = !empty($partner) ? $this->crypt->encryptBase64($partner->uuid,
            $this->config->application->cryptSalt, true) : null;
 
        $partnerListingDetails = UserPartnerChanges::findFirst([
            'conditions' => 'status = "publish" AND fkPartnersId = :fkPartnersId:',
            'bind' => [
                'fkPartnersId' => $partner->id
            ]
        ]);
 
 
        $companyListingCategories = [];
        if ($partnerListingDetails && $partnerListingDetails != null) {
            $listingCategories = json_decode($partnerListingDetails->categories);
            if (count($listingCategories) > 0) {
                foreach ($listingCategories as $slug) {
                    $getCatalogCategory = CatalogCategories::getSubcategory($partner->id, $slug->category);
                    array_push($companyListingCategories, $getCatalogCategory);
                }
            }
        }
 
        $splitDescription = $this->splitParagraph($fullDescr);
        $seoDescriptionx = $partner->meta_description;
 
        if(!empty($seoDescriptionx)) {
            // Variables that you want to replace in the description
            $company_name = $partner->fullName;
            if(count($subCategories) > 0 && $subCategories[0]) {
                $category = $subCategories[0]->category;
            }
 
            $star_rating = $partner->star_rating;
            $year = date('Y'); // Get the current year dynamically
 
            // Create an associative array for the placeholders and their values
            $descriptionCategory = $category ? $category : '';
            $placeholders = [
                '{Company_name}' => $company_name,
                '{Category}' => $descriptionCategory ? str_replace('_', ' ', $descriptionCategory) : '',
                '{Star_Rating}' => round($reviewsAvg, 1),
                '{Year}' => $year
            ];
 
            // Replace the placeholders in the description with actual values
            $seoDescriptionx = str_replace(array_keys($placeholders), array_values($placeholders), $seoDescriptionx);
        }
 
        $metaTitle = $partner->meta_title;
 
        $metaTitlePlaceHolders = [
            '{Company_Name}' => $company_name,
            '{Rating}' => round($reviewsAvg, 1),
            '{Year}' => $year,
            '{phone}' => $partner->phone
        ];
 
        $profileMetaTitle = str_replace(array_keys($metaTitlePlaceHolders), array_values($metaTitlePlaceHolders), $metaTitle);
 
        // die(json_encode($profileMetaTitle));
        $photosNew = $this->photosToUse($partner->id);
        $partnerServices = PartnerServices::findByPartnerId($partner->id);
 
        $structuredServices = [];
        $structuredServices = [];
        $currency = '';
        if ($partnerServices) {
        foreach ($partnerServices as $service) {
    // Function to detect currency (USD/CAD) from the price
    $detectCurrency = function ($price) {
        if (strpos($price, 'CAD') !== false) {
            return 'CAD';
        } elseif (strpos($price, 'USD') !== false) {
            return 'USD';
        }
        return ''; // Default to empty string if no currency is found
    };
 
    // Function to format price (remove USD/CAD and add $)
    $formatPrice = function ($price) {
        // Check if price contains only letters (e.g., "Free", "Included", "Complimentary")
        if (!preg_match('/\d/', $price)) {
            return ucfirst(strtolower(trim($price))); // Keep text as is (capitalize first letter)
        }
 
        // Remove "USD" or "CAD"
        $price = preg_replace('/\s?(USD|CAD)/', '', $price);
 
        // Add $ before numbers
        return '$' . preg_replace('/ - /', ' - $', trim($price));
    };
 
    $subServices = [];
    $currency = ''; // Initialize currency as empty
 
    // Ensure sub_services is a valid string before processing
    $subServiceList = is_string($service->sub_services) ? explode(', ', $service->sub_services) : [];
 
    foreach ($subServiceList as $sub) {
        preg_match('/(.*?) \((.*?)\)/', $sub, $matches);
        $price = isset($matches[2]) ? $formatPrice($matches[2]) : '';
 
        // Detect currency from sub-service price
        $subCurrency = $detectCurrency($matches[2] ?? '');
        if ($subCurrency) {
            $currency = $subCurrency; // Set currency from sub-service if found
        }
 
        $subServices[] = [
            'name' => $matches[1] ?? $sub,
            'price' => $price,
        ];
    }
 
    // If no currency found in sub-services, detect from average price
    if (!$currency) {
        $currency = $detectCurrency($service->average_price);
    }
 
    $structuredServices[] = [
        'service' => $service->services,
        'sub_services' => $subServices,
        'average_price' => $formatPrice($service->average_price), // Format price
        'currency' => $currency, // Currency from sub-services or average price
    ];
}
 
        // die(json_encode($structuredServices));
        // Pass $partnerServices to the view
        $this->view->structuredServices = $structuredServices;
        $this->view->currency = $currency;
 
        $currentHost = $_SERVER['HTTP_HOST']; // e.g., "trustanalytica.org" or "lip-fillers.trustanalytica.org"
        $redirected = false;
        // Only redirect if the category exists in the array and the user is on "trustanalytica.org"
        if (in_array('lip_fillers', $subdomainCategories)) {
            if ($currentHost == "trustanalytica.org" || $currentHost !== "lip-fillers.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "lip-fillers.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('dermatologist', $subdomainCategories)) {
            if ($currentHost == "trustanalytica.org" || $currentHost !== "dermatologist.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "dermatologist.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('essay_writing', $subdomainCategories)) {
            if ($currentHost === "trustanalytica.org" || $currentHost !== "essay-writing.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "essay-writing.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('resume_service', $subdomainCategories)) {
            if ($currentHost === "trustanalytica.org" || $currentHost !== "resume-service.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "resume-service.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('jewelry_store', $subdomainCategories)) {
            if ($currentHost === "trustanalytica.org" || $currentHost !== "jewelry-store.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "jewelry-store.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('watch_store', $subdomainCategories)) {
            if ($currentHost === "trustanalytica.org" || $currentHost !== "watch-store.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "watch-store.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('pest_control_service', $subdomainCategories)) {
            if ($currentHost === "trustanalytica.org" || $currentHost !== "pest-control.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "pest-control.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        } else if (in_array('adjustable_bed', $subdomainCategories)) {
            if ($currentHost === "trustanalytica.org" || $currentHost !== "adjustable-bed.trustanalytica.org") {
                $cleanHost = $this->getCleanDomain($currentHost);
                $currentUrl = "https://{$cleanHost}{$_SERVER['REQUEST_URI']}";
                $newUrl = str_replace("trustanalytica.org", "adjustable-bed.trustanalytica.org", $currentUrl);
 
                header("Location: $newUrl", true, 301);
                $redirected = true;
                exit;
            }
        }
 
        $pinnedPhotoToUse = $this->photosToUsePinned($partner->id);
        $currentPicCategoryEnabled = $this->currentPicCategoryEnabled($partner->id);
        // die(json_encode($currentPicCategoryEnabled));
        $this->view->setVars(compact(
            'partner', 'isBusiness', 'mapSetup', 'summaryArray', 'googleSnippets', 'subCategories', 'badKeywords',
            'goodKeywords', 'chartDataSet', 'year', 'type', 'reviewsCount', 'reviewsScore', 'reviewsScoreInt',
            'rating', 'adapters', 'sessionUser', 'checkReview', 'message', 'current_review', 'reviewsHtml',
            'reviewsAvg', 'reviewsCurrentCount', 'partnerAddress',
            'encryptUuid', 'googleReviewsCount', 'taReviewsCount', 'badgeData', 'useGoogleReviews', 'partnerServices',
            'categoryBreadCrumbs', 'clockAll', 'ratingShow', 'getReviewsProcent', 'partnerListingDetails',
            'companyListingCategories', 'aiContent', 'fullDescr', 'countryCode', 'splitDescription', 'photosNew', 'seoDescriptionx', 'reviews', 'page', 'showMore', 'lastReview', 'profileMetaTitle', 'pinnedPhotoToUse', 'currentPicCategoryEnabled'
        ));
    }
}
 
    function getCleanDomain($host) {
        return preg_replace('/^(.+?)\.trustanalytica\.org$/', 'trustanalytica.org', $host);
    }
 
    public function displayAction(
        string $countryCode = "",
        string $stateCode = "",
        string $cityName = "",
        string $slug = ""
    ) {
        $this->loadCatalogBusiness($slug, 1, $countryCode, $stateCode, $cityName);
    }
 
    public function onlineAction($slug = "")
    {
        $this->loadCatalogBusiness($slug, 2);
    }
 
    /**
     * @param  string  $slug
     * @return \Phalcon\Mvc\View
     */
    public function slugAction(string $slug)
    {
        // Get Business
        $business = Business::findFirstBySlug($slug);
 
        if (!$business || $business->active == 0) {
            return $this->route404Action();
        }
 
        $this->assets->collection('headerGoogle')
            ->addCss('https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css', true);
        //->addCss('assets/css/critical/index.css');
 
        $this->assets->collection('footer')
            ->addJs('https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js', true)
            ->addJs('assets/page/home.js');
 
        $this->title = $business->lang->pageTitle ?? $business->lang->name;
        $this->description = $business->lang->description ?? '';
 
        // Get Sections
        $sections = SectionsPage::getSections($business->id, 'business');
 
        // Get Case
        $cases = Cases::getPage($business->id, 'business');
 
        $this->salesLoftTC = true;
 
        $this->view->setVars(compact('business', 'sections', 'cases'));
    }
 
 
    public function integrationAction()
    {
 
        $this->title = 'Integration - Trustanalytica';
        $this->description = "Discover seamless integrations with TrustAnalytica's reputation management solutions. Connect effortlessly with popular platforms to enhance your business's online presence, streamline feedback collection, and boost customer satisfaction. Simplify reputation management with our robust, user-friendly integration options.";
 
        $integrations = Integration::find([
            'order' => 'sort,dateCreate DESC'
        ]);
 
        $integrationsArray = [];
 
        foreach ($integrations as $integration) {
            $integrationsArray[$integration->parent][] = $integration->toArray();
        }
 
 
        $this->assets->collection('footer')
            ->addJs('assets/page/integration.js');
 
        $this->view->setVars(compact('integrationsArray'));
    }
 
    public function integrationSlugAction(string $slug)
    {
 
    }
 
    public function reviewSitesAction()
    {
 
        $this->title = 'Review sites';
        $this->description = "Effortlessly collect reviews from multiple platforms with TrustAnalytica. Our automated review aggregation ensures you stay on top of customer feedback, helping you enhance your business's reputation and make informed decisions. Simplify review management with TrustAnalytica's powerful solutions.";
 
 
        $this->assets->collection('headerGoogle')
            ->addCss('assets/page/icon-review-sites.css', true);
    }
 
    public function splitParagraph($text) {
        // Trim the text to remove any leading or trailing whitespace
        $text = trim($text);
 
        // Find the length of the text
        $length = strlen($text);
 
        // If the length is less than a threshold, return the text as is
        if ($length < 300) {
            return [$text, '']; // Return the whole text as the first part and an empty second part
        }
 
        // Determine the approximate midpoint of the text
        $midpoint = $length / 2;
 
        // Find the nearest period to the midpoint, preferring the first half
        $splitPosition = strrpos(substr($text, 0, $midpoint), '. ');
 
        // If no period is found in the first half, find the nearest period after the midpoint
        if ($splitPosition === false) {
            $splitPosition = strpos(substr($text, $midpoint), '. ');
            if ($splitPosition !== false) {
                $splitPosition += $midpoint;
            }
        }
 
        // If no suitable split position is found, fall back to splitting at the midpoint
        if ($splitPosition === false) {
            $splitPosition = $midpoint;
        } else {
            $splitPosition += 1; // Move past the period
        }
 
        // Ensure the second part is of a decent size and the first part is larger
        if ($length - $splitPosition < 150 || $splitPosition < 250) {
            $splitPosition = $midpoint; // If not, split closer to the midpoint
        }
 
        // Split the text into two parts
        $part1 = substr($text, 0, $splitPosition + 1);
        $part2 = substr($text, $splitPosition + 1);
 
        // Trim any leading or trailing whitespace from both parts
        $part1 = trim($part1);
        $part2 = trim($part2);
 
        return [$part1, $part2];
    }
 
 
    public function photosToUse($id) {
        $photos = PartnerDetails::findFirstByPartnerId($id);
        if($photos) {
            if($photos->apiPhotos == 1) {
                $partner = Partners::findFirstById($id);
                return $partner->mediaPhotos;
            }
 
            if($photos->partnerDashPhotos == 1) {
                $partnerChanges = UserPartnerChanges::findFirstByfkPartnersId($id);
                return $partnerChanges->mediaPhotos;
            }
 
            if($photos->websiteScreenshots == 1) {
                $partner = Partners::findFirstById($id);
                return $partner->websiteScreenshots;
            }
 
            if($photos->categoryPhotos == 1) {
                $partner = Partners::findFirstById($id);
                return $partner->categoryPhotos;
            }
        } else {
            $partner = Partners::findFirstById($id);
            return $partner->mediaPhotos;
        }
    }
 
    public function photosToUsePinned($id)
    {
        $photos = PartnerDetails::findFirstByPartnerId($id);
        if($photos) {
            if($photos->apiPhotos == 1) {
                $partner = Partners::findFirstById($id);
                return $partner->facePhoto;
            }
 
            if($photos->partnerDashPhotos == 1) {
                $partnerChanges = UserPartnerChanges::findFirstByfkPartnersId($id);
                return $partnerChanges->facePhoto;
            }
 
            if($photos->categoryPhotos == 1) {
                $partnerChanges = UserPartnerChanges::findFirstByfkPartnersId($id);
                return $partnerChanges->facePhoto;
            }
 
            return null;
        } else {
            $partner = Partners::findFirstById($id);
            return $partner->facePhoto;
        }
    }
 
    public function currentPicCategoryEnabled($partnerId) {
        $photos = PartnerDetails::findFirstByPartnerId($partnerId);
        if($photos) {
            if($photos->apiPhotos == 1) {
                return 1;
            }
 
            if($photos->partnerDashPhotos == 1) {
                return 2;
            }
 
            if($photos->websiteScreenshots == 1) {
                return 3;
            }
 
            if($photos->categoryPhotos == 1) {
                return 4;
            }
        } else {
            return null;
        }
    }
 
}
#1Apps\Frontend\Controllers\BusinessController->displayAction
#2Phalcon\Dispatcher\AbstractDispatcher->callActionMethod
#3Phalcon\Dispatcher\AbstractDispatcher->dispatch
#4Phalcon\Mvc\Application->handle
/home/tafront/current/public/index.php (92)
<?php
 
define('PHALCONSTART', microtime(true));
define('PROJECT_PATH', dirname(__FILE__, 2).'/');
require_once __DIR__ . '/../library/functions.php';
require_once __DIR__ . '/../vendor/autoload.php';
 
use Phalcon\Mvc\Application;
use Phalcon\Di\FactoryDefault;
use Phalcon\Cache\AdapterFactory;
use Phalcon\Mvc\Model\MetaData\Redis;
use Phalcon\Storage\SerializerFactory;
 
 
date_default_timezone_set('UTC');
 
// Define some absolute path constants to aid in locating resources
define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH.'/apps');
 
require_once APP_PATH.'/bootstrap.php';
 
try {
    $di = new FactoryDefault();
//    $di->set(
//        'modelsMetadata',
//        function () {
//            $serializerFactory = new SerializerFactory();
//            $adapterFactory = new AdapterFactory($serializerFactory);
//            $options = [
//                'host' => env('FRONTEND_REDIS', '127.0.0.1'),
//                'port' => 6379,
//                'index' => 1,
//                'lifetime' => 86400 * 30,
//                'prefix' => 'CacheM-',
//            ];
//
//            return new Redis($adapterFactory, $options);
//        }
//    );
 
    //debug
    if ($config->get('debug')) {
        error_reporting(E_ALL);
        $debug = new \Phalcon\Debug();
        $debug->listen();
    }
 
    /**
     * Init Phalcon Dependency Injection
     */
 
    $di->offsetSet('basePath', function () {
        return BASE_PATH;
    });
 
    /**
     * Register Service Providers
     */
    $providers = BASE_PATH.'/config/providers.php';
    if (!file_exists($providers) || !is_readable($providers)) {
        throw new Exception('File providers.php does not exist or is not readable.');
    }
 
    /** @var array $providers */
    $providers = include $providers;
    foreach ($providers as $provider) {
        $di->register(new $provider());
    }
 
 
    //include PROJECT_PATH . 'config/asl.php';
 
    $application = new Application($di);
 
    /**
     * Register application modules
     */
    $modules = [];
 
    foreach ($config->modules as $index => $modul) {
        $modules[$index] = [
            'className' => $modul->className,
            'path' => $modul->dir.'Module.php'
        ];
    }
 
    $application->registerModules($modules);
 
    // Handle the request
    $response = $application->handle(
        $_SERVER["REQUEST_URI"]
    );
 
    $response->send();
 
} catch (\Exception $e) {
 
    echo " PhalconException : happened in ".get_class($e)." class <br/> \n";
    echo " ExceptionMessage : <strong style='color:red'>".$e->getMessage()."</strong><br/>\n";
    echo " File=".$e->getFile();
    echo " Line=".$e->getLine()."<br/>\n<hr>";
    echo nl2br(htmlentities($e->getTraceAsString()));
}
KeyValue
KeyValue
USERtafront
HOME/home/tafront
SCRIPT_FILENAME/home/tafront/current/public/index.php
HTTP_CF_IPCOUNTRYUS
HTTP_CF_CONNECTING_IP216.73.216.88
HTTP_CDN_LOOPcloudflare; loops=1
HTTP_X_FORWARDED_PROTOhttps
HTTP_X_FORWARDED_FOR216.73.216.88
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_ACCEPT*/*
HTTP_CF_RAY95bf4613cb50ab51-YYZ
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_HOSTtrustanalytica.org
PATH_TRANSLATED/home/tafront/current/public/index.php
REDIRECT_STATUS200
SERVER_NAMEtrustanalytica.org
SERVER_PORT443
SERVER_ADDR137.184.235.105
REMOTE_PORT59740
REMOTE_ADDR172.70.80.207
SERVER_SOFTWAREnginx/1.18.0
GATEWAY_INTERFACECGI/1.1
HTTPSon
REQUEST_SCHEMEhttps
SERVER_PROTOCOLHTTP/2.0
DOCUMENT_ROOT/home/tafront/current/public
DOCUMENT_URI/index.php
REQUEST_URI/us/tx/san-antonio/reviews/tessmer-law-firm-p-l-l-c
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING
PATH_INFO
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1751974479.9978
REQUEST_TIME1751974479
DATABASE_HOST137.184.236.187
DATABASE_READER_HOST137.184.236.187
DATABASE_USERadmin
DATABASE_PASSJRuvSePg90cC7yW12Pc8Y0BW?@
DATABASE_NAMEta
DATABASE_CHARSETutf8
DATABASE_HOST_COUNTRY143.110.226.181
DATABASE_USER_COUNTRYmain
DATABASE_PASS_COUNTRYJRuvSePg90cC7yW12Pc8Y0BW?@
DATABASE_NAME_COUNTRYgeonames
DATABASE_PORT_COUNTRY3306
DATABASE_CHARSET_COUNTRYutf8mb4
ELASTIC_HOST3.21.8.128:9200
ELASTIC_USERelastic
ELASTIC_PASSWORD7yNp7eHLObGGxjij3QlT
ELASTIC_INDEXcontent
AWS_S3_KYEAKIA5WJIU64LONO6EWCD
AWS_S3_SECRETL0UAJfrZuk71A6FSHwJ9gf0d7anqT0Oub8noPOVW
AWS_S3_REGIONus-east-2
AWS_S3_BUCKETcdntrust
AWS_S3_URLhttps://cdnhouse.s3.us-east-2.amazonaws.com/
APP_PDW0
APP_PDW_IP0
PROJECT_DEBUG1
PROJECT_CLOSE_IP0
PROJECT_ENVprod
PROJECT_CSS_COMPRESS0
PROJECT_JS_COMPRESS0
PROJECT_BASE_URLhttps://trustanalytica.org/
PROJECT_HOST_NAMEtrustanalytica.org
PROJECT_NAMETrustAnalytica
PROJECT_ADMINhttps://app.trustanalytica.com/
PROJECT_ADMIN_SIGN_IN_PAGEhttps://app.trustanalytica.com/authreg/login
PROJECT_ADMIN_SIGN_UP_PAGEhttps://app.trustanalytica.com/authreg/signup
PROJECT_ADMIN_PASS_RECOVER_PAGEhttps://app.trustanalytica.com/authreg/forgotPassword
MODULE_BACKEND_HOST_NAMEadmin.trustanalytica.com
HYBRIDAUTH_DEBUG_MODE0
SENDGRID_ON1
SENDGRID_API_KEYSG.0of6xf_uTuuYm4cx_rYX2Q.V5MT8gQ3Xs2gO3oy8Dv4pH8t86NOrW0lgs2By7Vrgz8
SENDGRID_VAKEYSG.cKh5Dr7aSBehl8IFCo28Kg.5cSn3tTPdrCBUzNdE2-k0dUOU1Zvo1qA8CT4PiMoE6Y
SENDGRID_CHECK_EMAIL0
SENDGRID_SANDBOX1
PREFIX_SESSIONta
RECAPTCHA_SECRET6LcfycMUAAAAAEE3RKFBR3cmzsQ2-t-1j-9k_xZO
RECAPTCHA_SITE6LcfycMUAAAAAEcueT3oF7um_zTSW-cLh96G1tcZ
GOOGLE_AUTH_CLIENT_ID327807442376-cfcg40c6o466acl3a3hov5i8kv0p3hu5.apps.googleusercontent.com
GOOGLE_AUTH_CLIENT_SECRETZLUDhE_sakSKNX6FRltGw0lV
GOOGLE_AUTH_REDIRECT_URIhttps://app.trustanalytica.com/admin/settings/googleRedirect
GOOGLE_API_KEYAIzaSyDWaBAsdXYxQ-o34pWvKPCxnfr0vqf6h-M
GOOGLE_MAP_KEYAIzaSyCOr2opApkeuBj-8KrpM6CPfCh-qTDDlUY
GOOGLE_SEARCH_API_KEYAIzaSyBK4cc6JeTNbOlOrFil5wVZiAUh4brzStQ
GOOGLE_SEARCH0
GOOGLE_APP_ID55518288045-1vplpg8jt8anplutngh93i2svse3qq9b.apps.googleusercontent.com
GOOGLE_APP_SECRETQBGqJ3Escr3yi4TsLo52HzRu
GOOGLE_APP_REDIRECT_URIhttps://staging.trustanalytica.com/social/callback/google
FACEBOOK_APP_ID1247001565497765
FACEBOOK_APP_SECRET786a33974513535167649e5f21601f0d
FACEBOOK_AUTH_REDIRECT_URIhttps://app.trustanalytica.com/admin/settings/facebookRedirect
TWITTER_CLIENT_IDcStMhuM4wYblHhykA8h3nVhHv
TWITTER_CLIENT_SECRETKRMKZkVb4Scibq9uRZSYu4tDzROenAaT2OeDMPgkymexUYaGv7
TWITTER_AUTH_REDIRECT_URIhttps://staging.trustanalytica.com/social/callback/twitter
LINKEDIN_CLIENT_ID77i054hh0kxdqg
LINKEDIN_CLIENT_SECRETHWYUCWInQl4dG1xs
LINKEDIN_AUTH_REDIRECT_URIhttps://your-local-domain/admin/settings/linkedinRedirect
SOCIAL_LINKEDIN_OFFICIAL_PAGEhttps://www.linkedin.com/company/trustanalytica/
SOCIAL_FACEBOOK_OFFICIAL_PAGEhttps://www.facebook.com/trustanalytica/
SOCIAL_TWITTER_OFFICIAL_PAGEhttps://x.com/trustanalytica
SOCIAL_YOUTUBE_OFFICIAL_PAGEhttps://www.youtube.com/channel/UCTY4BMLI5Aym9IN49b-KcRA
GOOGLE_PLAYMARKET_LINKhttps://play.google.com/store/apps/details?id=com.trustanalytica
BRIGHTLOCAL_API_KEY03132c343c836577a2c9e2796289fb82267e9491
BRIGHTLOCAL_SECRET_KEY5e20884e7e34b
APIFLASH_ACCESS_KEY66bc7f76456247ddac642f17f3d34a65
PATCH_GEO_CITY/usr/share/GeoIP/GeoLite2-City.mmdb
TEST_UUID_PARTNER1e8f02e0-c3d5-4f2a-8208-016806913986
TEST_URL_APPhttps://app.trustanalytica.com
MAIL_EMAIL[email protected]
MAIL_DRIVERmail
MAIL_HOSTsmtp.mailtrap.io
MAIL_PORT2525
MAIL_FROM_ADDRESS[email protected]
MAIL_FROM_NAMETrustAnalytica
MAIL_ENCRYPTIONtls
MAIL_USERNAME
MAIL_PASSWORD
Xtoken901d@6^s5osOEtsJvNyH
TA_FRONTENDhttps://trustanalytica.org
TA_BACKENDhttps://app.trustanalytica.com
#Path
0/home/tafront/current/public/index.php
1/home/tafront/current/library/functions.php
2/home/tafront/current/vendor/autoload.php
3/home/tafront/current/vendor/composer/autoload_real.php
4/home/tafront/current/vendor/composer/platform_check.php
5/home/tafront/current/vendor/composer/ClassLoader.php
6/home/tafront/current/vendor/composer/autoload_static.php
7/home/tafront/current/vendor/symfony/polyfill-mbstring/bootstrap.php
8/home/tafront/current/vendor/symfony/polyfill-php80/bootstrap.php
9/home/tafront/current/vendor/symfony/deprecation-contracts/function.php
10/home/tafront/current/vendor/ralouphie/getallheaders/src/getallheaders.php
11/home/tafront/current/vendor/symfony/polyfill-ctype/bootstrap.php
12/home/tafront/current/vendor/guzzlehttp/promises/src/functions_include.php
13/home/tafront/current/vendor/guzzlehttp/promises/src/functions.php
14/home/tafront/current/vendor/guzzlehttp/psr7/src/functions_include.php
15/home/tafront/current/vendor/guzzlehttp/psr7/src/functions.php
16/home/tafront/current/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
17/home/tafront/current/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
18/home/tafront/current/vendor/react/promise/src/functions_include.php
19/home/tafront/current/vendor/react/promise/src/functions.php
20/home/tafront/current/vendor/symfony/polyfill-php73/bootstrap.php
21/home/tafront/current/vendor/symfony/string/Resources/functions.php
22/home/tafront/current/vendor/guzzlehttp/guzzle/src/functions_include.php
23/home/tafront/current/vendor/guzzlehttp/guzzle/src/functions.php
24/home/tafront/current/vendor/mtdowling/jmespath.php/src/JmesPath.php
25/home/tafront/current/vendor/starkbank/ecdsa/src/ellipticcurve.php
26/home/tafront/current/vendor/starkbank/ecdsa/src/utils/file.php
27/home/tafront/current/vendor/starkbank/ecdsa/src/signature.php
28/home/tafront/current/vendor/starkbank/ecdsa/src/publickey.php
29/home/tafront/current/vendor/starkbank/ecdsa/src/privatekey.php
30/home/tafront/current/vendor/starkbank/ecdsa/src/ecdsa.php
31/home/tafront/current/vendor/symfony/translation/Resources/functions.php
32/home/tafront/current/vendor/aws/aws-sdk-php/src/functions.php
33/home/tafront/current/vendor/elasticsearch/elasticsearch/src/autoload.php
34/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Nodes/HotThreads.php
35/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php
36/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Nodes/Info.php
37/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Nodes/ReloadSecureSettings.php
38/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Nodes/Stats.php
39/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Nodes/Usage.php
40/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/GetSettings.php
41/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/PutSettings.php
42/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/DeleteAlias.php
43/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ExistsAlias.php
44/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/GetAlias.php
45/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/PutAlias.php
46/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/UpdateAliases.php
47/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ClearCache.php
48/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/GetMapping.php
49/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/GetFieldMapping.php
50/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/PutMapping.php
51/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/GetSettings.php
52/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/PutSettings.php
53/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/GetTemplate.php
54/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/PutTemplate.php
55/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ExistsTemplate.php
56/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/DeleteTemplate.php
57/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ExistsType.php
58/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/GetUpgrade.php
59/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Upgrade.php
60/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ValidateQuery.php
61/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/DeletePipeline.php
62/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/GetPipeline.php
63/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/PutPipeline.php
64/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/ProcessorGrok.php
65/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/GetScript.php
66/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/PutScript.php
67/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/DeleteScript.php
68/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Snapshot/CreateRepository.php
69/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Snapshot/DeleteRepository.php
70/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Snapshot/GetRepository.php
71/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Snapshot/VerifyRepository.php
72/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/GetSource.php
73/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/ExistsSource.php
74/home/tafront/current/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Tasks/ListTasks.php
75/home/tafront/current/vendor/phalcon/zephir/Library/functions.php
76/home/tafront/current/apps/bootstrap.php
77/home/tafront/current/config/function.php
78/home/tafront/current/config/config.php
79/home/tafront/current/vendor/vlucas/phpdotenv/src/Dotenv.php
80/home/tafront/current/vendor/vlucas/phpdotenv/src/Loader.php
81/home/tafront/current/vendor/vlucas/phpdotenv/src/Parser.php
82/home/tafront/current/library/Str.php
83/home/tafront/current/config/providers.php
84/home/tafront/current/apps/Providers/DspatcherProvider.php
85/home/tafront/current/apps/Providers/ConfigProvider.php
86/home/tafront/current/apps/Providers/AssetsProvider.php
87/home/tafront/current/apps/Providers/SessionProvider.php
88/home/tafront/current/apps/Providers/FlashProvider.php
89/home/tafront/current/apps/Providers/FlashSessionProvider.php
90/home/tafront/current/apps/Providers/UrlProvider.php
91/home/tafront/current/apps/Providers/DbProvider.php
92/home/tafront/current/apps/Providers/DbCountryProvider.php
93/home/tafront/current/apps/Providers/SecurityProvider.php
94/home/tafront/current/apps/Providers/RouterProvider.php
95/home/tafront/current/apps/Providers/AuthProvider.php
96/home/tafront/current/apps/Providers/TransProvider.php
97/home/tafront/current/apps/Providers/EventsManagerProvider.php
98/home/tafront/current/apps/Providers/CryptProvider.php
99/home/tafront/current/apps/Providers/StrProvider.php
100/home/tafront/current/apps/Providers/HelpersProvider.php
101/home/tafront/current/apps/Providers/ModelsManagerProvider.php
102/home/tafront/current/apps/Providers/CookiesProvider.php
103/home/tafront/current/apps/Providers/GeoIpProvider.php
104/home/tafront/current/apps/Providers/ElasticProvider.php
105/home/tafront/current/apps/Providers/LoggerProvider.php
106/home/tafront/current/apps/Providers/RandomProvider.php
107/home/tafront/current/apps/Providers/AwsProvider.php
108/home/tafront/current/apps/Providers/HybridauthProvider.php
109/home/tafront/current/apps/Providers/ModelsCacheProvider.php
110/home/tafront/current/config/cache.php
111/home/tafront/current/apps/Frontend/routes.php
112/home/tafront/current/apps/Backend/routes.php
113/home/tafront/current/apps/Api/routes.php
114/home/tafront/current/apps/Frontend/Module.php
115/home/tafront/current/apps/AbstractModule.php
116/home/tafront/current/apps/Frontend/Controllers/BusinessController.php
117/home/tafront/current/apps/Frontend/Controllers/BaseController.php
118/home/tafront/current/apps/Models/Partners/Partners.php
119/home/tafront/current/apps/Models/BaseModel.php
120/home/tafront/current/library/Aws.php
121/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/S3Client.php
122/home/tafront/current/vendor/aws/aws-sdk-php/src/AwsClient.php
123/home/tafront/current/vendor/aws/aws-sdk-php/src/AwsClientInterface.php
124/home/tafront/current/vendor/aws/aws-sdk-php/src/AwsClientTrait.php
125/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/S3ClientInterface.php
126/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php
127/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Parser/PayloadParserTrait.php
128/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/RegionalEndpoint/ConfigurationProvider.php
129/home/tafront/current/vendor/aws/aws-sdk-php/src/AbstractConfigurationProvider.php
130/home/tafront/current/vendor/aws/aws-sdk-php/src/ConfigurationProviderInterface.php
131/home/tafront/current/vendor/aws/aws-sdk-php/src/data/manifest.json.php
132/home/tafront/current/vendor/aws/aws-sdk-php/src/HandlerList.php
133/home/tafront/current/vendor/aws/aws-sdk-php/src/ClientResolver.php
134/home/tafront/current/vendor/aws/aws-sdk-php/src/Signature/SignatureProvider.php
135/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/ApiProvider.php
136/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Service.php
137/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/AbstractModel.php
138/home/tafront/current/vendor/aws/aws-sdk-php/src/data/s3/2006-03-01/api-2.json.php
139/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/ShapeMap.php
140/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Parser/RestXmlParser.php
141/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Parser/AbstractRestParser.php
142/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Parser/AbstractParser.php
143/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Parser/XmlParser.php
144/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/ErrorParser/XmlErrorParser.php
145/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/ErrorParser/AbstractErrorParser.php
146/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Parser/MetadataParserTrait.php
147/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/GetBucketLocationParser.php
148/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/ValidateResponseChecksumParser.php
149/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/CalculatesChecksumTrait.php
150/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/AmbiguousSuccessParser.php
151/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/RetryableMalformedResponseParser.php
152/home/tafront/current/vendor/aws/aws-sdk-php/src/DefaultsMode/ConfigurationProvider.php
153/home/tafront/current/vendor/guzzlehttp/promises/src/RejectedPromise.php
154/home/tafront/current/vendor/guzzlehttp/promises/src/PromiseInterface.php
155/home/tafront/current/vendor/aws/aws-sdk-php/src/DefaultsMode/Exception/ConfigurationException.php
156/home/tafront/current/vendor/aws/aws-sdk-php/src/MonitoringEventsInterface.php
157/home/tafront/current/vendor/aws/aws-sdk-php/src/HasMonitoringEventsTrait.php
158/home/tafront/current/vendor/guzzlehttp/promises/src/Utils.php
159/home/tafront/current/vendor/guzzlehttp/promises/src/TaskQueue.php
160/home/tafront/current/vendor/guzzlehttp/promises/src/TaskQueueInterface.php
161/home/tafront/current/vendor/guzzlehttp/promises/src/Promise.php
162/home/tafront/current/vendor/guzzlehttp/promises/src/Is.php
163/home/tafront/current/vendor/guzzlehttp/promises/src/Create.php
164/home/tafront/current/vendor/aws/aws-sdk-php/src/DefaultsMode/Configuration.php
165/home/tafront/current/vendor/aws/aws-sdk-php/src/DefaultsMode/ConfigurationInterface.php
166/home/tafront/current/vendor/guzzlehttp/promises/src/FulfilledPromise.php
167/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/ConfigurationProvider.php
168/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/Exception/ConfigurationException.php
169/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/Configuration.php
170/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/ConfigurationInterface.php
171/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseDualstackEndpoint/ConfigurationProvider.php
172/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseDualstackEndpoint/Exception/ConfigurationException.php
173/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseDualstackEndpoint/Configuration.php
174/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/UseDualstackEndpoint/ConfigurationInterface.php
175/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/PartitionEndpointProvider.php
176/home/tafront/current/vendor/aws/aws-sdk-php/src/data/endpoints.json.php
177/home/tafront/current/vendor/aws/aws-sdk-php/src/data/endpoints_prefix_history.json.php
178/home/tafront/current/vendor/mtdowling/jmespath.php/src/Env.php
179/home/tafront/current/vendor/mtdowling/jmespath.php/src/AstRuntime.php
180/home/tafront/current/vendor/mtdowling/jmespath.php/src/FnDispatcher.php
181/home/tafront/current/vendor/mtdowling/jmespath.php/src/TreeInterpreter.php
182/home/tafront/current/vendor/mtdowling/jmespath.php/src/Parser.php
183/home/tafront/current/vendor/mtdowling/jmespath.php/src/Lexer.php
184/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/Partition.php
185/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/PartitionInterface.php
186/home/tafront/current/vendor/aws/aws-sdk-php/src/HasDataTrait.php
187/home/tafront/current/vendor/aws/aws-sdk-php/src/Endpoint/EndpointProvider.php
188/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Serializer/RestXmlSerializer.php
189/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Serializer/RestSerializer.php
190/home/tafront/current/vendor/guzzlehttp/psr7/src/Utils.php
191/home/tafront/current/vendor/guzzlehttp/psr7/src/Uri.php
192/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Serializer/XmlBody.php
193/home/tafront/current/vendor/aws/aws-sdk-php/src/Middleware.php
194/home/tafront/current/vendor/aws/aws-sdk-php/src/Credentials/CredentialProvider.php
195/home/tafront/current/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php
196/home/tafront/current/vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php
197/home/tafront/current/vendor/aws/aws-sdk-php/src/EndpointDiscovery/ConfigurationProvider.php
198/home/tafront/current/vendor/aws/aws-sdk-php/src/Retry/ConfigurationProvider.php
199/home/tafront/current/vendor/aws/aws-sdk-php/src/Retry/Exception/ConfigurationException.php
200/home/tafront/current/vendor/aws/aws-sdk-php/src/Retry/Configuration.php
201/home/tafront/current/vendor/aws/aws-sdk-php/src/Retry/ConfigurationInterface.php
202/home/tafront/current/vendor/aws/aws-sdk-php/src/RetryMiddleware.php
203/home/tafront/current/vendor/aws/aws-sdk-php/src/Retry/RetryHelperTrait.php
204/home/tafront/current/vendor/aws/aws-sdk-php/src/Api/Validator.php
205/home/tafront/current/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/ConfigurationProvider.php
206/home/tafront/current/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/ApiCallMonitoringMiddleware.php
207/home/tafront/current/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/AbstractMonitoringMiddleware.php
208/home/tafront/current/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/MonitoringMiddlewareInterface.php
209/home/tafront/current/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/ApiCallAttemptMonitoringMiddleware.php
210/home/tafront/current/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php
211/home/tafront/current/vendor/guzzlehttp/guzzle/src/ClientInterface.php
212/home/tafront/current/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php
213/home/tafront/current/vendor/guzzlehttp/guzzle/src/Client.php
214/home/tafront/current/vendor/guzzlehttp/guzzle/src/HandlerStack.php
215/home/tafront/current/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php
216/home/tafront/current/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
217/home/tafront/current/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
218/home/tafront/current/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php
219/home/tafront/current/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php
220/home/tafront/current/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
221/home/tafront/current/vendor/guzzlehttp/guzzle/src/Middleware.php
222/home/tafront/current/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
223/home/tafront/current/vendor/aws/aws-sdk-php/src/Sdk.php
224/home/tafront/current/vendor/aws/aws-sdk-php/src/IdempotencyTokenMiddleware.php
225/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/ConfigurationProvider.php
226/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/Exception/ConfigurationException.php
227/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/Configuration.php
228/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/ConfigurationInterface.php
229/home/tafront/current/vendor/aws/aws-sdk-php/src/EndpointParameterMiddleware.php
230/home/tafront/current/vendor/aws/aws-sdk-php/src/EndpointDiscovery/EndpointDiscoveryMiddleware.php
231/home/tafront/current/vendor/aws/aws-sdk-php/src/data/aliases.json.php
232/home/tafront/current/vendor/aws/aws-sdk-php/src/StreamRequestPayloadMiddleware.php
233/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/SSECMiddleware.php
234/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/ApplyChecksumMiddleware.php
235/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/S3EndpointMiddleware.php
236/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/BucketEndpointArnMiddleware.php
237/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/EndpointRegionHelperTrait.php
238/home/tafront/current/vendor/aws/aws-sdk-php/src/InputValidationMiddleware.php
239/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/PutObjectUrlMiddleware.php
240/home/tafront/current/vendor/aws/aws-sdk-php/src/S3/PermanentRedirectMiddleware.php
241/home/tafront/current/apps/Models/Partners/PartnerSocialLinks.php
242/home/tafront/current/apps/Models/Partners/PartnerDetails.php
243/home/tafront/current/apps/Models/Partners/PartnerSubscription.php
244/home/tafront/current/apps/Models/CatalogCategories.php
245/home/tafront/current/apps/Models/Partners/PartnerTypes.php
Memory
Usage2097152