芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/invoicer.pulsehost.co.uk/vendor/predis/predis/src/Cluster/GEOSEARCH.php
setSorting($arguments); $arguments = $this->getArguments(); $this->setWithCoord($arguments); $arguments = $this->getArguments(); $this->setWithDist($arguments); $arguments = $this->getArguments(); $this->setWithHash($arguments); $arguments = $this->getArguments(); $this->setCount($arguments, $arguments[5] ?? false); $arguments = $this->getArguments(); $this->setFrom($arguments); $arguments = $this->getArguments(); $this->setBy($arguments); $this->filterArguments(); } public function parseResponse($data) { $parsedData = []; $itemKey = ''; foreach ($data as $item) { if (!is_array($item)) { $parsedData[] = $item; continue; } foreach ($item as $key => $itemRow) { if ($key === 0) { $itemKey = $itemRow; continue; } if (is_string($itemRow)) { $parsedData[$itemKey]['dist'] = round((float) $itemRow, 5); } elseif (is_int($itemRow)) { $parsedData[$itemKey]['hash'] = $itemRow; } else { $parsedData[$itemKey]['lng'] = round($itemRow[0], 5); $parsedData[$itemKey]['lat'] = round($itemRow[1], 5); } } } return $parsedData; } }