Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 4596ec1

Browse files
Merge pull request #6 from DarkGhostHunter/master
Minor fixes and typos
2 parents 6c79c61 + c0dd70a commit 4596ec1

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

src/Eloquent/Metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Metadata extends Model
5353
/**
5454
* The settings this metadata has.
5555
*
56-
* @return \Illuminate\Database\Eloquent\Relations\HasMany|\Services\Settings\Eloquent\Setting
56+
* @return \Illuminate\Database\Eloquent\Relations\HasMany|\DarkGhostHunter\Laraconfig\Eloquent\Setting
5757
*/
5858
public function settings(): HasMany
5959
{

src/Eloquent/Setting.php

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
*
1919
* @property-read string $name // Added by the "add-metadata" global scope.
2020
* @property-read string $type // Added by the "add-metadata" global scope.
21-
* @property-read \Illuminate\Support\Carbon|\Illuminate\Support\Collection|array|string|int|float|bool|null $default
22-
* // Added by the "add-metadata" global scope.
21+
* @property-read \Illuminate\Support\Carbon|\Illuminate\Support\Collection|array|string|int|float|bool|null $default // Added by the "add-metadata" global scope.
2322
* @property-read string $group // Added by the "add-metadata" global scope.
2423
* @property-read string $bag // Added by the "add-metadata" global scope.
2524
*
@@ -39,12 +38,11 @@ class Setting extends Model
3938
*
4039
* @var array
4140
*/
42-
protected $casts
43-
= [
44-
'value' => Casts\DynamicCasting::class,
45-
'default' => Casts\DynamicCasting::class,
46-
'is_enabled' => 'boolean',
47-
];
41+
protected $casts = [
42+
'value' => Casts\DynamicCasting::class,
43+
'default' => Casts\DynamicCasting::class,
44+
'is_enabled' => 'boolean',
45+
];
4846

4947
/**
5048
* The attributes that are mass assignable.
@@ -67,15 +65,6 @@ class Setting extends Model
6765
*/
6866
public ?array $parentBags = null;
6967

70-
/**
71-
* The settings repository.
72-
*
73-
* @internal
74-
*
75-
* @var \DarkGhostHunter\Laraconfig\Laraconfig|null
76-
*/
77-
public ?Laraconfig $laraconfig = null;
78-
7968
/**
8069
* Settings cache repository.
8170
*
@@ -113,7 +102,7 @@ protected static function booted(): void
113102
/**
114103
* The parent metadata.
115104
*
116-
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo|\Services\Settings\Eloquent\Metadata
105+
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
117106
*/
118107
public function metadata(): BelongsTo
119108
{
@@ -123,7 +112,7 @@ public function metadata(): BelongsTo
123112
/**
124113
* The user this settings belongs to.
125114
*
126-
* @return \Illuminate\Database\Eloquent\Relations\MorphTo|\Illuminate\Database\Eloquent\Builder
115+
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
127116
*/
128117
public function user(): MorphTo
129118
{
@@ -261,4 +250,4 @@ public function invalidateCache(): void
261250
);
262251
}
263252
}
264-
}
253+
}

0 commit comments

Comments
 (0)