| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | trait Traceable |
||
| 8 | { |
||
| 9 | abstract public function get_tracer() : TracerInterface; |
||
| 10 | abstract public function get_id(); |
||
| 11 | abstract public static function table_name(); |
||
| 12 | |||
| 13 | |||
| 14 | public function trace() |
||
| 15 | { |
||
| 16 | ; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function traceable(): bool |
||
| 20 | { |
||
| 21 | return true; // TightORM are traced by default |
||
| 22 | } |
||
| 23 | |||
| 24 | public function traces() : array |
||
| 33 | } |
||
| 34 | |||
| 35 | // don't really know the purpose of this anymore.. came from Tracer |
||
| 36 | public function traces_by_model(ModelInterface $m) |
||
| 37 | { |
||
| 38 | return $this->get_tracer()->traces(['id' => $m->get_id(), 'table' => get_class($m)::table_name()]); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function after_save() |
||
| 43 | ; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function after_destroy() |
||
| 48 | ; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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