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,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;