Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function render():string { |
||
16 | /** |
||
17 | * @var table_model $model |
||
18 | */ |
||
19 | $model = $this->get_model('table'); |
||
20 | $my_name = 'Nicolas'; |
||
21 | $json_datas = $model->get_datas_from_json($this->attribute('file')); |
||
22 | |||
23 | |||
24 | $header_view = $model->genere_header( |
||
25 | $json_datas, |
||
26 | $this->get_view('tr'), |
||
27 | $this->get_view('th') |
||
28 | ); |
||
29 | $lines = $model->genere_body( |
||
30 | $json_datas, |
||
31 | $this->get_view('tr'), |
||
32 | $this->get_view('td') |
||
33 | ); |
||
34 | $table = $this->get_view('table') |
||
35 | ->set_vars([ |
||
36 | 'text_in_french' => translation::__($this->attribute('text_to_translate'), [$my_name], 'fr'), |
||
37 | 'text_in_english' => translation::__($this->attribute('text_to_translate'), [$my_name]), |
||
38 | 'header' => $header_view, |
||
39 | 'lines' => $lines |
||
40 | ])->render(); |
||
41 | |||
42 | return $table; |
||
43 | } |
||
44 | } |
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