Passed
Push — master ( 274759...7fb6bd )
by Adam
14:12
created

HitController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
namespace Coyote\Http\Controllers\Microblog;
4
5
use Coyote\Http\Controllers\Controller;
6
use Coyote\Microblog;
7
use Coyote\Services\UrlBuilder;
8
9
class HitController extends Controller
10
{
11
    public function index(Microblog $microblog)
12
    {
13
        // set original path for the request for middleware PageHit
14
        $this->request->attributes->set('path', UrlBuilder::microblog($microblog));
15
16
        return response('', 200);
17
    }
18
}
19