Archived
1
0
Fork 0

Formatting fixes.

This commit is contained in:
Henrik Hautakoski 2023-02-19 13:56:09 +01:00
parent 0437947c82
commit 86b9f3d2f0
7 changed files with 161 additions and 161 deletions

View file

@ -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']
]; ];
} }

View file

@ -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;
} }

View file

@ -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);
} }