Completed
Push — master ( eab06d...ed9895 )
by
03:01
created

RequestConfiguration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPaginationMaxPerPage() 0 4 1
1
<?php
2
3
namespace DoS\ResourceBundle\Controller;
4
5
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration as BaseRequestConfiguration;
6
7
class RequestConfiguration extends BaseRequestConfiguration
8
{
9
    /**
10
     * @return int
11
     */
12
    public function getPaginationMaxPerPage()
13
    {
14
        return (int) $this->parameters->get('paginate', $this->getRequest()->get('limit', 10));
15
    }
16
}
17