@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | return new PluginClient($this->httpClient, $this->plugins); |
70 | 70 | } |
71 | 71 | |
72 | - public function doGet(string $url): ?Collection |
|
72 | + public function doGet(string $url): ?Collection |
|
73 | 73 | { |
74 | 74 | try { |
75 | 75 | $request = $this->client->get($url); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | return $this->responseResult($response); |
87 | 87 | } |
88 | 88 | |
89 | - public function doPost(string $url, array $data = []): ?Collection |
|
89 | + public function doPost(string $url, array $data = []): ?Collection |
|
90 | 90 | { |
91 | 91 | try { |
92 | 92 | $request = $this->client->post($url, $data); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return $this->responseResult($response); |
104 | 104 | } |
105 | 105 | |
106 | - protected function responseResult(?string $response) :? Collection |
|
106 | + protected function responseResult(?string $response) : ? Collection |
|
107 | 107 | { |
108 | 108 | $data = json_decode($response, true); |
109 | 109 |