diff --git a/app/JsonApi/Adapters/FoodAdapter.php b/app/JsonApi/Adapters/FoodAdapter.php index af7e17a..c3973c0 100644 --- a/app/JsonApi/Adapters/FoodAdapter.php +++ b/app/JsonApi/Adapters/FoodAdapter.php @@ -52,10 +52,7 @@ class FoodAdapter extends AbstractAdapter }); } } - - /** - * Tag relationships. - */ + protected function tags(): HasMany { return $this->hasMany(); diff --git a/app/JsonApi/Adapters/IngredientAmountAdapter.php b/app/JsonApi/Adapters/IngredientAmountAdapter.php index ab9f2a9..5c4a8e0 100644 --- a/app/JsonApi/Adapters/IngredientAmountAdapter.php +++ b/app/JsonApi/Adapters/IngredientAmountAdapter.php @@ -42,9 +42,6 @@ class IngredientAmountAdapter extends AbstractAdapter $this->filterWithScopes($query, $filters); } - /** - * Ingredient relationship. - */ protected function ingredient(): BelongsTo { return $this->belongsTo(); diff --git a/app/JsonApi/Adapters/JournalEntryAdapter.php b/app/JsonApi/Adapters/JournalEntryAdapter.php index b049ee9..0dacde3 100644 --- a/app/JsonApi/Adapters/JournalEntryAdapter.php +++ b/app/JsonApi/Adapters/JournalEntryAdapter.php @@ -43,25 +43,16 @@ class JournalEntryAdapter extends AbstractAdapter $this->filterWithScopes($query, $filters); } - /** - * User relationship. - */ protected function user(): BelongsTo { return $this->belongsTo(); } - /** - * Food relationships. - */ protected function foods(): MorphHasMany { return $this->morphMany($this->hasMany('foods')); } - /** - * Recipe relationships. - */ protected function recipes(): MorphHasMany { return $this->morphMany($this->hasMany('recipes')); diff --git a/app/JsonApi/Adapters/RecipeAdapter.php b/app/JsonApi/Adapters/RecipeAdapter.php index abc4bb3..758312a 100644 --- a/app/JsonApi/Adapters/RecipeAdapter.php +++ b/app/JsonApi/Adapters/RecipeAdapter.php @@ -54,41 +54,26 @@ class RecipeAdapter extends AbstractAdapter } } - /** - * Ingredient amount relationships. - */ protected function ingredientAmounts(): MorphHasMany { return $this->morphMany($this->hasMany('ingredientAmounts')); } - /** - * Media relationships. - */ protected function media(): MorphHasMany { return $this->morphMany($this->hasMany('media')); } - /** - * Ingredient amount relationships. - */ protected function separators(): HasMany { return $this->hasMany(); } - /** - * Step relationships. - */ protected function steps(): HasMany { return $this->hasMany(); } - /** - * Tag relationships. - */ protected function tags(): HasMany { return $this->hasMany(); diff --git a/app/JsonApi/Adapters/RecipeSeparatorAdapter.php b/app/JsonApi/Adapters/RecipeSeparatorAdapter.php index 4da07c2..fff99e6 100644 --- a/app/JsonApi/Adapters/RecipeSeparatorAdapter.php +++ b/app/JsonApi/Adapters/RecipeSeparatorAdapter.php @@ -42,9 +42,6 @@ class RecipeSeparatorAdapter extends AbstractAdapter $this->filterWithScopes($query, $filters); } - /** - * Recipe relationship. - */ protected function recipe(): BelongsTo { return $this->belongsTo(); diff --git a/app/JsonApi/Adapters/RecipeStepAdapter.php b/app/JsonApi/Adapters/RecipeStepAdapter.php index 083b4d7..baedbf5 100644 --- a/app/JsonApi/Adapters/RecipeStepAdapter.php +++ b/app/JsonApi/Adapters/RecipeStepAdapter.php @@ -42,9 +42,6 @@ class RecipeStepAdapter extends AbstractAdapter $this->filterWithScopes($query, $filters); } - /** - * Recipe relationship. - */ protected function recipe(): BelongsTo { return $this->belongsTo();