| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function cachegrind() |
||
| 22 | { |
||
| 23 | $request = $this->app->request(); |
||
| 24 | $response = $this->app->response(); |
||
| 25 | $response['Content-Type'] = 'application/octet-stream'; |
||
| 26 | $response['Cache-Control'] = 'public, max-age=60, must-revalidate'; |
||
| 27 | |||
| 28 | $profile = $this->searcher->get($request->get('id')); |
||
| 29 | $output = $this->converter->convertToCachegrind($profile->toArray()['profile']); |
||
| 30 | |||
| 31 | $response->body($output); |
||
|
|
|||
| 32 | } |
||
| 33 | } |
||
| 34 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.