Paginator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 13 2
1
<?php
2
3
namespace Anavel\Crud\View\Presenters;
4
5
use Illuminate\Pagination\BootstrapThreePresenter;
6
7
class Paginator extends BootstrapThreePresenter
8
{
9
    /**
10
     * Convert the URL window into Bootstrap HTML.
11
     *
12
     * @return string
13
     */
14
    public function render()
15
    {
16
        if ($this->hasPages()) {
17
            return sprintf(
18
                '<ul class="pagination no-margin pull-right">%s %s %s</ul>',
19
                $this->getPreviousButton(),
20
                $this->getLinks(),
21
                $this->getNextButton()
22
            );
23
        }
24
25
        return '';
26
    }
27
}
28