Completed
Push — main ( a1319e...942a97 )
by Tan
18s queued 14s
created

Member::sendEmailVerificationNotification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace CSlant\Blog\Core\Models;
4
5
use AllowDynamicProperties;
6
use Botble\Member\Notifications\ResetPasswordNotification;
0 ignored issues
show
Bug introduced by
The type Botble\Member\Notificati...setPasswordNotification was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use CSlant\Blog\Core\Models\Base\BaseMember;
8
use CSlant\Blog\UserCustom\Notifications\ConfirmEmailNotification;
0 ignored issues
show
Bug introduced by
The type CSlant\Blog\UserCustom\N...onfirmEmailNotification was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
/**
11
 * @package CSlant\Blog\Core\Models
12
 *
13
 * @property int $id
14
 * @property string $first_name
15
 * @property string $last_name
16
 * @property string $email
17
 * @property string $phone
18
 * @property string $dob
19
 * @property string $gender
20
 * @property string $description
21
 *
22
 * @mixin BaseMember
23
 */
24
#[AllowDynamicProperties]
25
class Member extends BaseMember
26
{
27
    public function sendPasswordResetNotification($token): void
28
    {
29
        $this->notify(new ResetPasswordNotification($token));
30
    }
31
32
    public function sendEmailVerificationNotification(): void
33
    {
34
        $this->notify(new ConfirmEmailNotification);
35
    }
36
}
37