return data from the loaded store details. Only the first store is returned if there are multiple urls

@return array
559942
public function getStoreDetails($url)
    {
        $collection = $this->getIndividualStore($url);
        foreach($collection as $stockist){
            return $stockist->getData();
        }
    }
398301
public function getButtonData()
    {
        $data = [];
        if ($this->getStockistId()) {
            $data = [
                'label' => __('Delete Store'),
                'class' => 'delete',
                'on_click' => 'deleteConfirm(\'' . __(
                    'Are you sure you want to do this?'
                ) . '\', \'' . $this->getDeleteUrl() . '\')',
                'sort_order' => 20,
            ];
        }
        return $data;
    }
739509
public function load()
    {
        $data = [];
        $routes = $this->getRoutes();
        foreach($routes as $route) {
            $parsedRoute = $this->parseRoute($route);
            $routeData = $this->requestService($route, $parsedRoute);

            if ($routeData !== null) {
                // When the routeData contains more entry. (if it's a numeric array)
                if (array_values($routeData) === $routeData) {
                    $data = array_merge($data, $routeData);
                }
                else {
                    $data[] = $routeData;
                }
            }
        }
        $this->returnData($data);
    }
30028
protected function fetchData()
	{
		if(($sort=$this->getSort())!==false && ($order=$sort->getOrderBy())!='')
			$this->sortData($this->getSortDirections($order));

		if(($pagination=$this->getPagination())!==false)
		{
			$pagination->setItemCount($this->getTotalItemCount());
			return array_slice($this->rawData, $pagination->getOffset(), $pagination->getLimit());
		}
		else
			return $this->rawData;
	}
660956
public function getData()
    {
        $this->validate('merchantId', 'merchantPassword', 'acquirerId', 'transactionId', 'amount');

        $data = [
            'AcquirerId'       => $this->getAcquirerId(),
            'Amount'           => $this->formatAmount(),
            'CurrencyExponent' => $this->getCurrencyDecimalPlaces(),
            'MerchantId'       => $this->getMerchantId(),
            'ModificationType' => $this->getModificationType(),
            'OrderNumber'      => $this->getTransactionId(),
            'Password'         => $this->getMerchantPassword()
        ];

        return $data;
    }
1044519
public function getData()
    {
        $return = [];

        foreach ($this->collections as $collection) {
            $return[$collection->name()] = $collection->items();
        }

        if (count($this->dump) != 0) {
            $return['dump'] = $this->dump;
        }

        return $return;
    }
268820
public function toArray()
    {
        return [
            'current_page' => $this->currentPage(),
            'data' => $this->items->toArray(),
            'first_page_url' => $this->url(1),
            'from' => $this->firstItem(),
            'next_page_url' => $this->nextPageUrl(),
            'path' => $this->path,
            'per_page' => $this->perPage(),
            'prev_page_url' => $this->previousPageUrl(),
            'to' => $this->lastItem(),
        ];
    }
869112
private function getStores()
    {
        $collection = $this->getRetailerCollection();
        $cacheKey   = sprintf("%s_%s", 'checkout_storedelivery', $collection->getStoreId());

        $markers = $this->cache->load($cacheKey);
        if (!$markers) {
            $markers = [];
            /** @var RetailerInterface $retailer */
            foreach ($collection as $retailer) {
                $address    = $retailer->getExtensionAttributes()->getAddress();
                $coords     = $address->getCoordinates();
                $markerData = [
                    'id'           => $retailer->getId(),
                    'latitude'     => $coords->getLatitude(),
                    'longitude'    => $coords->getLongitude(),
                    'name'         => $retailer->getName(),
                    'address'      => $this->addressFormatter->formatAddress($address, AddressFormatter::FORMAT_ONELINE),
                    'url'          => $this->storeLocatorHelper->getRetailerUrl($retailer),
                    'directionUrl' => $this->map->getDirectionUrl($address->getCoordinates()),
                    'setStoreData' => $this->getSetStorePostData($retailer),
                    'addressData'  => $address->getData(),
                ];

                $markerData['schedule'] = array_merge(
                    $this->scheduleHelper->getConfig(),
                    [
                        'calendar'            => $this->scheduleManager->getCalendar($retailer),
                        'openingHours'        => $this->scheduleManager->getWeekOpeningHours($retailer),
                        'specialOpeningHours' => $retailer->getExtensionAttributes()->getSpecialOpeningHours(),
                    ]
                );

                $markers[] = $markerData;
            }

            $markers = json_encode($markers);
            $this->cache->save(
                $markers,
                $cacheKey,
                $collection->getNewEmptyItem()->getCacheTags()
            );
        }

        return json_decode($markers);
    }
1179354
protected function getData() {
        if ($this->data === null) {
            $stmt = $this->db->get(
                $this->table,
                $this->where,
                $this->options + [Db::OPTION_FETCH_MODE => $this->getFetchArgs()]
            );

            $data = $stmt->fetchAll(...(array)$this->getFetchArgs());

            if (is_callable($this->rowCallback)) {
                array_walk($data, function (&$row) {
                    $row = call_user_func($this->rowCallback, $row);
                });
            }

            $this->data = $data;
        }

        return $this->data;
    }
