| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 7 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 42 | public function errorCheck($error, $message)  | 
            ||
| 43 |     { | 
            ||
| 44 |         if (isset($error) && $error != '') { | 
            ||
| 45 | echo 'Error: ' . $message;  | 
            ||
| 46 | exit;  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 47 | }  | 
            ||
| 48 | return;  | 
            ||
| 49 | }  | 
            ||
| 70 | 
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.