NullTranslator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A translate() 0 3 1
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
}