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 ( b72072...07471e )
by Oleg
02:26 queued 25s
created
src/Route4Me/Enum/ActivityTypes.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -3,34 +3,34 @@
 block discarded – undo
3 3
 
4 4
 class ActivityTypes
5 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';
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 30
 
31
-    static function getConstants() {
32
-        $atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes');
33
-        return $atc->getConstants();
34
-    }
31
+	static function getConstants() {
32
+		$atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes');
33
+		return $atc->getConstants();
34
+	}
35 35
 }
36 36
 
Please login to merge, or discard this patch.
src/Route4Me/Enum/TravelMode.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class TravelMode
5 5
 {
6
-    const DRIVING  = 'Driving';
7
-    const WALKING  = 'Walking';
8
-    const TRUCKING = 'Trucking';
9
-    const CYCLING  = 'Cycling';
10
-    const TRANSIT  = 'Transit';
6
+	const DRIVING  = 'Driving';
7
+	const WALKING  = 'Walking';
8
+	const TRUCKING = 'Trucking';
9
+	const CYCLING  = 'Cycling';
10
+	const TRANSIT  = 'Transit';
11 11
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/StatusUpdateType.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -3,26 +3,26 @@
 block discarded – undo
3 3
 
4 4
 class StatusUpdateType
5 5
 {
6
-    const PICKUP                         = 'pickup';
7
-    const DROPOFF                        = 'dropoff';
8
-    const NOANSWER                       = 'noanswer';
9
-    const NOTFOUND                       = 'notfound';
10
-    const NOTPAID                        = 'notpaid';
11
-    const PAID                           = 'paid';
12
-    const WRONGDELIVERY                  = 'wrongdelivery';
13
-    const WRONGADDRESSRECIPIENT          = 'wrongaddressrecipient';
14
-    const NOTPRESENT                     = 'notpresent';
15
-    const PARTS_MISSING                  = 'parts_missing';
16
-    const SERVICE_RENDERED               = 'service_rendered';
17
-    const FOLLOW_UP                      = 'follow_up';
18
-    const LEFT_INFORMATION               = 'left_information';
19
-    const SPOKE_WITH_DECISION_MAKER      = 'spoke_with_decision_maker';
20
-    const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer';
21
-    const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer';
22
-    const COMPETITIVE_ACCOUNT            = 'competitive_account';
23
-    const SCHEDULED_FOLLOW_UP_MEETING    = 'scheduled_follow_up_meeting';
24
-    const SCHEDULED_LUNCH                = 'scheduled_lunch';
25
-    const SCHEDULED_PRODUCT_DEMO         = 'scheduled_product_demo';
26
-    const SCHEDULED_CLINICAL_DEMO        = 'scheduled_clinical_demo';
27
-    const NO_OPPORTUNITY                 = 'no_opportunity';
6
+	const PICKUP                         = 'pickup';
7
+	const DROPOFF                        = 'dropoff';
8
+	const NOANSWER                       = 'noanswer';
9
+	const NOTFOUND                       = 'notfound';
10
+	const NOTPAID                        = 'notpaid';
11
+	const PAID                           = 'paid';
12
+	const WRONGDELIVERY                  = 'wrongdelivery';
13
+	const WRONGADDRESSRECIPIENT          = 'wrongaddressrecipient';
14
+	const NOTPRESENT                     = 'notpresent';
15
+	const PARTS_MISSING                  = 'parts_missing';
16
+	const SERVICE_RENDERED               = 'service_rendered';
17
+	const FOLLOW_UP                      = 'follow_up';
18
+	const LEFT_INFORMATION               = 'left_information';
19
+	const SPOKE_WITH_DECISION_MAKER      = 'spoke_with_decision_maker';
20
+	const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer';
21
+	const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer';
22
+	const COMPETITIVE_ACCOUNT            = 'competitive_account';
23
+	const SCHEDULED_FOLLOW_UP_MEETING    = 'scheduled_follow_up_meeting';
24
+	const SCHEDULED_LUNCH                = 'scheduled_lunch';
25
+	const SCHEDULED_PRODUCT_DEMO         = 'scheduled_product_demo';
26
+	const SCHEDULED_CLINICAL_DEMO        = 'scheduled_clinical_demo';
27
+	const NO_OPPORTUNITY                 = 'no_opportunity';
28 28
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/OptimizationType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 class OptimizationType
5 5
 {
6
-    const DISTANCE          = 'Distance';
7
-    const TIME              = 'Time';
8
-    const TIME_WITH_TRAFFIC = 'timeWithTraffic';
6
+	const DISTANCE          = 'Distance';
7
+	const TIME              = 'Time';
8
+	const TIME_WITH_TRAFFIC = 'timeWithTraffic';
9 9
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/OptimizationStates.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 
4 4
 class OptimizationStates
5 5
 {
6
-    const INITIAL              = 1;
7
-    const MATRIX_PROCESSING    = 2;
8
-    const OPTIMIZING           = 3;
9
-    const OPTIMIZED            = 4;
10
-    const ERROR                = 5;
11
-    const COMPUTING_DIRECTIONS = 6;
6
+	const INITIAL              = 1;
7
+	const MATRIX_PROCESSING    = 2;
8
+	const OPTIMIZING           = 3;
9
+	const OPTIMIZED            = 4;
10
+	const ERROR                = 5;
11
+	const COMPUTING_DIRECTIONS = 6;
12 12
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/TerritoryTypes.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 class TerritoryTypes
5 5
 {
6
-    const CIRCLE = 'circle';
7
-    const POLY   = 'poly';
8
-    const RECT   = 'rect';
6
+	const CIRCLE = 'circle';
7
+	const POLY   = 'poly';
8
+	const RECT   = 'rect';
9 9
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/Endpoint.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,18 +44,18 @@
 block discarded – undo
44 44
   const ORDER_V4 = '/api.v4/order.php';
45 45
   
46 46
   const ROUTE_V4 = '/api.v4/route.php';
47
-  const ROUTE_DUPLICATE ='/actions/duplicate_route.php';
48
-  const ROUTES_DELETE ='/actions/delete_routes.php';
49
-  const REOPTIMIZE_V3_2 ='/api.v3/route/reoptimize_2.php';
50
-  const ROUTES_MERGE ='/actions/merge_routes.php';
51
-  const ROUTE_SHARE ='/actions/route/share_route.php';
52
-  const ROUTE_NOTES_ADD ='/actions/addRouteNotes.php';
53
-  const STATUS_V4 ='/api.v4/status.php';
54
-  const GET_DEVICE_LOCATION ='/api/track/get_device_location.php';
55
-  
56
-  const TRACK_SET ='/track/set.php';
57
-  
58
-  const NOTE_CUSTOM_TYPES_V4 ='/api.v4/note_custom_types.php';
47
+  const ROUTE_DUPLICATE = '/actions/duplicate_route.php';
48
+  const ROUTES_DELETE = '/actions/delete_routes.php';
49
+  const REOPTIMIZE_V3_2 = '/api.v3/route/reoptimize_2.php';
50
+  const ROUTES_MERGE = '/actions/merge_routes.php';
51
+  const ROUTE_SHARE = '/actions/route/share_route.php';
52
+  const ROUTE_NOTES_ADD = '/actions/addRouteNotes.php';
53
+  const STATUS_V4 = '/api.v4/status.php';
54
+  const GET_DEVICE_LOCATION = '/api/track/get_device_location.php';
55
+  
56
+  const TRACK_SET = '/track/set.php';
57
+  
58
+  const NOTE_CUSTOM_TYPES_V4 = '/api.v4/note_custom_types.php';
59 59
   
60 60
   const VEHICLE_V4 = '/api/vehicles';
61 61
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/AlgorithmType.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 
4 4
 class AlgorithmType
5 5
 {
6
-    const TSP = 1;
7
-    const VRP = 2;
8
-    const CVRP_TW_SD = 3;
9
-    const CVRP_TW_MD = 4;
10
-    const TSP_TW = 5;
11
-    const TSP_TW_CR = 6;
12
-    const BBCVRP = 7;
13
-    const ALG_NONE  =  100;
14
-    const ALG_LEGACY_DISTRIBUTED = 101;
6
+	const TSP = 1;
7
+	const VRP = 2;
8
+	const CVRP_TW_SD = 3;
9
+	const CVRP_TW_MD = 4;
10
+	const TSP_TW = 5;
11
+	const TSP_TW_CR = 6;
12
+	const BBCVRP = 7;
13
+	const ALG_NONE  =  100;
14
+	const ALG_LEGACY_DISTRIBUTED = 101;
15 15
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
     const TSP_TW = 5;
11 11
     const TSP_TW_CR = 6;
12 12
     const BBCVRP = 7;
13
-    const ALG_NONE  =  100;
13
+    const ALG_NONE  = 100;
14 14
     const ALG_LEGACY_DISTRIBUTED = 101;
15 15
 }
Please login to merge, or discard this patch.
src/Route4Me/AvoidanceZone.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class AvoidanceZone extends Common
9 9
 {
10
-    public $territory_id;  // Avoidance zone id
10
+    public $territory_id; // Avoidance zone id
11 11
     public $territory_name; 
12 12
     public $territory_color;
13 13
     public $orders;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         
31 31
         $avoidanceZoneParameters = new AvoidanceZone();
32 32
         
33
-        foreach($params as $key => $value) {
33
+        foreach ($params as $key => $value) {
34 34
             if (property_exists($avoidanceZoneParameters, $key)) {
35 35
                 $avoidanceZoneParameters->{$key} = $value;
36 36
             }
Please login to merge, or discard this patch.
Indentation   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -7,111 +7,111 @@
 block discarded – undo
7 7
 
8 8
 class AvoidanceZone extends Common
9 9
 {
10
-    public $territory_id;  // Avoidance zone id
11
-    public $territory_name; 
12
-    public $territory_color;
13
-    public $orders;
14
-    public $member_id;
15
-    public $territory; // Territory parameters
10
+	public $territory_id;  // Avoidance zone id
11
+	public $territory_name; 
12
+	public $territory_color;
13
+	public $orders;
14
+	public $member_id;
15
+	public $territory; // Territory parameters
16 16
     
17
-    public static function fromArray(array $params) 
18
-    {
19
-        if (!isset($params['territory_name'])) {
20
-            throw new BadParam('Territory name must be provided');
21
-        }
17
+	public static function fromArray(array $params) 
18
+	{
19
+		if (!isset($params['territory_name'])) {
20
+			throw new BadParam('Territory name must be provided');
21
+		}
22 22
         
23
-        if (!isset($params['territory_color'])) {
24
-            throw new BadParam('Territory color must be provided');
25
-        }
23
+		if (!isset($params['territory_color'])) {
24
+			throw new BadParam('Territory color must be provided');
25
+		}
26 26
         
27
-        if (!isset($params['territory'])) {
28
-            throw new BadParam('Territory must be provided');
29
-        }
27
+		if (!isset($params['territory'])) {
28
+			throw new BadParam('Territory must be provided');
29
+		}
30 30
         
31
-        $avoidanceZoneParameters = new AvoidanceZone();
31
+		$avoidanceZoneParameters = new AvoidanceZone();
32 32
         
33
-        foreach($params as $key => $value) {
34
-            if (property_exists($avoidanceZoneParameters, $key)) {
35
-                $avoidanceZoneParameters->{$key} = $value;
36
-            }
37
-        }
33
+		foreach($params as $key => $value) {
34
+			if (property_exists($avoidanceZoneParameters, $key)) {
35
+				$avoidanceZoneParameters->{$key} = $value;
36
+			}
37
+		}
38 38
         
39
-        return $avoidanceZoneParameters;
40
-    }
39
+		return $avoidanceZoneParameters;
40
+	}
41 41
     
42
-    public static function getAvoidanceZone($territory_id)
43
-    {
44
-        $avoidanceZone = Route4Me::makeRequst(array(
45
-            'url'    => Endpoint::AVOIDANCE_ZONE,
46
-            'method' => 'GET',
47
-            'query'  => array(
48
-                'territory_id' => $territory_id
49
-            )
50
-        ));
42
+	public static function getAvoidanceZone($territory_id)
43
+	{
44
+		$avoidanceZone = Route4Me::makeRequst(array(
45
+			'url'    => Endpoint::AVOIDANCE_ZONE,
46
+			'method' => 'GET',
47
+			'query'  => array(
48
+				'territory_id' => $territory_id
49
+			)
50
+		));
51 51
 
52
-        return $avoidanceZone;
53
-    }
52
+		return $avoidanceZone;
53
+	}
54 54
     
55
-    public static function getAvoidanceZones($params)
56
-    {
57
-        $avoidanceZones = Route4Me::makeRequst(array(
58
-            'url'    => Endpoint::AVOIDANCE_ZONE,
59
-            'method' => 'GET',
60
-            'query'  => array(
61
-                'offset'  => isset($params->offset) ? $params->offset : null,
62
-                'limit'   => isset($params->limit) ? $params->limit : null,
63
-            )
64
-        ));
55
+	public static function getAvoidanceZones($params)
56
+	{
57
+		$avoidanceZones = Route4Me::makeRequst(array(
58
+			'url'    => Endpoint::AVOIDANCE_ZONE,
59
+			'method' => 'GET',
60
+			'query'  => array(
61
+				'offset'  => isset($params->offset) ? $params->offset : null,
62
+				'limit'   => isset($params->limit) ? $params->limit : null,
63
+			)
64
+		));
65 65
 
66
-        return $avoidanceZones;
67
-    }
66
+		return $avoidanceZones;
67
+	}
68 68
 
69
-    public static function addAvoidanceZone($params)
70
-    {
71
-        $terParams = array();
69
+	public static function addAvoidanceZone($params)
70
+	{
71
+		$terParams = array();
72 72
 
73
-        if (isset($params->territory['type'])) {
74
-            $terParams['type'] = $params->territory['type'];
75
-        }
73
+		if (isset($params->territory['type'])) {
74
+			$terParams['type'] = $params->territory['type'];
75
+		}
76 76
         
77
-        if (isset($params->territory['data'])) {
78
-            $terParams['data'] = $params->territory['data'];
79
-        }
77
+		if (isset($params->territory['data'])) {
78
+			$terParams['data'] = $params->territory['data'];
79
+		}
80 80
 
81
-        $abContacts = Route4Me::makeRequst(array(
82
-            'url'    => Endpoint::AVOIDANCE_ZONE,
83
-            'method' => 'POST',
84
-            'body'  => array(
85
-                'territory_name'  => isset($params->territory_name) ? $params->territory_name : null,
86
-                'territory_color' => isset($params->territory_color) ? $params->territory_color : null,
87
-                'territory'       => $terParams
88
-            )
89
-        ));
81
+		$abContacts = Route4Me::makeRequst(array(
82
+			'url'    => Endpoint::AVOIDANCE_ZONE,
83
+			'method' => 'POST',
84
+			'body'  => array(
85
+				'territory_name'  => isset($params->territory_name) ? $params->territory_name : null,
86
+				'territory_color' => isset($params->territory_color) ? $params->territory_color : null,
87
+				'territory'       => $terParams
88
+			)
89
+		));
90 90
 
91
-        return $abContacts;
92
-    }
91
+		return $abContacts;
92
+	}
93 93
     
94
-    public function deleteAvoidanceZone($territory_id)
95
-    {
96
-        $result = Route4Me::makeRequst(array(
97
-            'url'    => Endpoint::AVOIDANCE_ZONE,
98
-            'method' => 'DELETEARRAY',
99
-            'query'  => array(
100
-                'territory_id' => $territory_id
101
-            )
102
-        ));
94
+	public function deleteAvoidanceZone($territory_id)
95
+	{
96
+		$result = Route4Me::makeRequst(array(
97
+			'url'    => Endpoint::AVOIDANCE_ZONE,
98
+			'method' => 'DELETEARRAY',
99
+			'query'  => array(
100
+				'territory_id' => $territory_id
101
+			)
102
+		));
103 103
 
104
-        return $result;
105
-    }
104
+		return $result;
105
+	}
106 106
     
107
-    public function updateAvoidanceZone($params)
108
-    {
109
-        $avoidanceZone = Route4Me::makeRequst(array(
110
-            'url'    => Endpoint::AVOIDANCE_ZONE,
111
-            'method' => 'PUT',
112
-            'body'   => $params,
113
-        ));
107
+	public function updateAvoidanceZone($params)
108
+	{
109
+		$avoidanceZone = Route4Me::makeRequst(array(
110
+			'url'    => Endpoint::AVOIDANCE_ZONE,
111
+			'method' => 'PUT',
112
+			'body'   => $params,
113
+		));
114 114
 
115
-        return $avoidanceZone;
116
-    }
115
+		return $avoidanceZone;
116
+	}
117 117
 }
Please login to merge, or discard this patch.