EntityEvent
last analyzed

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 17

2 Methods

Rating   Name   Duplication   Size   Complexity  
getEntities() 0 1 ?
supportsEvents() 0 1 ?
1
<?php
2
3
namespace Vivait\Voter\Model;
4
5
interface EntityEvent {
6
    /**
7
     * Provides the entities used in the event,
8
     * ready to be used by the inspection
9
     * @return array
10
     */
11
    public function getEntities();
12
13
//    public static function providesEntities();
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
14
15
    /**
16
     * Provides an associative array of event name => event label
17
     * for us when building an inspection
18
     * @return array
19
     */
20
    public static function supportsEvents();
21
}
22