| Total Complexity | 7 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Controller extends BaseController |
||
| 13 | { |
||
| 14 | use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
||
| 15 | |||
| 16 | 68 | protected function getItemsPerPage() |
|
| 19 | } |
||
| 20 | |||
| 21 | 38 | protected function addFlashMessage($message, $alertClass = null) |
|
| 29 | } |
||
| 30 | } |
||
| 31 | 38 | } |
|
| 32 | |||
| 33 | 21 | protected function returnBack($data) |
|
| 34 | { |
||
| 35 | // Zapobiegaj infinite loop |
||
| 36 | 21 | if (back()->getTargetUrl() === url()->current()) { |
|
| 37 | 1 | Log::info('Request loop: '.back()->getTargetUrl()); |
|
| 38 | |||
| 39 | 1 | return redirect(route('room.index'))->with($data); |
|
| 40 | } |
||
| 41 | |||
| 42 | 20 | return back()->with($data); |
|
| 43 | } |
||
| 44 | |||
| 45 | 3 | public function changeLanguage($language) |
|
| 49 | } |
||
| 50 | } |
||
| 51 |