Fix formatting and interfaces in nearly every file
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
|
||||
/**
|
||||
* The Award model
|
||||
* @property mixed id
|
||||
* @property mixed ref_class
|
||||
* @property mixed id
|
||||
* @property mixed ref_class
|
||||
* @property mixed|null ref_class_params
|
||||
* @package Award\Models
|
||||
*/
|
||||
class Award extends BaseModel
|
||||
class Award extends Model
|
||||
{
|
||||
public $table = 'awards';
|
||||
|
||||
@@ -22,21 +24,20 @@ class Award extends BaseModel
|
||||
];
|
||||
|
||||
public static $rules = [
|
||||
'name' => 'required',
|
||||
'description' => 'nullable',
|
||||
'image_url' => 'nullable',
|
||||
|
||||
'ref_class' => 'required',
|
||||
'name' => 'required',
|
||||
'description' => 'nullable',
|
||||
'image_url' => 'nullable',
|
||||
'ref_class' => 'required',
|
||||
'ref_class_params' => 'nullable'
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the referring object
|
||||
* @param Award|null $award
|
||||
* @param User|null $user
|
||||
* @param User|null $user
|
||||
* @return null
|
||||
*/
|
||||
public function getReference(Award $award=null, User $user=null)
|
||||
public function getReference(Award $award = null, User $user = null)
|
||||
{
|
||||
if (!$this->ref_class) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user