Apply fixes from StyleCI

This commit is contained in:
Nabeel Shahzad
2018-08-26 16:40:04 +00:00
committed by StyleCI Bot
parent 20f46adbc4
commit 9596d88b48
407 changed files with 4032 additions and 3286 deletions

View File

@@ -11,7 +11,6 @@ use Prettus\Repository\Traits\CacheableRepository;
/**
* Class FlightRepository
* @package App\Repositories
*/
class FlightRepository extends Repository implements CacheableInterface
{
@@ -34,10 +33,12 @@ class FlightRepository extends Repository implements CacheableInterface
/**
* Find a flight based on the given criterea
*
* @param $airline_id
* @param $flight_num
* @param null $route_code
* @param null $route_leg
*
* @return mixed
*/
public function findFlight($airline_id, $flight_num, $route_code = null, $route_leg = null)
@@ -61,17 +62,20 @@ class FlightRepository extends Repository implements CacheableInterface
/**
* Create the search criteria and return this with the stuff pushed
*
* @param Request $request
* @param bool $only_active
* @return $this
*
* @throws \Prettus\Repository\Exceptions\RepositoryException
*
* @return $this
*/
public function searchCriteria(Request $request, bool $only_active = true)
{
$where = [];
if ($only_active === true) {
$where['active'] = $only_active;
$where['active'] = $only_active;
$where['visible'] = $only_active;
}