Lint
This commit is contained in:
parent
5632ed60e2
commit
09e8ab1bcc
|
@ -7,9 +7,7 @@ use Zoomyboy\LaravelNami\NamiUser;
|
||||||
|
|
||||||
class Initializer {
|
class Initializer {
|
||||||
|
|
||||||
public $user;
|
public static array $initializers = [
|
||||||
|
|
||||||
public static $initializers = [
|
|
||||||
InitializeNationalities::class,
|
InitializeNationalities::class,
|
||||||
InitializeFees::class,
|
InitializeFees::class,
|
||||||
InitializeConfessions::class,
|
InitializeConfessions::class,
|
||||||
|
@ -21,7 +19,7 @@ class Initializer {
|
||||||
InitializeMembers::class,
|
InitializeMembers::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function run(NamiUser $namiUser) {
|
public function run(NamiUser $namiUser): void {
|
||||||
foreach (static::$initializers as $initializer) {
|
foreach (static::$initializers as $initializer) {
|
||||||
(new $initializer($namiUser->api()))->handle($namiUser);
|
(new $initializer($namiUser->api()))->handle($namiUser);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,16 +12,17 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Zoomyboy\LaravelNami\Nami;
|
use Zoomyboy\LaravelNami\Nami;
|
||||||
|
use Zoomyboy\LaravelNami\NamiUser;
|
||||||
|
|
||||||
class CreateJob implements ShouldQueue
|
class CreateJob implements ShouldQueue
|
||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
public $memberId;
|
public int $memberId;
|
||||||
public $member;
|
public Member $member;
|
||||||
public $user;
|
public NamiUser $user;
|
||||||
|
|
||||||
public function __construct(Member $member, $user)
|
public function __construct(Member $member, NamiUser $user)
|
||||||
{
|
{
|
||||||
$this->memberId = $member->id;
|
$this->memberId = $member->id;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
|
|
|
@ -9,16 +9,17 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Zoomyboy\LaravelNami\Nami;
|
use Zoomyboy\LaravelNami\Nami;
|
||||||
|
use Zoomyboy\LaravelNami\NamiUser;
|
||||||
|
|
||||||
class DeleteJob implements ShouldQueue
|
class DeleteJob implements ShouldQueue
|
||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
public $memberId;
|
public int $memberId;
|
||||||
public $member;
|
public Member $member;
|
||||||
public $user;
|
public NamiUser $user;
|
||||||
|
|
||||||
public function __construct(Member $member, $user)
|
public function __construct(Member $member, NamiUser $user)
|
||||||
{
|
{
|
||||||
$this->memberId = $member->id;
|
$this->memberId = $member->id;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
|
|
Loading…
Reference in New Issue