Minor fixes, coding standards

This commit is contained in:
Ludovic CANDELLIER
2021-11-01 00:50:10 +01:00
parent 0d0e4deb16
commit e97f54f126
47 changed files with 133 additions and 114 deletions

View File

@@ -19,7 +19,7 @@ class Delivery extends Model
return $this->belongsTo(SaleChannel::class);
}
public function scopeActive($query)
public function scopeActive()
{
return $this->byActive(1);
}
@@ -39,19 +39,18 @@ class Delivery extends Model
return $query->where($this->table . '.at_house', 1);
}
public function scopeInactive($query)
public function scopeInactive()
{
return $this->byActive(0);
}
public function scopeManaged($query)
public function scopeManaged()
{
return $this->byPublic(0);
}
public function scopePublic($query)
public function scopePublic()
{
return $this->byPublic(1);
}
}