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.
Passed
Push — master ( ba89cf...799599 )
by Oleg
02:27
created

ActivityTypes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConstants() 0 4 1
1
<?php
2
namespace Route4Me\Enum;
3
4
class ActivityTypes
5
{
6
    const AREA_REMOVED              = 'area-removed';
7
    const AREA_ADDED                = 'area-added';
8
    const AREA_UPDATED              = 'area-updated';
9
    const DELETE_DESTINATION        = 'delete-destination';
10
    const INSERT_DESTINATION        = 'insert-destination';
11
    const DESTINATION_OUT_SEQUENCE  = 'destination-out-sequence';
12
    const DRIVER_ARRIVED_EARLY      = 'driver-arrived-early';
13
    const DRIVER_ARRIVED_LATE       = 'driver-arrived-late';
14
    const DRIVER_ARRIVED_ON_TIME    = 'driver-arrived-on-time';
15
    const GEOFENCE_LEFT             = 'geofence-left';
16
    const GEOFENCE_ENTERED          = 'geofence-entered';
17
    const MARK_DESTINATION_DEPARTED = 'mark-destination-departed';
18
    const MARK_DESTINATION_VISITED  = 'mark-destination-visited';
19
    const MEMBER_CREATED            = 'member-created';
20
    const MEMBER_DELETED            = 'member-deleted';
21
    const MEMBER_MODIFIED           = 'member-modified';
22
    const MOVE_DESTINATION          = 'move-destination';
23
    const NOTE_INSERT               = 'note-insert';
24
    const ROUTE_DELETE              = 'route-delete';
25
    const ROUTE_OPTIMIZED           = 'route-optimized';
26
    const ROUTE_OWNER_CHANGED       = 'route-owner-changed';
27
    const ROUTE_DUPLICATE           = 'route-duplicate';
28
    const UPDATE_DESTINATIONS       = 'update-destinations';
29
    const USER_MESSAGE              = 'user_message';
30
31
    static function getConstants() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
32
        $atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes');
33
        return $atc->getConstants();
34
    }
35
}
36
37