mirror of https://github.com/kcal-app/kcal.git
Remove unnecessary docblocks
This commit is contained in:
parent
20d7516ff1
commit
152d9eb641
|
@ -52,10 +52,7 @@ class FoodAdapter extends AbstractAdapter
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tag relationships.
|
||||
*/
|
||||
|
||||
protected function tags(): HasMany
|
||||
{
|
||||
return $this->hasMany();
|
||||
|
|
|
@ -42,9 +42,6 @@ class IngredientAmountAdapter extends AbstractAdapter
|
|||
$this->filterWithScopes($query, $filters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ingredient relationship.
|
||||
*/
|
||||
protected function ingredient(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo();
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -42,9 +42,6 @@ class RecipeSeparatorAdapter extends AbstractAdapter
|
|||
$this->filterWithScopes($query, $filters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recipe relationship.
|
||||
*/
|
||||
protected function recipe(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo();
|
||||
|
|
|
@ -42,9 +42,6 @@ class RecipeStepAdapter extends AbstractAdapter
|
|||
$this->filterWithScopes($query, $filters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recipe relationship.
|
||||
*/
|
||||
protected function recipe(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo();
|
||||
|
|
Loading…
Reference in New Issue