| Conditions | 3 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function run(): Pass { |
||
| 41 | $pass = parent::run(); |
||
| 42 | $views = views_get_all_views(TRUE); |
||
| 43 | foreach ($views as $view) { |
||
| 44 | $pass->record($this->checkViewType($view)); |
||
| 45 | } |
||
| 46 | $pass->life->end(); |
||
| 47 | |||
| 48 | // Prepare for theming |
||
| 49 | $result = []; |
||
| 50 | // @XXX May be inconsistent with non-BMP strings ? |
||
| 51 | uksort($pass->result, 'strcasecmp'); |
||
| 52 | foreach ($pass->result as $view_report) { |
||
| 53 | $result[] = t('!view: @type', [ |
||
| 54 | '!view' => $view_report[0], // Built safe in self::checkViewPhp |
||
| 55 | '@type' => $view_report[1], |
||
| 56 | ]); |
||
| 57 | } |
||
| 58 | $result = theme('item_list', ['items' => $result]); |
||
| 59 | $pass->result = $result; |
||
| 60 | return $pass; |
||
| 61 | } |
||
| 63 |