This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
10
11
/** @var IL10N */
12
protected $l10n;
13
14
/**
15
* @param IL10N $l10n
16
*/
17
public function __construct(IL10N $l10n) {
18
$this->l10n = $l10n;
19
}
20
21
/**
22
* @return string Lowercase a-z and underscore only identifier
23
* @since 11.0.0
24
*/
25
public function getIdentifier() {
26
return 'circles_as_member';
27
}
28
29
/**
30
* @return string A translated string
31
* @since 11.0.0
32
*/
33
public function getName() {
34
return $this->l10n->t('On event in a <strong>Circle</strong> you are a member, or a potential member');
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.