Passed
Push — master ( 510b70...282754 )
by Morteza
01:30
created
src/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Http/Controllers/LaraLogController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
             if ($value === trim('[stacktrace]') || $value === trim('"}') || trim($value) == null || preg_match('/^#[0-9]+[\' \']/', $value) || preg_match('/^\[previous exception\] \[object\]/', $value)) {
106 106
                 unset($this->singleLogs[$key]);
107 107
             }
108
-       }
108
+        }
109 109
     }
110 110
 
111 111
     private function deleteAdditionalDailyLogs($dailyLogs)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
         } elseif (file_exists(storage_path('logs/laravel.log'))) {
34 34
             $currentLog = 'laravel';
@@ -41,21 +41,21 @@  discard block
 block discarded – undo
41 41
             $logsCollection = collect($singleLogs);
42 42
             $perPage = 5;
43 43
             $currentPageItems = $logsCollection->slice(($currentPage * $perPage) - $perPage, $perPage)->all();
44
-            $paginatedSingleLogs = new LengthAwarePaginator($currentPageItems , count($logsCollection), $perPage);
44
+            $paginatedSingleLogs = new LengthAwarePaginator($currentPageItems, count($logsCollection), $perPage);
45 45
             $paginatedSingleLogs->setPath($request->url());
46
-        } elseif (isset($logQuery) && (! is_null($logQuery))) {
46
+        } elseif (isset($logQuery) && (!is_null($logQuery))) {
47 47
             $currentPage = LengthAwarePaginator::resolveCurrentPage();
48 48
             $logsCollection = collect(array_reverse($dailyLogs[$logQuery]));
49 49
             $perPage = 5;
50 50
             $currentPageItems = $logsCollection->slice(($currentPage * $perPage) - $perPage, $perPage)->all();
51
-            $paginatedDailyLogs = new LengthAwarePaginator($currentPageItems , count($logsCollection), $perPage);
51
+            $paginatedDailyLogs = new LengthAwarePaginator($currentPageItems, count($logsCollection), $perPage);
52 52
             $paginatedDailyLogs->setPath('logs?log=' . $currentLog);
53 53
         } else {
54 54
             $currentPage = LengthAwarePaginator::resolveCurrentPage();
55 55
             $logsCollection = collect(array_reverse($dailyLogs[$currentLog]));
56 56
             $perPage = 5;
57 57
             $currentPageItems = $logsCollection->slice(($currentPage * $perPage) - $perPage, $perPage)->all();
58
-            $paginatedDailyLogs = new LengthAwarePaginator($currentPageItems , count($logsCollection), $perPage);
58
+            $paginatedDailyLogs = new LengthAwarePaginator($currentPageItems, count($logsCollection), $perPage);
59 59
             $paginatedDailyLogs->setPath('logs?log=' . $currentLog);
60 60
         }
61 61
 
Please login to merge, or discard this patch.