| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function flush($token = null) |
||
| 41 | { |
||
| 42 | $status = ''; |
||
| 43 | |||
| 44 | if ($token) { |
||
| 45 | app('rinvex.fort.persistence')->delete($token); |
||
| 46 | $status = trans('rinvex.fort::frontend/messages.auth.session.flushed'); |
||
| 47 | } elseif (request()->get('confirm')) { |
||
| 48 | app('rinvex.fort.persistence')->deleteByUser(Auth::guard($this->getGuard())->user()->id); |
||
| 49 | $status = trans('rinvex.fort::frontend/messages.auth.session.flushedall'); |
||
| 50 | } |
||
| 51 | |||
| 52 | return intend([ |
||
| 53 | 'back' => true, |
||
| 54 | 'with' => ['rinvex.fort.alert.warning' => $status], |
||
| 55 | ]); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.