| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 43 | public function handle(AddRepositoryCommand $command): PromiseInterface  | 
            ||
| 44 |     { | 
            ||
| 45 | return $this->requestService->request(  | 
            ||
| 46 | new Request(  | 
            ||
| 47 | 'POST',  | 
            ||
| 48 | 'repositories/g',  | 
            ||
| 49 | [],  | 
            ||
| 50 | new JsonStream([  | 
            ||
| 51 | 'name' => $command->getName(),  | 
            ||
| 52 | ])  | 
            ||
| 53 | )  | 
            ||
| 54 |         )->then(function ($repository) { | 
            ||
| 55 | return $this->hydrator->hydrate(RepositoryInterface::HYDRATE_CLASS, $repository->getBody()->getJson());  | 
            ||
| 56 | });  | 
            ||
| 57 | }  | 
            ||
| 58 | }  | 
            ||
| 59 |