Skip to content

Commit baea2f9

Browse files
committed
Merge branch '5.x' of github.com:BinarCode/laravel-restify into 5.x
2 parents 85fcc65 + 126cb9f commit baea2f9

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

src/Repositories/ValidatingTrait.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public static function validatorForStoring(RestifyRequest $request, array $plain
4444
$on->getStoringRules($request),
4545
$messages
4646
)->after(function ($validator) use ($request) {
47-
static::afterValidation($request, $validator);
48-
static::afterStoringValidation($request, $validator);
49-
});
47+
static::afterValidation($request, $validator);
48+
static::afterStoringValidation($request, $validator);
49+
});
5050
}
5151

5252
public static function validatorForStoringBulk(RestifyRequest $request, array $plainPayload = null)
@@ -67,9 +67,9 @@ public static function validatorForStoringBulk(RestifyRequest $request, array $p
6767
$on->getStoringBulkRules($request),
6868
$messages
6969
)->after(function ($validator) use ($request) {
70-
static::afterValidation($request, $validator);
71-
static::afterStoringBulkValidation($request, $validator);
72-
});
70+
static::afterValidation($request, $validator);
71+
static::afterStoringBulkValidation($request, $validator);
72+
});
7373
}
7474

7575
/**
@@ -101,9 +101,9 @@ public static function validatorForUpdate(RestifyRequest $request, $resource = n
101101
$on->getUpdatingRules($request),
102102
$messages
103103
)->after(function ($validator) use ($request) {
104-
static::afterValidation($request, $validator);
105-
static::afterUpdatingValidation($request, $validator);
106-
});
104+
static::afterValidation($request, $validator);
105+
static::afterUpdatingValidation($request, $validator);
106+
});
107107
}
108108

109109
public static function validatorForPatch(RestifyRequest $request, $resource = null, array $plainPayload = null)
@@ -127,9 +127,9 @@ public static function validatorForPatch(RestifyRequest $request, $resource = nu
127127
collect($on->getUpdatingRules($request))->intersectByKeys($request->json())->all(),
128128
$messages
129129
)->after(function ($validator) use ($request) {
130-
static::afterValidation($request, $validator);
131-
static::afterUpdatingValidation($request, $validator);
132-
});
130+
static::afterValidation($request, $validator);
131+
static::afterUpdatingValidation($request, $validator);
132+
});
133133
}
134134

135135
public static function validatorForAttach(RestifyRequest $request, $resource = null, array $plainPayload = null)
@@ -179,9 +179,9 @@ public static function validatorForUpdateBulk(RestifyRequest $request, $resource
179179
$on->getUpdatingBulkRules($request),
180180
$messages
181181
)->after(function ($validator) use ($request) {
182-
static::afterValidation($request, $validator);
183-
static::afterUpdatingBulkValidation($request, $validator);
184-
});
182+
static::afterValidation($request, $validator);
183+
static::afterUpdatingBulkValidation($request, $validator);
184+
});
185185
}
186186

187187
/**

tests/Unit/MatchableFilterTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class MatchableFilterTest extends IntegrationTest
1111
public function test_matchable_filter_has_key(): void
1212
{
1313
$filter = new class extends MatchFilter {
14-
1514
};
1615

1716
tap(

0 commit comments

Comments
 (0)