Passed
Push — master ( 266a83...aefa5d )
by Felipe Catão do
01:09
created

blackBox.js ➔ blackbox   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
1
import EngineApp from '../../Framework/engine.js'
2
3
function blackbox(content,body){
4
    let eng=new EngineApp()
5
    eng.componentsEngine.createComponent("boxblack",box(content,body))
6
    eng.componentsEngine.renderComponent("dinamic","boxblack")
7
}
8
9
function box(titulo,body){
0 ignored issues
show
Unused Code introduced by
The parameter body 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 titulo 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...
10
    return "<br><div class='card'>"+
11
    " <div class='card-header'>Lavine Framework</div"+
12
    "<div class='card-body'>"+
13
    "<h5 class='card-title'>Special title treatment</h5>"+
14
    "<p class='card-text'>With supporting text below as a natural lead-in to additional content.</p>"+
15
    "<a href='#'' class='btn btn-primary'>Go somewhere</a>"+
16
    "</div></div>"
17
}
18
19
export default blackbox