Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
20f46adbc4
commit
9596d88b48
@@ -10,7 +10,6 @@ use Prettus\Repository\Traits\CacheableRepository;
|
||||
|
||||
/**
|
||||
* Class ExpenseRepository
|
||||
* @package App\Repositories
|
||||
*/
|
||||
class ExpenseRepository extends Repository implements CacheableInterface
|
||||
{
|
||||
@@ -24,16 +23,18 @@ class ExpenseRepository extends Repository implements CacheableInterface
|
||||
/**
|
||||
* Get all of the expenses for a given type, and also
|
||||
* include expenses for a given airline ID
|
||||
*
|
||||
* @param $type
|
||||
* @param null $airline_id
|
||||
* @param null $ref_model
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getAllForType($type, $airline_id = null, $ref_model = null)
|
||||
{
|
||||
$where = [
|
||||
'type' => $type,
|
||||
['airline_id', '=', null]
|
||||
['airline_id', '=', null],
|
||||
];
|
||||
|
||||
if ($ref_model) {
|
||||
@@ -53,7 +54,7 @@ class ExpenseRepository extends Repository implements CacheableInterface
|
||||
if ($airline_id) {
|
||||
$where = [
|
||||
'type' => $type,
|
||||
'airline_id' => $airline_id
|
||||
'airline_id' => $airline_id,
|
||||
];
|
||||
|
||||
if ($ref_model) {
|
||||
|
||||
Reference in New Issue
Block a user