Conditions | 4 |
Paths | 6 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
43 | 12 | public function test($ad_code) |
|
44 | { |
||
45 | $result = array( |
||
46 | 12 | 'notice' => array(), |
|
47 | 12 | 'warning' => array(), |
|
48 | 12 | ); |
|
49 | 12 | foreach ($this->tests as $test) |
|
50 | { |
||
51 | 12 | $result = array_merge_recursive($result, $test->test($ad_code)); |
|
52 | 12 | } |
|
53 | |||
54 | 12 | foreach ($result as $severity => $messages) |
|
55 | { |
||
56 | 12 | foreach ($messages as $lang_key) |
|
57 | { |
||
58 | 10 | $this->template->assign_block_vars('analyser_results_' . $severity, array( |
|
59 | 10 | 'MESSAGE' => $this->lang->lang($lang_key), |
|
60 | 10 | )); |
|
61 | 12 | } |
|
62 | 12 | } |
|
63 | 12 | } |
|
64 | } |
||
65 |