@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function getAttends(string $userId, int $page = 1) : array |
44 | 44 | { |
45 | - return $this->call('user/'.$userId .'/attended', array( |
|
45 | + return $this->call('user/'.$userId.'/attended', array( |
|
46 | 46 | 'p' => $page |
47 | 47 | )); |
48 | 48 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function getEdits(string $userId, int $page = 1) : array |
62 | 62 | { |
63 | - return $this->call('user/'.$userId .'/edited', array( |
|
63 | + return $this->call('user/'.$userId.'/edited', array( |
|
64 | 64 | 'p' => $page |
65 | 65 | )); |
66 | 66 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function call(string $method, array $params = array(), string $requestMethod = 'GET'): array |
41 | 41 | { |
42 | - $data = $this->buildParameter($params); |
|
42 | + $data = $this->buildParameter($params); |
|
43 | 43 | |
44 | 44 | try { |
45 | 45 | if ($requestMethod == 'POST') { |
@@ -48,12 +48,12 @@ |
||
48 | 48 | public function call(string $method, array $params = array(), string $requestMethod = 'GET'): array |
49 | 49 | { |
50 | 50 | try { |
51 | - $data = $this->buildParameter($params); |
|
51 | + $data = $this->buildParameter($params); |
|
52 | 52 | |
53 | 53 | if ($requestMethod == 'POST') { |
54 | - $request = $this->messageFactory->createRequest($requestMethod, $this->uri . $method .'.json', array(), $data); |
|
54 | + $request = $this->messageFactory->createRequest($requestMethod, $this->uri.$method.'.json', array(), $data); |
|
55 | 55 | } else { |
56 | - $request = $this->messageFactory->createRequest($requestMethod, $this->uri . $method .'.json?' . $data); |
|
56 | + $request = $this->messageFactory->createRequest($requestMethod, $this->uri.$method.'.json?'.$data); |
|
57 | 57 | } |
58 | 58 | $response = $this->client->sendRequest($request); |
59 | 59 |