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.
Test Failed
Push — master ( 8e4cc8...6e1047 )
by Oleg
33s
created
src/Route4Me/Enum/OptimizationType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 class OptimizationType
6 6
 {
7
-    const DISTANCE = 'Distance';
8
-    const TIME = 'Time';
9
-    const TIME_WITH_TRAFFIC = 'timeWithTraffic';
7
+	const DISTANCE = 'Distance';
8
+	const TIME = 'Time';
9
+	const TIME_WITH_TRAFFIC = 'timeWithTraffic';
10 10
 }
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
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 class OptimizationStates
6 6
 {
7
-    const INITIAL = 1;
8
-    const MATRIX_PROCESSING = 2;
9
-    const OPTIMIZING = 3;
10
-    const OPTIMIZED = 4;
11
-    const ERROR = 5;
12
-    const COMPUTING_DIRECTIONS = 6;
7
+	const INITIAL = 1;
8
+	const MATRIX_PROCESSING = 2;
9
+	const OPTIMIZING = 3;
10
+	const OPTIMIZED = 4;
11
+	const ERROR = 5;
12
+	const COMPUTING_DIRECTIONS = 6;
13 13
 }
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
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 class Metric
6 6
 {
7
-    const EUCLIDEAN = 1;
8
-    const MANHATTAN = 2;
9
-    const GEODESIC = 3;
10
-    const MATRIX = 4;
11
-    const EXACT_2D = 5;
7
+	const EUCLIDEAN = 1;
8
+	const MANHATTAN = 2;
9
+	const GEODESIC = 3;
10
+	const MATRIX = 4;
11
+	const EXACT_2D = 5;
12 12
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/DistanceUnit.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 class DistanceUnit
6 6
 {
7
-    const MILES = 'mi';
8
-    const KILOMETERS = 'km';
7
+	const MILES = 'mi';
8
+	const KILOMETERS = 'km';
9 9
 }
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
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 class TerritoryTypes
6 6
 {
7
-    const CIRCLE = 'circle';
8
-    const POLY = 'poly';
9
-    const RECT = 'rect';
7
+	const CIRCLE = 'circle';
8
+	const POLY = 'poly';
9
+	const RECT = 'rect';
10 10
 }
11 11
 
12 12
 ?>
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/Enum/Format.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class Format
6 6
 {
7
-    const SERIALIZED = 'serialized';
8
-    const CSV = 'csv';
9
-    const XML = 'xml';
10
-    const JSON = 'json';
7
+	const SERIALIZED = 'serialized';
8
+	const CSV = 'csv';
9
+	const XML = 'xml';
10
+	const JSON = 'json';
11 11
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/TravelMode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 class TravelMode
6 6
 {
7
-    const DRIVING = 'Driving';
8
-    const WALKING = 'Walking';
9
-    const TRUCKING = 'Trucking';
7
+	const DRIVING = 'Driving';
8
+	const WALKING = 'Walking';
9
+	const TRUCKING = 'Trucking';
10 10
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/AlgorithmType.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 class AlgorithmType
6 6
 {
7
-    const TSP = 1;
8
-    const VRP = 2;
9
-    const CVRP_TW_SD = 3;
10
-    const CVRP_TW_MD = 4;
11
-    const TSP_TW = 5;
12
-    const TSP_TW_CR = 6;
13
-    const BBCVRP = 7;
7
+	const TSP = 1;
8
+	const VRP = 2;
9
+	const CVRP_TW_SD = 3;
10
+	const CVRP_TW_MD = 4;
11
+	const TSP_TW = 5;
12
+	const TSP_TW_CR = 6;
13
+	const BBCVRP = 7;
14 14
 }
Please login to merge, or discard this patch.
src/Route4Me/OptimizationProblemParams.php 2 patches
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -8,85 +8,85 @@
 block discarded – undo
8 8
 
9 9
 class OptimizationProblemParams extends Common
10 10
 {
11
-    public $optimization_problem_id;
12
-    public $reoptimize;
13
-    public $addresses = array();
14
-    public $parameters;
15
-    public $directions;
16
-    public $format;
17
-    public $route_path_output;
18
-    public $optimized_callback_url;
11
+	public $optimization_problem_id;
12
+	public $reoptimize;
13
+	public $addresses = array();
14
+	public $parameters;
15
+	public $directions;
16
+	public $format;
17
+	public $route_path_output;
18
+	public $optimized_callback_url;
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
-            }
41
-            $param->addAddress($address);
42
-        }
37
+		foreach($params['addresses'] as $address) {
38
+			if (!($address instanceof Address)) {
39
+				$address = Address::fromArray($address);
40
+			}
41
+			$param->addAddress($address);
42
+		}
43 43
 
44
-        $param->directions = self::getValue($params, 'directions');
45
-        $param->format = self::getValue($params, 'format');
46
-        $param->route_path_output = self::getValue($params, 'route_path_output');
47
-        $param->optimized_callback_url = self::getValue($params, 'optimized_callback_url');
48
-        $param->optimization_problem_id = self::getValue($params, 'optimization_problem_id');
49
-        $param->reoptimize = self::getValue($params, 'reoptimize');
44
+		$param->directions = self::getValue($params, 'directions');
45
+		$param->format = self::getValue($params, 'format');
46
+		$param->route_path_output = self::getValue($params, 'route_path_output');
47
+		$param->optimized_callback_url = self::getValue($params, 'optimized_callback_url');
48
+		$param->optimization_problem_id = self::getValue($params, 'optimization_problem_id');
49
+		$param->reoptimize = self::getValue($params, 'reoptimize');
50 50
 
51
-        return $param;
52
-    }
51
+		return $param;
52
+	}
53 53
 
