| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 38 | public function handle() | ||
| 39 |     { | ||
| 40 | $client = new Client(); | ||
| 41 | |||
| 42 |         $request = new \GuzzleHttp\Psr7\Request('GET', $this->requestData->url); | ||
| 43 |         $promise = $client->sendAsync($request)->then(function ($responseData) { | ||
| 44 | $formatter = Formatter::make($responseData->getBody(), Formatter::JSON); | ||
| 45 | $csv = $formatter->toCsv(); | ||
| 46 | |||
| 47 |             Storage::disk('local')->put('csvfile.csv', $csv); | ||
| 48 | }); | ||
| 49 | |||
| 50 | $promise->wait(); | ||
| 51 | } | ||
| 53 |