TeamMatchHandler   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 5 1
A subscribe() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: mschmidt
5
 * Date: 4/21/2017
6
 * Time: 4:31 PM
7
 */
8
9
namespace GolfLeague\Handlers;
10
11
12
class TeamMatchHandler
13
{
14
    /**
15
     * Create a new instance of the TeamMatchHandler
16
     *
17
     * @param
18
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
19
     */
20
    public function __construct()
21
    {
22
23
    } // End of __construct
24
25
    /**
26
     * Create an initial round for each player after a new match is created
27
     *
28
     * @param  Match $match
29
     * @return void
30
     */
31
    public function handle($match)
0 ignored issues
show
Unused Code introduced by
The parameter $match is not used and could be removed.

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

Loading history...
32
    {
33
34
35
    }
36
37
    /**
38
     * Register the listeners for the subscriber.
39
     *
40
     * @param  Illuminate\Events\Dispatcher $events
41
     * @return array
42
     */
43
    public function subscribe($events)
44
    {
45
        $events->listen('match.create', 'GolfLeague\Handlers\TeamMatchHandler');
46
    }
47
}