| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 19 | 2 | public function __construct($origin, $url, IO\IOInterface $io)  | 
            |
| 20 |     { | 
            ||
| 21 | 2 | parent::__construct($origin, $url, $io);  | 
            |
| 22 | 2 |         if ($this->password === 'oauth2') { | 
            |
| 23 | 1 | $this->headers[] = 'Authorization: Bearer ' . $this->username;  | 
            |
| 24 | // forbid basic-auth  | 
            ||
| 25 | 1 | $this->username = $this->password = null;  | 
            |
| 26 | 1 | }  | 
            |
| 27 | 2 | }  | 
            |
| 28 | |||
| 38 |