mirror of https://github.com/kcal-app/kcal.git
Remove unnecessary docblocks
This commit is contained in:
parent
20d7516ff1
commit
152d9eb641
|
@ -53,9 +53,6 @@ class FoodAdapter extends AbstractAdapter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Tag relationships.
|
|
||||||
*/
|
|
||||||
protected function tags(): HasMany
|
protected function tags(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany();
|
return $this->hasMany();
|
||||||
|
|
|
@ -42,9 +42,6 @@ class IngredientAmountAdapter extends AbstractAdapter
|
||||||
$this->filterWithScopes($query, $filters);
|
$this->filterWithScopes($query, $filters);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Ingredient relationship.
|
|
||||||
*/
|
|
||||||
protected function ingredient(): BelongsTo
|
protected function ingredient(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo();
|
return $this->belongsTo();
|
||||||
|
|
|
@ -43,25 +43,16 @@ class JournalEntryAdapter extends AbstractAdapter
|
||||||
$this->filterWithScopes($query, $filters);
|
$this->filterWithScopes($query, $filters);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* User relationship.
|
|
||||||
*/
|
|
||||||
protected function user(): BelongsTo
|
protected function user(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo();
|
return $this->belongsTo();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Food relationships.
|
|
||||||
*/
|
|
||||||
protected function foods(): MorphHasMany
|
protected function foods(): MorphHasMany
|
||||||
{
|
{
|
||||||
return $this->morphMany($this->hasMany('foods'));
|
return $this->morphMany($this->hasMany('foods'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Recipe relationships.
|
|
||||||
*/
|
|
||||||
protected function recipes(): MorphHasMany
|
protected function recipes(): MorphHasMany
|
||||||
{
|
{
|
||||||
return $this->morphMany($this->hasMany('recipes'));
|
return $this->morphMany($this->hasMany('recipes'));
|
||||||
|
|
|
@ -54,41 +54,26 @@ class RecipeAdapter extends AbstractAdapter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Ingredient amount relationships.
|
|
||||||
*/
|
|
||||||
protected function ingredientAmounts(): MorphHasMany
|
protected function ingredientAmounts(): MorphHasMany
|
||||||
{
|
{
|
||||||
return $this->morphMany($this->hasMany('ingredientAmounts'));
|
return $this->morphMany($this->hasMany('ingredientAmounts'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Media relationships.
|
|
||||||
*/
|
|
||||||
protected function media(): MorphHasMany
|
protected function media(): MorphHasMany
|
||||||
{
|
{
|
||||||
return $this->morphMany($this->hasMany('media'));
|
return $this->morphMany($this->hasMany('media'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Ingredient amount relationships.
|
|
||||||
*/
|
|
||||||
protected function separators(): HasMany
|
protected function separators(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany();
|
return $this->hasMany();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Step relationships.
|
|
||||||
*/
|
|
||||||
protected function steps(): HasMany
|
protected function steps(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany();
|
return $this->hasMany();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Tag relationships.
|
|
||||||
*/
|
|
||||||
protected function tags(): HasMany
|
protected function tags(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany();
|
return $this->hasMany();
|
||||||
|
|
|
@ -42,9 +42,6 @@ class RecipeSeparatorAdapter extends AbstractAdapter
|
||||||
$this->filterWithScopes($query, $filters);
|
$this->filterWithScopes($query, $filters);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Recipe relationship.
|
|
||||||
*/
|
|
||||||
protected function recipe(): BelongsTo
|
protected function recipe(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo();
|
return $this->belongsTo();
|
||||||
|
|
|
@ -42,9 +42,6 @@ class RecipeStepAdapter extends AbstractAdapter
|
||||||
$this->filterWithScopes($query, $filters);
|
$this->filterWithScopes($query, $filters);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Recipe relationship.
|
|
||||||
*/
|
|
||||||
protected function recipe(): BelongsTo
|
protected function recipe(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo();
|
return $this->belongsTo();
|
||||||
|
|
Loading…
Reference in New Issue