HealthyController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
namespace Sfneal\Healthy\Controllers;
4
5
use Illuminate\Contracts\Foundation\Application;
6
use Illuminate\Contracts\Routing\ResponseFactory;
7
use Illuminate\Http\Request;
8
use Illuminate\Http\Response;
9
use Sfneal\Controllers\Controller;
10
11
class HealthyController extends Controller
12
{
13
    /**
14
     * Return a 200 response code when the application is up & running.
15
     *
16
     * @param  Request  $request
17
     * @return Application|ResponseFactory|Response
18
     */
19
    public function __invoke(Request $request)
20
    {
21
        return response('OK', 200)->header('Content-Type', 'text/plain');
22
    }
23
}
24