Completed
Push — master ( 52d636...15db05 )
by Jonathan
14:04
created

resources/assets/js/uitypes/image.js   A

Complexity

Total Complexity 3
Complexity/F 3

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A image.js ➔ createdCell 0 9 2
1
export class UitypeImage
2
{
3
    createdCell(columnData, td, cellData, rowData, row, col) {
0 ignored issues
show
Unused Code introduced by
The parameter col is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Unused Code introduced by
The parameter row is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Unused Code introduced by
The parameter rowData is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
4
5
        if (cellData)
6
        {
7
            let html = `<div class="align-center"><img src="${cellData}" style="object-fit: cover; border-radius: 50%; width: 40px; height: 40px"></div>`
8
9
            $(td).html(html)
10
        }
11
    }
12
}