php-cs fixes
This commit is contained in:
parent
d57060dad9
commit
8c8de6ac62
8 changed files with 27 additions and 37 deletions
|
@ -15,7 +15,7 @@ class AdminRole extends Model
|
|||
* The resource name for this model when it is transformed into an
|
||||
* API representation using fractal.
|
||||
*/
|
||||
const RESOURCE_NAME = 'admin_role';
|
||||
public const RESOURCE_NAME = 'admin_role';
|
||||
|
||||
/**
|
||||
* The table associated with the model.
|
||||
|
@ -32,6 +32,7 @@ class AdminRole extends Model
|
|||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'sort_id',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -50,6 +51,7 @@ class AdminRole extends Model
|
|||
public static $validationRules = [
|
||||
'name' => 'required|string|max:64',
|
||||
'description' => 'nullable|string|max:255',
|
||||
'sort_id' => 'sometimes|numeric',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,7 +25,7 @@ use Pterodactyl\Notifications\SendPasswordReset as ResetPasswordNotification;
|
|||
* @property string|null $name_first
|
||||
* @property string|null $name_last
|
||||
* @property string $password
|
||||
* @property string|null $remeber_token
|
||||
* @property string|null $remember_token
|
||||
* @property string $language
|
||||
* @property bool $root_admin
|
||||
* @property bool $use_totp
|
||||
|
@ -156,7 +156,7 @@ class User extends Model implements
|
|||
{
|
||||
$rules = parent::getRules();
|
||||
|
||||
$rules['language'][] = new In(array_keys((new self())->getAvailableLanguages()));
|
||||
//$rules['language'][] = new In(array_keys((new self())->getAvailableLanguages()));
|
||||
$rules['username'][] = new Username();
|
||||
|
||||
return $rules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue