Conditions | 3 |
Paths | 4 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | function run() { |
||
39 | $pass = parent::run(); |
||
40 | $views = views_get_all_views(TRUE); |
||
41 | foreach ($views as $view) { |
||
42 | $pass->record($this->checkViewType($view)); |
||
43 | } |
||
44 | $pass->life->end(); |
||
45 | |||
46 | // Prepare for theming |
||
47 | $result = []; |
||
48 | // @XXX May be inconsistent with non-BMP strings ? |
||
49 | uksort($pass->result, 'strcasecmp'); |
||
50 | foreach ($pass->result as $view_report) { |
||
51 | $result[] = t('!view: @type', [ |
||
52 | '!view' => $view_report[0], // Built safe in self::checkViewPhp |
||
53 | '@type' => $view_report[1], |
||
54 | ]); |
||
55 | } |
||
56 | $result = theme('item_list', ['items' => $result]); |
||
57 | $pass->result = $result; |
||
58 | return $pass; |
||
59 | } |
||
61 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.