Logout   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 3
c 3
b 0
f 0
dl 0
loc 6
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 2
1
<?php namespace GeneaLabs\LaravelMixpanel\Listeners;
2
3
use GeneaLabs\LaravelMixpanel\Events\MixpanelEvent as Mixpanel;
4
use Illuminate\Auth\Events\Logout as LogoutEvent;
5
6
class Logout
7
{
8
    public function handle(LogoutEvent $logout)
9
    {
10
        if (config("services.mixpanel.enable-default-tracking")) {
11
            event(new Mixpanel($logout->user, ['User Logged Out' => []]));
12
        }
13
    }
14
}
15