| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 23 | public function import()  | 
            ||
| 24 |     { | 
            ||
| 25 | $request = $this->app->request();  | 
            ||
| 26 | $response = $this->app->response();  | 
            ||
| 27 | |||
| 28 |         try { | 
            ||
| 29 | $this->runImport($request);  | 
            ||
| 30 | $result = ['ok' => true];  | 
            ||
| 31 |         } catch (Exception $e) { | 
            ||
| 32 | $result = ['error' => true, 'message' => $e->getMessage()];  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | $response['Content-Type'] = 'application/json';  | 
            ||
| 36 | $response->body(json_encode($result));  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 37 | }  | 
            ||
| 38 | |||
| 51 | 
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.