Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
38 | 7 | public function guid($guid) |
|
39 | { |
||
40 | 7 | $this->checkGuId($guid); |
|
41 | 4 | $this->url = ''; |
|
42 | 4 | $ParameterQuery = '(guid'; |
|
43 | 4 | $ParameterQuery.= "'"; |
|
44 | 4 | $ParameterQuery.= $guid; |
|
45 | 4 | $ParameterQuery.= "'"; |
|
46 | 4 | $ParameterQuery.=')'; |
|
47 | |||
48 | 4 | return $this->concatenationUrlCurl($ParameterQuery); |
|
49 | } |
||
50 | } |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: