| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 34 | public function resolve($args) |
||
|
|
|||
| 35 | { |
||
| 36 | if (isset($args['id'])) { |
||
| 37 | $this->queryBus->handle( |
||
| 38 | new OrganizationOfIdQuery( |
||
| 39 | $args['id'], |
||
| 40 | $this->currentUser |
||
| 41 | ), |
||
| 42 | $result |
||
| 43 | ); |
||
| 44 | |||
| 45 | return $result; |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->queryBus->handle( |
||
| 49 | new OrganizationOfSlugQuery( |
||
| 50 | $args['slug'], |
||
| 51 | $this->currentUser |
||
| 52 | ), |
||
| 53 | $result |
||
| 54 | ); |
||
| 55 | |||
| 56 | return $result; |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.