Texts::display()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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