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.
Completed
Push — master ( 73ee6d...a10a92 )
by Oleg
01:57
created
examples/Territories/GetTerritories.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
 $territory = new Territory();
14 14
 
15 15
 $queryparameters = array (
16
-    "offset" => 0,
17
-    "limit"  => 20
16
+	"offset" => 0,
17
+	"limit"  => 20
18 18
 );
19 19
 
20 20
 $response = $territory->getTerritories($queryparameters);
21 21
 
22 22
 foreach ($response as $terr1) {
23 23
 	Route4Me::simplePrint($terr1, true);
24
-    echo "<br>";
24
+	echo "<br>";
25 25
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 $territory = new Territory();
14 14
 
15
-$queryparameters = array (
15
+$queryparameters = array(
16 16
     "offset" => 0,
17 17
     "limit"  => 20
18 18
 );
Please login to merge, or discard this patch.
src/Route4Me/OptimizationProblemParams.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $param->setParameters(RouteParameters::fromArray($params['parameters']));
35 35
         }
36 36
 
37
-        foreach($params['addresses'] as $address) {
37
+        foreach ($params['addresses'] as $address) {
38 38
             if (!($address instanceof Address)) {
39 39
                 $address = Address::fromArray($address);
40 40
             }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $addresses = array();
79 79
         
80
-        foreach($this->addresses as $address) {
80
+        foreach ($this->addresses as $address) {
81 81
             $addresses[] = $address->toArray();
82 82
         }
83 83
         
Please login to merge, or discard this patch.
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -7,93 +7,93 @@
 block discarded – undo
7 7
 
8 8
 class OptimizationProblemParams extends Common
9 9
 {
10
-    public $optimization_problem_id;
11
-    public $reoptimize;
12
-    public $addresses = array();
13
-    public $parameters;
14
-    public $directions;
15
-    public $format;
16
-    public $route_path_output;
17
-    public $optimized_callback_url;
18
-    public $redirect = true;
10
+	public $optimization_problem_id;
11
+	public $reoptimize;
12
+	public $addresses = array();
13
+	public $parameters;
14
+	public $directions;
15
+	public $format;
16
+	public $route_path_output;
17
+	public $optimized_callback_url;
18
+	public $redirect = true;
19 19
 
20
-    public static function fromArray($params)
21
-    {
22
-        $param = new OptimizationProblemParams;
23
-        if (!isset($params['addresses'])) {
24
-            throw new BadParam('addresses must be provided.');
25
-        }
20
+	public static function fromArray($params)
21
+	{
22
+		$param = new OptimizationProblemParams;
23
+		if (!isset($params['addresses'])) {
24
+			throw new BadParam('addresses must be provided.');
25
+		}
26 26
 
27
-        if (!isset($params['parameters'])) {
28
-            throw new BadParam('parameters must be provided.');
29
-        }
27
+		if (!isset($params['parameters'])) {
28
+			throw new BadParam('parameters must be provided.');
29
+		}
30 30
 
31
-        if ($params['parameters'] instanceof RouteParameters) {
32
-            $param->setParameters($params['parameters']);
33
-        } else {
34
-            $param->setParameters(RouteParameters::fromArray($params['parameters']));
35
-        }
31
+		if ($params['parameters'] instanceof RouteParameters) {
32
+			$param->setParameters($params['parameters']);
33
+		} else {
34
+			$param->setParameters(RouteParameters::fromArray($params['parameters']));
35
+		}
36 36
 
37
-        foreach($params['addresses'] as $address) {
38
-            if (!($address instanceof Address)) {
39
-                $address = Address::fromArray($address);
40
-            }
37
+		foreach($params['addresses'] as $address) {
38
+			if (!($address instanceof Address)) {
39
+				$address = Address::fromArray($address);
40
+			}
41 41
             
42
-            $param->addAddress($address);
43
-        }
42
+			$param->addAddress($address);
43
+		}
44 44
 
45
-        $param->directions = self::getValue($params, 'directions');
46
-        $param->format = self::getValue($params, 'format');
47
-        $param->route_path_output = self::getValue($params, 'route_path_output');
48
-        $param->optimized_callback_url = self::getValue($params, 'optimized_callback_url');
49
-        $param->optimization_problem_id = self::getValue($params, 'optimization_problem_id');
50
-        $param->reoptimize = self::getValue($params, 'reoptimize');
51
-        $param->redirect = filter_var(self::getValue($params, 'redirect', true), FILTER_VALIDATE_BOOLEAN);
45
+		$param->directions = self::getValue($params, 'directions');
46
+		$param->format = self::getValue($params, 'format');
47
+		$param->route_path_output = self::getValue($params, 'route_path_output');
48
+		$param->optimized_callback_url = self::getValue($params, 'optimized_callback_url');
49
+		$param->optimization_problem_id = self::getValue($params, 'optimization_problem_id');
50
+		$param->reoptimize = self::getValue($params, 'reoptimize');
51
+		$param->redirect = filter_var(self::getValue($params, 'redirect', true), FILTER_VALIDATE_BOOLEAN);
52 52
 
53
-        return $param;
54
-    }
53
+		return $param;
54
+	}
55 55
 
56
-    public function __construct()
57
-    {
58
-        $this->parameters = new RouteParameters;
59
-    }
56
+	public function __construct()
57
+	{
58
+		$this->parameters = new RouteParameters;
59
+	}
60 60
 
61
-    public function setParameters(RouteParameters $params)
62
-    {
63
-        $this->parameters = $params;
61
+	public function setParameters(RouteParameters $params)
62
+	{
63
+		$this->parameters = $params;
64 64
         
65
-        return $this;
66
-    }
65
+		return $this;
66
+	}
67 67
 
68
-    public function addAddress(Address $address)
69
-    {
70
-        $this->addresses[] = $address;
68
+	public function addAddress(Address $address)
69
+	{
70
+		$this->addresses[] = $address;
71 71
         
72
-        return $this;
73
-    }
72
+		return $this;
73
+	}
74 74
     
75
-    public function getAddressesArray()
76
-    {
77
-        $addresses = array();
75
+	public function getAddressesArray()
76
+	{
77
+		$addresses = array();
78 78
         
79
-        foreach($this->addresses as $address) {
80
-            $addresses[] = $address->toArray();
81
-        }
79
+		foreach($this->addresses as $address) {
80
+			$addresses[] = $address->toArray();
81
+		}
82 82
         
83
-        return $addresses;
84
-    }
83
+		return $addresses;
84
+	}
85 85
 
86
-    public function getParametersArray()
87
-    {
88
-        return $this->parameters->toArray();
89
-    }
86
+	public function getParametersArray()
87
+	{
88
+		return $this->parameters->toArray();
89
+	}
90 90
 
91
-    public function setAddresses(array $addresses)
92
-    {
93
-        foreach ($addresses as $address) {
94
-            $this->addAddress($address);
95
-        }
91
+	public function setAddresses(array $addresses)
92
+	{
93
+		foreach ($addresses as $address) {
94
+			$this->addAddress($address);
95
+		}
96 96
         
97
-        return $this;
98
-    }
97
+		return $this;
98
+	}
99 99
 }
Please login to merge, or discard this patch.
src/Route4Me/Exception/myErrorHandler.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class myErrorHandler extends \Exception
5 5
 {
6
-    public function proc_error($errno, $errstr, $errfile, $errline) 
7
-    {
8
-        echo "line: $errline --- ".$errstr."<br>";
6
+	public function proc_error($errno, $errstr, $errfile, $errline) 
7
+	{
8
+		echo "line: $errline --- ".$errstr."<br>";
9 9
     
10
-    }
10
+	}
11 11
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/Metric.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 Metric
5 5
 {
6
-    const EUCLIDEAN = 1; //measures point to point distance as a straight line
7
-    const MANHATTAN = 2; //measures point to point distance as taxicab geometry line
8
-    const GEODESIC  = 3; //measures point to point distance approximating curvature of the earth
9
-    const MATRIX    = 4; //measures point to point distance by traversing the actual road network
10
-    const EXACT_2D  = 5; //measures point to point distance using 2d rectilinear distance
6
+	const EUCLIDEAN = 1; //measures point to point distance as a straight line
7
+	const MANHATTAN = 2; //measures point to point distance as taxicab geometry line
8
+	const GEODESIC  = 3; //measures point to point distance approximating curvature of the earth
9
+	const MATRIX    = 4; //measures point to point distance by traversing the actual road network
10
+	const EXACT_2D  = 5; //measures point to point distance using 2d rectilinear distance
11 11
 }
Please login to merge, or discard this patch.
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.