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

Url   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A urlFor() 0 3 1
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
}