Completed
Push — master ( 9792a6...aaaf86 )
by recca
10:22
created

standalone.php ➔ sql()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
require __DIR__.'/../vendor/autoload.php';
4
5
use Recca0120\LaravelTracy\Tracy;
6
7
// before outout
8
$tracy = Tracy::instance();
9
10
function sql($sql)
11
{
12
    $tracy = Tracy::instance();
13
    $databasePanel = $tracy->getPanel('database');
14
    $databasePanel->logQuery($sql);
15
}
16
17
sql('select * from users');
18
sql('select * from news');
19
sql('select * from products');
20