Passed
Push — 9.x ( 025072...127945 )
by Andrey
15:06
created

Add   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A future() 0 5 1
A present() 0 5 1
A past() 0 5 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Support\Actions;
4
5
final class Add 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('add', $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('adding', $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('added', $as_title);
26
    }
27
}
28