Passed
Push — main ( 55f929...127e84 )
by Andrey
161:41 queued 158:10
created

Update::past()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Support\Actions;
4
5
final class Update extends Action
6
{
7
    public function future(bool $as_title = false): string
8
    {
9
        $this->log('Convert text to TitleCase for ' . __FUNCTION__);
10
11
        return $this->text('update', $as_title);
12
    }
13
14 1
    public function present(bool $as_title = false): string
15
    {
16 1
        $this->log('Convert text to TitleCase for ' . __FUNCTION__);
17
18 1
        return $this->text('updating', $as_title);
19
    }
20
21 1
    public function past(bool $as_title = false): string
22
    {
23 1
        $this->log('Convert text to TitleCase for ' . __FUNCTION__);
24
25 1
        return $this->text('updated', $as_title);
26
    }
27
}
28