| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 65 | public function fail($show=true)  | 
            ||
| 66 |     { | 
            ||
| 67 |         if($show==true){ | 
            ||
| 68 |             header('Cache-Control: no-cache, must-revalidate'); | 
            ||
| 69 |             header('Content-Type: application/json'); | 
            ||
| 70 | |||
| 71 | http_response_code($this->error->getCode());  | 
            ||
| 72 | echo $this->error->getResponse()->getBody();  | 
            ||
| 73 | exit();  | 
            ||
| 74 |         }else{ | 
            ||
| 75 | return $this->error->getResponse()->getBody();  | 
            ||
| 76 | }  | 
            ||
| 78 | }  |