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

Member   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 4
c 2
b 0
f 1
dl 0
loc 11
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sendPasswordResetNotification() 0 3 1
A sendEmailVerificationNotification() 0 3 1
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