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

Update   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 21
ccs 6
cts 9
cp 0.6667
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A future() 0 5 1
A past() 0 5 1
A present() 0 5 1
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