| @@ -2,6 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | // Auth::routes(); | 
| 4 | 4 | |
| 5 | -Route::middleware(['web'])->namespace('MoriTiza\LaraLog\Http\Controllers')->group(function () { | |
| 5 | +Route::middleware(['web'])->namespace('MoriTiza\LaraLog\Http\Controllers')->group(function() { | |
| 6 | 6 |      Route::get('logs', 'LaraLogController@index'); | 
| 7 | 7 | }); | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | |
| 29 | 29 |          $logQuery = $request->input('log'); | 
| 30 | 30 | |
| 31 | -        if (isset($logQuery) && (! is_null($logQuery)) && array_key_exists($logQuery, $this->dailyLogs)) { | |
| 31 | +        if (isset($logQuery) && (!is_null($logQuery)) && array_key_exists($logQuery, $this->dailyLogs)) { | |
| 32 | 32 | $currentLog = $logQuery; | 
| 33 | 33 |          } else { | 
| 34 | 34 | $currentLog = 'laravel'; | 
| @@ -39,14 +39,14 @@ discard block | ||
| 39 | 39 | $logsCollection = collect($singleLogs); | 
| 40 | 40 | $perPage = 5; | 
| 41 | 41 | $currentPageItems = $logsCollection->slice(($currentPage * $perPage) - $perPage, $perPage)->all(); | 
| 42 | - $paginatedSingleLogs = new LengthAwarePaginator($currentPageItems , count($logsCollection), $perPage); | |
| 42 | + $paginatedSingleLogs = new LengthAwarePaginator($currentPageItems, count($logsCollection), $perPage); | |
| 43 | 43 | $paginatedSingleLogs->setPath($request->url()); | 
| 44 | 44 |          } else { | 
| 45 | 45 | $currentPage = LengthAwarePaginator::resolveCurrentPage(); | 
| 46 | 46 | $logsCollection = collect(array_reverse($dailyLogs[$logQuery])); | 
| 47 | 47 | $perPage = 5; | 
| 48 | 48 | $currentPageItems = $logsCollection->slice(($currentPage * $perPage) - $perPage, $perPage)->all(); | 
| 49 | - $paginatedDailyLogs = new LengthAwarePaginator($currentPageItems , count($logsCollection), $perPage); | |
| 49 | + $paginatedDailyLogs = new LengthAwarePaginator($currentPageItems, count($logsCollection), $perPage); | |
| 50 | 50 |              $paginatedDailyLogs->setPath('logs?log=' . $currentLog); | 
| 51 | 51 | } | 
| 52 | 52 | |