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