TagPresenter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateDynamicFilterName() 0 4 1
1
<?php
2
3
namespace App\Libraries\Presenterable\Presenters;
4
5
class TagPresenter extends Presenter
6
{
7
    /**
8
     * Generate dynamic filter name.
9
     *
10
     * @return string
11
     */
12
    public function generateDynamicFilterName()
13
    {
14
        return sprintf("%s_%s", strtolower($this->model->group), $this->model->name);
15
    }
16
}