Skip to content

Commit 55f31fe

Browse files
authored
Removes empty array from Array::rules
Since it already has a default value, there's not reason to have an empty array there And StyleCI update aswell
1 parent 3f4db15 commit 55f31fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App/Http/Traits/ActivityLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace jeremykenedy\LaravelLogger\App\Http\Traits;
44

5-
use Illuminate\Support\Facades\Log;
65
use Illuminate\Support\Facades\Auth;
6+
use Illuminate\Support\Facades\Log;
77
use Illuminate\Support\Facades\Request;
88
use Illuminate\Support\Facades\Validator;
99
use Jaybizzle\LaravelCrawlerDetect\Facades\LaravelCrawlerDetect as Crawler;
@@ -73,7 +73,7 @@ public static function activity($description = null)
7373
];
7474

7575
// Validation Instance
76-
$validator = Validator::make($data, Activity::rules([]));
76+
$validator = Validator::make($data, Activity::rules());
7777
if ($validator->fails()) {
7878
$errors = self::prepareErrorMessage($validator->errors(), $data);
7979
if (config('LaravelLogger.logDBActivityLogFailuresToFile')) {

0 commit comments

Comments
 (0)