Completed
Push — master ( 298f03...ffc189 )
by Afshin
05:54 queued 02:59
created

Url::urlFor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: afshin
5
 * Date: 11/13/17
6
 * Time: 3:19 PM
7
 */
8
9
namespace Core\Helpers;
10
11
class Url
12
{
13
    public function urlFor($name, $params = array())
14
    {
15
        return $this->request->getRootUri() . $this->router->urlFor($name, $params);
0 ignored issues
show
Bug Best Practice introduced by
The property request does not exist on Core\Helpers\Url. Did you maybe forget to declare it?
Loading history...
Bug Best Practice introduced by
The property router does not exist on Core\Helpers\Url. Did you maybe forget to declare it?
Loading history...
16
    }
17
}