1291714
public function getData() {
		$data = $this->resellerOption;

		$data['reseller_identifier'] = ! empty( $data['reseller_identifier'] ) ?
			strtolower( $data['reseller_identifier'] ) : null;

		$data['reseller_website_url'] = ! empty( $data['reseller_website_url'] ) ?
			esc_url( $data['reseller_website_url'] ) : 'https://www.boldgrid.com/';

		$data['reseller_title'] = ! empty( $data['reseller_title'] ) ?
			esc_html( $data['reseller_title'] ) : esc_html( 'BoldGrid.com' );

		$data['reseller_support_url'] = ! empty( $data['reseller_support_url'] ) ?
			esc_url( $data['reseller_support_url'] ) : 'https://www.boldgrid.com/documentation';

		$data['reseller_amp_url'] = ! empty( $data['reseller_amp_url'] ) ?
			esc_url( $data['reseller_amp_url'] ) : 'https://www.boldgrid.com/central';

		return $data;
	}
597709
public function getData() : ?array
     {
        $rtn = $this->data['data'];

        $rtn = json_decode($rtn, true);

        if ($rtn === false) {
            $rtn = null;
        }

        return $rtn;
     }
11935
public function getQueryData(): array
    {
        return \array_merge($this->whereConditions, [
            'limit' => $this->limit,
            'skip' => $this->skip,
            'content_type' => $this->contentType,
            'mimetype_group' => $this->mimeTypeGroup,
            'order' => $this->orderConditions ? \implode(',', $this->orderConditions) : null,
            'select' => $this->select,
            'links_to_entry' => $this->linksToEntry,
            'links_to_asset' => $this->linksToAsset,
        ]);
    }
97890
public function getData()
    {
        // make sure we have the mandatory fields
        $this->validate('email', 'language', 'amount', 'currency', 'details');

        // merchant details
        $data['pay_to_email'] = $this->getEmail();
        $data['language'] = $this->getLanguage();
        $data['recipient_description'] = $this->getRecipientDescription();
        $data['transaction_id'] = $this->getTransactionId();
        $data['return_url'] = $this->getReturnUrl();
        $data['return_url_text'] = $this->getReturnUrlText();
        $data['return_url_target'] = $this->getReturnUrlTarget();
        $data['cancel_url'] = $this->getCancelUrl();
        $data['cancel_url_target'] = $this->getCancelUrlTarget();
        $data['status_url'] = $this->getNotifyUrl();
        $data['status_url2'] = $this->getNotifyUrl2();
        $data['new_window_redirect'] = $this->getNewWindowRedirect() ? 1 : 0;
        $data['hide_login'] = $this->getHideLogin() ? 1 : 0;
        $data['confirmation_note'] = $this->getConfirmationNote();
        $data['logo_url'] = $this->getLogoUrl();
        $data['prepare_only'] = 1;
        $data['rid'] = $this->getReferralId();
        $data['ext_ref_id'] = $this->getExtReferralId();

        $merchantFields = $this->getMerchantFields();
        if (is_array($merchantFields)) {
            $data['merchant_fields'] = implode(',', array_keys($merchantFields));
            foreach ($merchantFields as $field => $value) {
                $data[$field] = $value;
            }
        }

        // customer details
        $data['pay_from_email'] = $this->getCustomerEmail();
        $data['title'] = $this->getCustomerTitle();
        $data['firstname'] = $this->getCustomerFirstName();
        $data['lastname'] = $this->getCustomerLastName();

        $customerBirthday = $this->getCustomerBirthday();
        if ($customerBirthday) {
            $data['date_of_birth'] = $customerBirthday->format('dmY');
        }

        $data['address'] = $this->getCustomerAddress1();
        $data['address2'] = $this->getCustomerAddress2();
        $data['phone_number'] = $this->getCustomerPhone();
        $data['postal_code'] = $this->getCustomerPostalCode();
        $data['city'] = $this->getCustomerCity();
        $data['state'] = $this->getCustomerState();
        $data['country'] = $this->getCustomerCountry();

        // payment details
        $data['amount'] = rtrim(rtrim($this->getAmount(), '0'), '.');
        $data['currency'] = $this->getCurrency();

        $amountDescriptions = $this->getAmountDescriptions();
        if (is_array($amountDescriptions)) {
            $counter = 2;
            foreach ($amountDescriptions as $description => $amount) {
                $data['amount' . $counter . '_description'] = $description;
                $data['amount' . $counter] = $amount;
                $counter++;
            }
        }

        $details = $this->getDetails();
        $counter = 1;
        foreach ($details as $description => $text) {
            $data['detail' . $counter . '_description'] = $description;
            $data['detail' . $counter . '_text'] = $text;
            $counter++;
        }

        // split gateway
        $paymentMethods = $this->getPaymentMethods();
        if (is_array($paymentMethods)) {
            $data['payment_methods'] = implode(',', $paymentMethods);
        }

        return $data;
    }
150180
public function getList()
    {
        $sites = $this->siteManager->findAll();
        $this->addPaginationData($sites);
        $sites = $sites->getItems();
        if (empty($sites)) {
            $this->addInfoMessage(self::INFO_NO_ENTRIES_FOUND);
        }
        return $sites;
    }
244452
public function toArray()
    {
        $data = [];

        $storages = $this->preloadAllStorages();

        foreach ($storages as $url=>$storage) {

            $prefix = $this->keyPrefix($url);

            $data[$prefix] = $storage->toArray();

        }

        return $data;
    }
101298
public function getList()
    {
        $objects = $this->manager->findAll();
        $this->addPaginationData($objects);
        $objects = $objects->getItems();
        if (empty($objects)) {
            $this->addInfoMessage(self::INFO_NO_ENTRIES_FOUND);
        }
        return $objects;
    }
1178714
public function getAllStockistStores()
    {
        $collection = $this->getAllStoresCollection();
        $data = [];
        foreach($collection as $stockist){
            $data[] = $stockist->getData();
        }
        return $data;
    }