Texts   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A display() 0 3 1
1
<?php
2
3
    declare(strict_types=1);
4
5
    use function AppLocalize\t;
6
    use function AppLocalize\pt;
7
8
    function textsInFunction() : string
9
    {
10
        return t('This text is in a function.');
11
    }
12
    
13
    $textA = t('This text is in the global scope.');
14
    
15
    $textB = t('This text is used serverside and on the client.');
16
    
17
    class Texts
18
    {
19
        public function display() : void
20
        {
21
            pt('This text is printed from a class.');
22
        }
23
    }
24
    
25
    function textsDuplicates() : string
26
    {
27
        return t('This text is in a function.');
28
    }
29