| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 23 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 20 | function jquery_out() { | 
            ||
| 21 |     $cache = new cache('jquery', '.js'); | 
            ||
| 22 | $files = array(  | 
            ||
| 23 | DOKU_INC . 'lib/scripts/jquery/jquery.min.js',  | 
            ||
| 24 | DOKU_INC . 'lib/scripts/jquery/jquery-ui.min.js',  | 
            ||
| 25 | DOKU_INC . 'lib/scripts/jquery/jquery-migrate.min.js',  | 
            ||
| 26 | );  | 
            ||
| 27 | $cache_files = $files;  | 
            ||
| 28 | $cache_files[] = __FILE__;  | 
            ||
| 29 | |||
| 30 | // check cache age & handle conditional request  | 
            ||
| 31 | // This may exit if a cache can be used  | 
            ||
| 32 |     $cache_ok = $cache->useCache(array('files' => $cache_files)); | 
            ||
| 33 | http_cached($cache->cache, $cache_ok);  | 
            ||
| 34 | |||
| 35 | $js = '';  | 
            ||
| 36 |     foreach($files as $file) { | 
            ||
| 37 | $js .= file_get_contents($file)."\n";  | 
            ||
| 38 | }  | 
            ||
| 39 | stripsourcemaps($js);  | 
            ||
| 40 | |||
| 41 | http_cached_finish($cache->cache, $js);  | 
            ||
| 42 | }  | 
            ||
| 43 |