• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / user / 13877073151

12 Mar 2025 06:59AM UTC coverage: 12.738%. Remained the same
13877073151

push

github

twinh
ci: upgrade actions/cache from v1 to v4

20 of 80 branches covered (25.0%)

107 of 840 relevant lines covered (12.74%)

1.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Job/UserCreate.php
1
<?php
2

3
namespace Miaoxing\User\Job;
4

5
use Miaoxing\Plugin\Queue\BaseJob;
6
use Miaoxing\User\Service\UserModel;
7
use Wei\Event;
8

9
class UserCreate extends BaseJob
10
{
11
    protected $id;
12

13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function __construct(string $id)
17
    {
18
        $this->id = $id;
×
19
        parent::__construct();
×
20
    }
21

22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function __invoke(): void
26
    {
27
        $user = UserModel::findOneById($this->id);
×
28

29
        Event::trigger('asyncUserCreate', [$user]);
×
30
    }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc