| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 4 | public static function add_head_elements(array $views) |
|
| 19 | { |
||
| 20 | 4 | $head = midcom::get()->head; |
|
| 21 | 4 | $head->add_jsfile(MIDCOM_STATIC_URL . self::$prefix . 'lib/main.min.js'); |
|
| 22 | 4 | if ($lang = self::get_lang()) { |
|
| 23 | $head->add_jsfile(MIDCOM_STATIC_URL . self::$prefix . "lib/locales/{$lang}.js"); |
||
| 24 | } |
||
| 25 | |||
| 26 | 4 | $head->add_stylesheet(MIDCOM_STATIC_URL . self::$prefix . 'lib/main.min.css'); |
|
| 27 | 4 | $head->add_stylesheet(MIDCOM_STATIC_URL . '/org.openpsa.calendar/calendar.css'); |
|
| 28 | |||
| 29 | 4 | $head->add_jsfile(MIDCOM_STATIC_URL . '/org.openpsa.calendar/calendar.js'); |
|
| 30 | 4 | } |
|
| 45 |