Minor fixes, coding standards

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

View File

@@ -28,7 +28,7 @@ class PriceLists
public static function getOptions()
{
return PriceList::pluck('name','id')->toArray();
return PriceList::pluck('name', 'id')->toArray();
}
public static function getAll()
@@ -76,7 +76,7 @@ class PriceLists
return PriceList::create($data);
}
public static function update($data, $id = false)
public static function update($data, $id = false)
{
$id = $id ? $id : $data['id'];
$item = self::get($id);