Passed
Push — master ( 0592cc...49c3ee )
by Morteza
01:39
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   +3 added lines, -3 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
         } else {
34 34
             $currentLog = 'laravel';
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.