@@ -59,14 +59,14 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | public function getCategory() |
| 61 | 61 | { |
| 62 | - $urlCategory = $this->getApiUrl() . '/category'; |
|
| 62 | + $urlCategory = $this->getApiUrl().'/category'; |
|
| 63 | 63 | |
| 64 | 64 | return $this->getRequestApi($urlCategory); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public function getPlugins($data = array()) |
| 68 | 68 | { |
| 69 | - $url = $this->getApiUrl() . '/plugins'; |
|
| 69 | + $url = $this->getApiUrl().'/plugins'; |
|
| 70 | 70 | $params['category_id'] = $data['category_id']; |
| 71 | 71 | $params['price_type'] = empty($data['price_type']) ? 'all' : $data['price_type']; |
| 72 | 72 | $params['keyword'] = $data['keyword']; |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | public function getRequestApi($url, $data = array()) |
| 89 | 89 | { |
| 90 | 90 | if (count($data) > 0) { |
| 91 | - $url .= '?' . http_build_query($data); |
|
| 91 | + $url .= '?'.http_build_query($data); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | $curl = curl_init($url); |