| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function processPersistenceFlush($token = null) |
||
| 42 | { |
||
| 43 | $status = ''; |
||
| 44 | |||
| 45 | if ($token) { |
||
| 46 | app('rinvex.fort.persistence')->delete($token); |
||
| 47 | $status = Lang::get('rinvex.fort::message.auth.session.flushed'); |
||
| 48 | } elseif (request()->get('confirm')) { |
||
| 49 | app('rinvex.fort.persistence')->deleteByUser(Auth::guard($this->getGuard())->user()->id); |
||
| 50 | $status = Lang::get('rinvex.fort::message.auth.session.flushedall'); |
||
| 51 | } |
||
| 52 | |||
| 53 | return intend([ |
||
| 54 | 'back' => true, |
||
| 55 | 'with' => ['rinvex.fort.alert.warning' => $status], |
||
| 56 | ]); |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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.