example/sources/js/texts.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 16
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A texts.js ➔ bothWorlds 0 4 1
1
2
var text = t('This text is in a javascript file.');
3
4
function bothWorlds()
5
{
6
	return t('This text is used serverside and on the client.');
7
}
8
9
var multiline = t(
10
	'It is possible to write long texts ' +
11
	'using text concatenation in the source ' +
12
	'code to keep it readable.'
13
);
14
15
var someVariable = '';
16
17
var text2 = t('Texts with variables in them are ignored.'+someVariable);