Conditions | 2 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | public function handle() |
||
39 | { |
||
40 | $client = new Client(\Config::get('gitter.token')); |
||
41 | |||
42 | try { |
||
43 | $result = $client->http->getRoomByUri($this->argument('room'))->wait(); |
||
|
|||
44 | $this->info("Room ID: {$result->id}"); |
||
45 | } catch (\Exception $e) { |
||
46 | $this->info('Room not found'); |
||
47 | } |
||
48 | } |
||
49 | } |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.