Passed
Push — master ( ad4e5d...88df5a )
by Ostap
12:15
created
app/Http/Requests/StoreStudentRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
     public function rules(): array
10 10
     {
11 11
         return [
12
-            'name' => ['string', 'required'],
13
-            'slug' => ['string', 'required', 'unique:users,slug'],
12
+            'name' => [ 'string', 'required' ],
13
+            'slug' => [ 'string', 'required', 'unique:users,slug' ],
14 14
         ];
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (!$request->expectsJson()) {
18 18
             return route('login');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function handle(Request $request, Closure $next, ...$guards)
21 21
     {
22
-        $guards = empty($guards) ? [null] : $guards;
22
+        $guards = empty($guards) ? [ null ] : $guards;
23 23
 
24 24
         foreach ($guards as $guard) {
25 25
             if (Auth::guard($guard)->check()) {
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     protected function configureRateLimiting()
48 48
     {
49
-        RateLimiter::for('api', function (Request $request) {
49
+        RateLimiter::for ('api', function(Request $request) {
50 50
             return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
51 51
         });
52 52
     }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->reportable(function (Throwable $e) {
37
+        $this->reportable(function(Throwable $e) {
38 38
             //
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
app/Models/School.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     use HasFactory;
12 12
 
13
-    protected $fillable = ['name'];
13
+    protected $fillable = [ 'name' ];
14 14
 
15 15
     protected static function newFactory()
16 16
     {
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     use HasApiTokens, HasFactory, Notifiable;
13 13
 
14
-    protected $guarded = [];
14
+    protected $guarded = [ ];
15 15
 
16 16
     /**
17 17
      * The attributes that should be cast to native types.
Please login to merge, or discard this patch.