|
@@ -34,7 +34,7 @@ discard block |
|
|
block discarded – undo |
|
34
|
34
|
{ |
|
35
|
35
|
$modelInstance = $this->app->make($modelName); |
|
36
|
36
|
|
|
37
|
|
- if (! $modelInstance instanceof EloquentModel) { |
|
|
37
|
+ if (!$modelInstance instanceof EloquentModel) { |
|
38
|
38
|
$message = "Target [$modelName] is not an Illuminate\Database\Eloquent\Model instance."; |
|
39
|
39
|
|
|
40
|
40
|
throw new \Exception($message); |
|
@@ -55,7 +55,7 @@ discard block |
|
|
block discarded – undo |
|
55
|
55
|
if ($modelInstance instanceof HasCustomRepository) { |
|
56
|
56
|
$repository = $this->app->make($modelInstance->repository(), $args); |
|
57
|
57
|
|
|
58
|
|
- if (! $repository instanceof Repository) { |
|
|
58
|
+ if (!$repository instanceof Repository) { |
|
59
|
59
|
$message = "The [$modelName] custom repository must extend Ablunier\Laravel\Database\Repository\Eloquent\Repository."; |
|
60
|
60
|
|
|
61
|
61
|
throw new \Exception($message); |
Please login to merge, or discard this patch.