MessageObserver   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 54
rs 10
c 1
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A created() 0 2 1
A updated() 0 2 1
A deleted() 0 2 1
A forceDeleted() 0 2 1
A restored() 0 2 1
1
<?php
2
3
namespace FaithGen\Messages\Observers;
4
5
use FaithGen\Messages\Models\Message;
6
7
class MessageObserver
8
{
9
    /**
10
     * Handle the message "created" event.
11
     *
12
     * @param Message $message
13
     * @return void
14
     */
15
    public function created(Message $message)
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function created(/** @scrutinizer ignore-unused */ Message $message)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        //
18
    }
19
20
    /**
21
     * Handle the message "updated" event.
22
     *
23
     * @param Message $message
24
     * @return void
25
     */
26
    public function updated(Message $message)
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

26
    public function updated(/** @scrutinizer ignore-unused */ Message $message)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
27
    {
28
        //
29
    }
30
31
    /**
32
     * Handle the message "deleted" event.
33
     *
34
     * @param Message $message
35
     * @return void
36
     */
37
    public function deleted(Message $message)
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

37
    public function deleted(/** @scrutinizer ignore-unused */ Message $message)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
38
    {
39
        //
40
    }
41
42
    /**
43
     * Handle the message "restored" event.
44
     *
45
     * @param Message $message
46
     * @return void
47
     */
48
    public function restored(Message $message)
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

48
    public function restored(/** @scrutinizer ignore-unused */ Message $message)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
49
    {
50
        //
51
    }
52
53
    /**
54
     * Handle the message "force deleted" event.
55
     *
56
     * @param Message $message
57
     * @return void
58
     */
59
    public function forceDeleted(Message $message)
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

59
    public function forceDeleted(/** @scrutinizer ignore-unused */ Message $message)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
60
    {
61
        //
62
    }
63
}
64