GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

BaseRepositoryEventsTrait   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 42
rs 10
c 0
b 0
f 0
wmc 10
lcom 0
cbo 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A onCreating() 0 3 1
A onCreated() 0 3 1
A onUpdating() 0 3 1
A onUpdated() 0 3 1
A onSaving() 0 3 1
A onSaved() 0 3 1
A onDeleting() 0 3 1
A onDeleted() 0 3 1
A onRestoring() 0 3 1
A onRestored() 0 3 1
1
<?php
2
3
namespace Milkmeowo\Framework\Base\Traits;
4
5
/**
6
 * Whenever a new model is saved for the first time,
7
 * the creating and created events will fire.
8
 * If a model already existed in the database and the save method is called,
9
 * the updating / updated events will fire.
10
 * However, in both cases, the saving / saved events will fire.
11
 *
12
 * @CREATE: saving > creating > created > saved
13
 * @UPDATE: saving > updating > updated > saved
14
 * @DELETE: deleting > deleted
15
 * @RESTORE: restoring > restored
16
 */
17
trait BaseRepositoryEventsTrait
18
{
19
    public function onCreating()
20
    {
21
    }
22
23
    public function onCreated()
24
    {
25
    }
26
27
    public function onUpdating()
28
    {
29
    }
30
31
    public function onUpdated()
32
    {
33
    }
34
35
    public function onSaving()
36
    {
37
    }
38
39
    public function onSaved()
40
    {
41
    }
42
43
    public function onDeleting()
44
    {
45
    }
46
47
    public function onDeleted()
48
    {
49
    }
50
51
    public function onRestoring()
52
    {
53
    }
54
55
    public function onRestored()
56
    {
57
    }
58
}
59