Fix formatting and interfaces in nearly every file
This commit is contained in:
@@ -2,16 +2,21 @@
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Interfaces\Repository;
|
||||
use App\Models\Aircraft;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
use Prettus\Repository\Traits\CacheableRepository;
|
||||
|
||||
class AircraftRepository extends BaseRepository implements CacheableInterface
|
||||
/**
|
||||
* Class AircraftRepository
|
||||
* @package App\Repositories
|
||||
*/
|
||||
class AircraftRepository extends Repository implements CacheableInterface
|
||||
{
|
||||
use CacheableRepository;
|
||||
|
||||
protected $fieldSearchable = [
|
||||
'name' => 'like',
|
||||
'name' => 'like',
|
||||
'registration' => 'like',
|
||||
'active',
|
||||
];
|
||||
@@ -31,7 +36,7 @@ class AircraftRepository extends BaseRepository implements CacheableInterface
|
||||
$items = $this->all();
|
||||
|
||||
foreach ($items as $i) {
|
||||
$retval[$i->id] = $i->subfleet->name . ' - ' . $i->name . ' (' . $i->registration . ')';
|
||||
$retval[$i->id] = $i->subfleet->name.' - '.$i->name.' ('.$i->registration.')';
|
||||
}
|
||||
|
||||
return $retval;
|
||||
|
||||
Reference in New Issue
Block a user