Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | function writeErrorToLog() |
||
29 | { |
||
30 | error_log("=============================== ERROR ================================"); |
||
31 | error_log("msg: " . $this->msg); |
||
32 | error_log("view: " . print_r($this->view, true)); |
||
33 | error_log("actions: " . $this->actionsToString()); |
||
34 | error_log("accountId: " . $this->accountId); |
||
35 | error_log("isVerified: " . $this->isVerified); |
||
36 | error_log("isTokenFresh: " . $this->isTokenFresh); |
||
37 | error_log("page: " . $this->page); |
||
38 | error_log("varsToDump: " . $this->varsToDumpToString()); |
||
39 | error_log("======================================================================"); |
||
40 | } |
||
41 | |||
51 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.