TopicPresenter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 7
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A title() 0 4 1
1
<?php
2
3
namespace PHPHub\Presenters;
4
5
use McCool\LaravelAutoPresenter\BasePresenter;
6
7
/**
8
 * Class TopicPresenter.
9
 */
10
class TopicPresenter extends BasePresenter
11
{
12
    public function title()
13
    {
14
        return app('auto-correct')->convert($this->wrappedObject->title);
15
    }
16
}
17