RequestQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSymbol() 0 9 2
1
<?php
2
/**
3
 * @copyright Copyright (c) 2011 - 2014 Aleksandr Torosh (http://wezoom.net)
4
 * @author Aleksandr Torosh <[email protected]>
5
 */
6
7
namespace Application\Mvc\Helper;
8
9
class RequestQuery extends \Phalcon\Mvc\User\Component
10
{
11
12
    public function getSymbol()
13
    {
14
        $queries = $this->request->getQuery();
15
        if (count($queries) == 1) {
16
            return '?';
17
        } else {
18
            return '&';
19
        }
20
    }
21
22
}