Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | public function check() |
||
39 | { |
||
40 | if($this->exists($this->serial)) |
||
41 | { |
||
42 | if($this->expired($this->serial)) |
||
43 | { |
||
44 | return (object)['active' => false,'message' => "Serial Number is Expired"]; |
||
45 | } |
||
46 | |||
47 | if($this->disabled($this->serial)) |
||
48 | { |
||
49 | return (object)['active' => false,'message' => "Serial Number is Disabled"]; |
||
50 | } |
||
51 | |||
52 | return (object)['active' => true,'message' => "Serial Number is valid"]; |
||
53 | } else{ |
||
54 | return (object)['active' => false,'message' => "Serial Number invalid"]; |
||
55 | } |
||
58 |