Completed
Push — master ( d3bf4c...1c1e14 )
by Shawn
03:40
created

ResolveLdap::ldapUserSearch()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 9
nc 2
nop 0
1
<?php
2
3
namespace SET\Listeners;
4
5
use Illuminate\Contracts\Queue\ShouldQueue;
6
use Illuminate\Support\Facades\Artisan;
7
8
class ResolveLdap implements ShouldQueue
9
{
10
11
    /**
12
     * Build the event handler.
13
     */
14
    public function __construct()
15
    {
16
        //
17
    }
18
19
    /**
20
     * Call to add missing users.
21
     */
22
    public function handle()
23
    {
24
        if (config('auth.providers.users.driver') == 'adldap') {
25
            Artisan::call('adldap:import');
26
        }
27
    }
28
}
29