Fix formatting and interfaces in nearly every file

This commit is contained in:
Nabeel Shahzad
2018-03-19 20:50:40 -05:00
parent 04c5b9e7bf
commit ccf56ddec1
331 changed files with 3282 additions and 2492 deletions

View File

@@ -2,15 +2,21 @@
namespace App\Repositories;
use App\Interfaces\Repository;
use App\Models\Acars;
use App\Models\Enums\AcarsType;
use App\Models\Enums\PirepState;
use App\Models\Pirep;
class AcarsRepository extends BaseRepository //implements CacheableInterface
/**
* Class AcarsRepository
* @package App\Repositories
*/
class AcarsRepository extends Repository
{
//use CacheableRepository;
/**
* @return string
*/
public function model()
{
return Acars::class;
@@ -25,10 +31,10 @@ class AcarsRepository extends BaseRepository //implements CacheableInterface
{
$where = [
'pirep_id' => $pirep_id,
'type' => $type,
'type' => $type,
];
switch($type) {
switch ($type) {
default:
case AcarsType::FLIGHT_PATH:
case AcarsType::LOG:
@@ -50,8 +56,8 @@ class AcarsRepository extends BaseRepository //implements CacheableInterface
public function getPositions()
{
return Pirep::with(['airline', 'position'])
->where(['state' => PirepState::IN_PROGRESS])
->get();
->where(['state' => PirepState::IN_PROGRESS])
->get();
}
/**