54
-    public function __construct()
55
-    {
56
-        $this->parameters = new RouteParameters;
57
-    }
54
+	public function __construct()
55
+	{
56
+		$this->parameters = new RouteParameters;
57
+	}
58 58
 
59
-    public function setParameters(RouteParameters $params)
60
-    {
61
-        $this->parameters = $params;
62
-        return $this;
63
-    }
59
+	public function setParameters(RouteParameters $params)
60
+	{
61
+		$this->parameters = $params;
62
+		return $this;
63
+	}
64 64
 
65
-    public function addAddress(Address $address)
66
-    {
67
-        $this->addresses[] = $address;
68
-        return $this;
69
-    }
65
+	public function addAddress(Address $address)
66
+	{
67
+		$this->addresses[] = $address;
68
+		return $this;
69
+	}
70 70
     
71
-    public function getAddressesArray()
72
-    {
73
-        $addresses = array();
74
-        foreach($this->addresses as $address) {
75
-            $addresses[] = $address->toArray();
76
-        }
77
-        return $addresses;
78
-    }
71
+	public function getAddressesArray()
72
+	{
73
+		$addresses = array();
74
+		foreach($this->addresses as $address) {
75
+			$addresses[] = $address->toArray();
76
+		}
77
+		return $addresses;
78
+	}
79 79
 
80
-    public function getParametersArray()
81
-    {
82
-        return $this->parameters->toArray();
83
-    }
80
+	public function getParametersArray()
81
+	{
82
+		return $this->parameters->toArray();
83
+	}
84 84
 
85
-    public function setAddresses(array $addresses)
86
-    {
87
-        foreach ($addresses as $address) {
88
-            $this->addAddress($address);
89
-        }
90
-        return $this;
91
-    }
85
+	public function setAddresses(array $addresses)
86
+	{
87
+		foreach ($addresses as $address) {
88
+			$this->addAddress($address);
89
+		}
90
+		return $this;
91
+	}
92 92
 }
Please login to merge, or discard this patch.
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
             }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function getAddressesArray()
72 72
     {
73 73
         $addresses = array();
74
-        foreach($this->addresses as $address) {
74
+        foreach ($this->addresses as $address) {
75 75
             $addresses[] = $address->toArray();
76 76
         }
77 77
         return $addresses;
Please login to merge, or discard this patch.