Skip to content

Commit 71b60b5

Browse files
committed
🧹 Fixed code-style
1 parent fdfb3fc commit 71b60b5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Diff for: src/Eloquent/Concerns/HasCustomRelationships.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ trait HasCustomRelationships
1111
{
1212
protected function hasManyCustom(string $related, ?string $foreign_key = null, ?string $local_key = null)
1313
{
14-
/** @var \Illuminate\Database\Eloquent\Model $instance */
14+
/** @var Model $instance */
1515
$instance = $this->newRelatedInstance($related);
1616

1717
$local_key = $local_key ?: $this->getKeyName();
1818
$foreign_key = $foreign_key ?: $this->getForeignKey();
1919
$foreign_table = $instance->getTable();
2020

21-
/** @var \Illuminate\Database\Eloquent\Model $model */
21+
/** @var Model $model */
2222
$model = $this;
2323

2424
return $this->newHasManyCustom(

Diff for: src/Eloquent/UuidModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static function boot()
1818
parent::boot();
1919

2020
static::creating(function ($model) {
21-
/** @var \Illuminate\Database\Eloquent\Model $model */
21+
/** @var Model $model */
2222
if (! ($model->attributes[$model->primaryKey] ?? false)) {
2323
$model->attributes[$model->primaryKey] = (string) Uuid::uuid4();
2424
}

Diff for: src/Support/ModelHelper.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ModelHelper
1313
/**
1414
* @param \Illuminate\Database\Eloquent\Model|string $model
1515
*
16-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
16+
* @throws IncorrectModelException
1717
*/
1818
public function connection($model): ?string
1919
{
@@ -25,7 +25,7 @@ public function connection($model): ?string
2525
/**
2626
* @param \Illuminate\Database\Eloquent\Model|string $model
2727
*
28-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
28+
* @throws IncorrectModelException
2929
*/
3030
public function table($model): string
3131
{
@@ -37,7 +37,7 @@ public function table($model): string
3737
/**
3838
* @param \Illuminate\Database\Eloquent\Model|string $model
3939
*
40-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
40+
* @throws IncorrectModelException
4141
*/
4242
public function tableWithConnection($model): string
4343
{
@@ -52,7 +52,7 @@ public function tableWithConnection($model): string
5252
/**
5353
* @param \Illuminate\Database\Eloquent\Model|string $model
5454
*
55-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
55+
* @throws IncorrectModelException
5656
*/
5757
public function primaryKey($model): string
5858
{
@@ -64,7 +64,7 @@ public function primaryKey($model): string
6464
/**
6565
* @param \Illuminate\Database\Eloquent\Model|string $model
6666
*
67-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
67+
* @throws IncorrectModelException
6868
*/
6969
public function primaryKeyType($model): string
7070
{
@@ -76,7 +76,7 @@ public function primaryKeyType($model): string
7676
/**
7777
* @param \Illuminate\Database\Eloquent\Model|string $model
7878
*
79-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
79+
* @throws IncorrectModelException
8080
*/
8181
public function query($model): Builder
8282
{
@@ -96,7 +96,7 @@ public function className($model): string
9696
/**
9797
* @param \Illuminate\Database\Eloquent\Model|string $model
9898
*
99-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
99+
* @throws IncorrectModelException
100100
*/
101101
public function fillable($model): array
102102
{
@@ -109,7 +109,7 @@ public function fillable($model): array
109109
* @param \Illuminate\Database\Eloquent\Model|string $model
110110
* @param \Illuminate\Http\Request $request
111111
*
112-
* @throws \DragonCode\LaravelSupport\Exceptions\IncorrectModelException
112+
* @throws IncorrectModelException
113113
*/
114114
public function onlyFillable($model, $request): array
115115
{
@@ -134,7 +134,7 @@ public function exceptFillable($model, ...$except): array
134134
*
135135
* @throws IncorrectModelException
136136
*
137-
* @return \Illuminate\Database\Eloquent\Model
137+
* @return Model
138138
*/
139139
public function model($model)
140140
{

Diff for: src/Traits/InitModelHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
trait InitModelHelper
99
{
10-
/** @var \DragonCode\LaravelSupport\Support\ModelHelper */
10+
/** @var ModelHelper */
1111
protected static $model_helper;
1212

1313
/**

0 commit comments

Comments
 (0)