Passed
Push — master ( 1e348f...dac824 )
by Korotkov
02:54 queued 01:17
created

ShipController::info()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Ship;
4
5
use Rudra\Controller\Controller;
6
use Rudra\Container\Facades\Rudra;
7
8
class ShipController extends Controller
9
{
10
    public function generalPreCall()
11
    {
12
        if (Rudra::config()->get("environment") === "development") {
13
            Rudra::get("debugbar")['time']->stopMeasure('routing');
14
            data([
15
                "debugbar" => Rudra::get("debugbar")->getJavascriptRenderer(),
16
            ]);
17
        }
18
    }
19
20
    public function eventRegistration()
21
    {
22
23
    }
24
25
    public function info(string $message): void
26
    {
27
        Rudra::get("debugbar")['messages']->info($message);
28
    }
29
}
30