Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
65 | public static function end() |
||
66 | { |
||
67 | // If the session is ended while in cart or pending state, remove the reservation. |
||
68 | // The session is only ended in these states when iffy business is going on. |
||
69 | if (in_array(self::get()->Status, array('CART', 'PENDING'))) { |
||
70 | self::get()->delete(); |
||
71 | } |
||
72 | |||
73 | Session::set(self::KEY, null); |
||
74 | Session::clear(self::KEY); |
||
75 | } |
||
76 | } |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.