• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cypht-org / cypht / 18978093444

31 Oct 2025 04:00PM UTC coverage: 79.595%. Remained the same
18978093444

push

travis-ci

web-flow
Merge pull request #1770 from Shadow243/fix-site.js-generation

fix(frontend): site.js generation comments mixup

0 of 1 new or added line in 1 file covered. (0.0%)

4798 of 6028 relevant lines covered (79.6%)

17.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/js_libs.php
1
<?php
2

3
define('JS_LIBS', [
387✔
4
    'bootstrap' => 'vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js',
387✔
5
    'cash' => 'third_party/cash.min.js',
387✔
6
    'resumable' => 'third_party/resumable.min.js',
387✔
7
    'ays-beforeunload-shim' =>  'third_party/ays-beforeunload-shim.js',
387✔
8
    'jquery-are-you-sure' => 'third_party/jquery.are-you-sure.js',
387✔
9
    'sortable' => 'third_party/sortable.min.js',
387✔
10
    'kindeditor' => 'third_party/kindeditor/kindeditor-all-min.js',
387✔
11
    'nprogress' => 'third_party/nprogress.js',
387✔
12
]);
387✔
13

14
function get_js_libs($exclude_deps = []) {
15
    $js_lib = '';
3✔
16

17
    foreach (JS_LIBS as $dep) {
3✔
18
        if (!in_array($dep, $exclude_deps)) {
3✔
19
            $js_lib .= '<script type="text/javascript" src="'.WEB_ROOT.$dep.'"></script>';
3✔
20
        }
21
    }
22
    return $js_lib;
3✔
23
}
24

25
function get_js_libs_content($exclude_deps = []) {
26
    $js_lib = '';
×
27

28
    foreach (JS_LIBS as $key => $dep) {
×
29
        if (!in_array($key, $exclude_deps)) {
×
NEW
30
            $js_lib .= file_get_contents(APP_PATH.$dep) . "\n";
×
31
        }
32
    }
33
    return $js_lib;
×
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc