RequestQuery::getSymbol()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 2
nc 2
nop 0
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
}