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,12 +2,16 @@
namespace App\Repositories;
use App\Interfaces\Repository;
use App\Models\Airport;
use Prettus\Repository\Contracts\CacheableInterface;
use Prettus\Repository\Traits\CacheableRepository;
class AirportRepository extends BaseRepository implements CacheableInterface
/**
* Class AirportRepository
* @package App\Repositories
*/
class AirportRepository extends Repository implements CacheableInterface
{
use CacheableRepository;
@@ -25,12 +29,12 @@ class AirportRepository extends BaseRepository implements CacheableInterface
* Return the list of airports formatted for a select box
* @return array
*/
public function selectBoxList($add_blank=false, $only_hubs=false): array
public function selectBoxList($add_blank = false, $only_hubs = false): array
{
$retval = [];
$where = [];
if($only_hubs) {
if ($only_hubs) {
$where['hub'] = 1;
}
@@ -41,7 +45,7 @@ class AirportRepository extends BaseRepository implements CacheableInterface
}
foreach ($items as $i) {
$retval[$i->icao] = $i->icao . ' - ' . $i->name;
$retval[$i->icao] = $i->icao.' - '.$i->name;
}
return $retval;