Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
69 | function record($check) { |
||
70 | if (!$check['status']) { |
||
71 | $this->status = 0; |
||
72 | if (isset($check['name'])) { |
||
73 | $this->result[$check['name']] = $check['result']; |
||
74 | } |
||
75 | else { |
||
76 | $this->result[] = $check['result']; |
||
77 | } |
||
78 | } |
||
79 | elseif (!isset($this->status)) { |
||
80 | $this->status = 1; |
||
81 | } |
||
82 | $this->life->modify(); |
||
83 | } |
||
84 | } |
||
85 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.