NullTranslator::translate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Elgg\I18n;
3
4
5
/**
6
 * WARNING: API IN FLUX. DO NOT USE DIRECTLY.
7
 *
8
 * A translator that does nothing except return the key that was requested.
9
 * 
10
 * This translator is useful during development if you want to be able to
11
 * easily tell what the available keys are for changing the wording of UI elements.
12
 * 
13
 * @since 1.10.0
14
 *
15
 * @access private
16
 */
17
final class NullTranslator extends Translator {
18
	/** @inheritDoc */
19
	public function translate($key, $args = array(), $lang = '') {
20
		return $key;
21
	}
22
}