Passed
Pull Request — main (#84)
by Andrey
196:26 queued 181:26
created

Update::past()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

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
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
    public function present(bool $as_title = false): string
15
    {
16
        $this->log('Convert text to TitleCase for ' . __FUNCTION__);
17
18
        return $this->text('updating', $as_title);
19
    }
20
21
    public function past(bool $as_title = false): string
22
    {
23
        $this->log('Convert text to TitleCase for ' . __FUNCTION__);
24
25
        return $this->text('updated', $as_title);
26
    }
27
}
28