| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 33 | public function run($logId, $tag) |
||
| 34 | { |
||
| 35 | $this->controller->loadData($tag); |
||
| 36 | |||
| 37 | $timings = $this->panel->getTimings(); |
||
| 38 | ArrayHelper::multisort($timings, 3, SORT_DESC); |
||
| 39 | |||
| 40 | if (!isset($timings[$logId])) { |
||
| 41 | throw new HttpException(404, 'Log message not found.'); |
||
| 42 | } |
||
| 43 | |||
| 44 | $request = unserialize($timings[$logId][1]); |
||
| 45 | $time = microtime(true); |
||
| 46 | $response = $request->send(); |
||
| 47 | $time = microtime(true) - $time; |
||
| 48 | |||
| 49 | Yii::$app->response->format = Response::FORMAT_JSON; |
||
| 50 | |||
| 51 | return [ |
||
| 52 | 'time' => sprintf('%.1f ms', $time * 1000), |
||
| 53 | 'result' => $response->getData(), |
||
| 54 | ]; |
||
| 57 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths