Formatting fixes.
This commit is contained in:
parent
0437947c82
commit
86b9f3d2f0
7 changed files with 161 additions and 161 deletions
|
|
@ -42,8 +42,8 @@ class AccountForm extends Component
|
||||||
protected function rules()
|
protected function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'password_current' => [ 'required', 'password' ],
|
'password_current' => ['required', 'password'],
|
||||||
'password' => [ Password::min(8)->letters()->mixedCase()->numbers(), 'confirmed' ]
|
'password' => [Password::min(8)->letters()->mixedCase()->numbers(), 'confirmed']
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ abstract class ModelForm extends Component
|
||||||
/**
|
/**
|
||||||
* Get the name of the model
|
* Get the name of the model
|
||||||
*/
|
*/
|
||||||
public function getModelName() : string
|
public function getModelName(): string
|
||||||
{
|
{
|
||||||
return Str::afterLast(get_class($this->record), '\\');
|
return Str::afterLast(get_class($this->record), '\\');
|
||||||
}
|
}
|
||||||
|
|
@ -42,7 +42,7 @@ abstract class ModelForm extends Component
|
||||||
/**
|
/**
|
||||||
* Returns true if this record has not been stored in the database.
|
* Returns true if this record has not been stored in the database.
|
||||||
*/
|
*/
|
||||||
public function isNew() : bool
|
public function isNew(): bool
|
||||||
{
|
{
|
||||||
return !$this->exist;
|
return !$this->exist;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ abstract class GameComponent extends Component
|
||||||
/**
|
/**
|
||||||
* Get the game service object
|
* Get the game service object
|
||||||
*/
|
*/
|
||||||
public function getServiceProperty() : GameService
|
public function getServiceProperty(): GameService
|
||||||
{
|
{
|
||||||
return app()->make(GameService::class);
|
return app()->make(GameService::class);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue