GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Raw::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace PhpBoot\DB;
3
/**
4
 * 原始sql字符串, 拼接时不进行转义
5
 * @author caoym
6
 *
7
 */
8
class Raw
9
{
10
    /**
11
     * @param string $str
12
     */
13 13
    function __construct($str) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
14 13
        $this->str = $str;
15 13
    }
16 1
    public function __toString(){
17 1
        return $this->str;
18
    }
19 12
    public function get(){
20 12
        return $this->str;
21
    }
22
    private $str;
23
}
24