src/Assets/Js/YiiBootBox.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1.33

Size

Lines of Code 7
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 4
dl 0
loc 7
c 0
b 0
f 0
cc 0
nc 4
rs 10
mnd 1
bc 5
fnc 3
bpm 1.6666
cpm 1.3333
noi 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A yii.confirm 0 5 1
1
/**
2
 * @link https://github.com/terabytesoft
3
 * @copyright Copyright (c) 2018 TerabyteSoft S.A.
4
 * @license https://github.com/terabytesoft/asset-bootbox/blob/master/LICENSE.md
5
 *
6
 * @author: Wilmer Arámbula <[email protected]>
7
 */
8
9
/***********************************************************************************************************************
10
 * BootBox                                                                                                             *
11
 ***********************************************************************************************************************/
12
(function () {
13
    yii.confirm = function(message, ok, cancel) {
0 ignored issues
show
Bug introduced by
The variable yii seems to be never declared. If this is a global, consider adding a /** global: yii */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
14
        bootbox.confirm(message, function(result) {
0 ignored issues
show
Bug introduced by
The variable bootbox seems to be never declared. If this is a global, consider adding a /** global: bootbox */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
15
            if (result) { !ok || ok(); } else { !cancel || cancel(); }
16
        });
17
    }
18
})();
19