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

Commit

Permalink
Merge pull request #6 from DarkGhostHunter/master
Browse files Browse the repository at this point in the history
Minor fixes and typos
  • Loading branch information
DarkGhostHunter authored Jul 20, 2021
2 parents 6c79c61 + c0dd70a commit 4596ec1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/Eloquent/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Metadata extends Model
/**
* The settings this metadata has.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany|\Services\Settings\Eloquent\Setting
* @return \Illuminate\Database\Eloquent\Relations\HasMany|\DarkGhostHunter\Laraconfig\Eloquent\Setting
*/
public function settings(): HasMany
{
Expand Down
29 changes: 9 additions & 20 deletions src/Eloquent/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
*
* @property-read string $name // Added by the "add-metadata" global scope.
* @property-read string $type // Added by the "add-metadata" global scope.
* @property-read \Illuminate\Support\Carbon|\Illuminate\Support\Collection|array|string|int|float|bool|null $default
* // Added by the "add-metadata" global scope.
* @property-read \Illuminate\Support\Carbon|\Illuminate\Support\Collection|array|string|int|float|bool|null $default // Added by the "add-metadata" global scope.
* @property-read string $group // Added by the "add-metadata" global scope.
* @property-read string $bag // Added by the "add-metadata" global scope.
*
Expand All @@ -39,12 +38,11 @@ class Setting extends Model
*
* @var array
*/
protected $casts
= [
'value' => Casts\DynamicCasting::class,
'default' => Casts\DynamicCasting::class,
'is_enabled' => 'boolean',
];
protected $casts = [
'value' => Casts\DynamicCasting::class,
'default' => Casts\DynamicCasting::class,
'is_enabled' => 'boolean',
];

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

/**
* The settings repository.
*
* @internal
*
* @var \DarkGhostHunter\Laraconfig\Laraconfig|null
*/
public ?Laraconfig $laraconfig = null;

/**
* Settings cache repository.
*
Expand Down Expand Up @@ -113,7 +102,7 @@ protected static function booted(): void
/**
* The parent metadata.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo|\Services\Settings\Eloquent\Metadata
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function metadata(): BelongsTo
{
Expand All @@ -123,7 +112,7 @@ public function metadata(): BelongsTo
/**
* The user this settings belongs to.
*
* @return \Illuminate\Database\Eloquent\Relations\MorphTo|\Illuminate\Database\Eloquent\Builder
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
public function user(): MorphTo
{
Expand Down Expand Up @@ -261,4 +250,4 @@ public function invalidateCache(): void
);
}
}
}
}

0 comments on commit 4596ec1

Please sign in to comment.