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 ( 55318a...b54c2e )
by Oleg
02:27
created
examples/Routes/GetRoutePathPoints.php 3 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@
 block discarded – undo
32 32
     foreach ($routeResults['addresses'] as $key => $address) {
33 33
         $araddress = (array)$address;
34 34
 
35
-        if (isset($araddress['route_destination_id'])) echo "route_destination_id=".$araddress['route_destination_id']."<br>";
35
+        if (isset($araddress['route_destination_id'])) {
36
+        	echo "route_destination_id=".$araddress['route_destination_id']."<br>";
37
+        }
36 38
         
37 39
         if (isset($araddress['path_to_next'])) {
38 40
             echo "path_to_next:<br>";
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,23 +23,23 @@
 block discarded – undo
23 23
 
24 24
 // Get a route with the path points
25 25
 $params = array(
26
-    "route_path_output" => "Points",
27
-    "route_id"   => $route_id
26
+	"route_path_output" => "Points",
27
+	"route_id"   => $route_id
28 28
 );
29 29
 
30 30
 $routeResults = (array)$route->getRoutePoints($params);
31 31
 
32 32
 if (isset($routeResults['addresses'])) {
33
-    foreach ($routeResults['addresses'] as $key => $address) {
34
-        $araddress = (array)$address;
33
+	foreach ($routeResults['addresses'] as $key => $address) {
34
+		$araddress = (array)$address;
35 35
 
36
-        if (isset($araddress['route_destination_id'])) echo "route_destination_id=".$araddress['route_destination_id']."<br>";
36
+		if (isset($araddress['route_destination_id'])) echo "route_destination_id=".$araddress['route_destination_id']."<br>";
37 37
         
38
-        if (isset($araddress['path_to_next'])) {
39
-            echo "path_to_next:<br>";
40
-            Route4Me::simplePrint($araddress['path_to_next']);
41
-        }
38
+		if (isset($araddress['path_to_next'])) {
39
+			echo "path_to_next:<br>";
40
+			Route4Me::simplePrint($araddress['path_to_next']);
41
+		}
42 42
         
43
-        echo "<br>";
44
-    }
43
+		echo "<br>";
44
+	}
45 45
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
Please login to merge, or discard this patch.
examples/Routes/SearchRoute.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 // The example refers to the process of searching for the specified text throughout all routes, belonging to the user's account.
14 14
 
15 15
 $RouteParameters = array(
16
-    "query"   => 'Automated'
16
+	"query"   => 'Automated'
17 17
 );
18 18
 
19 19
 $route = new Route();
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
 foreach ($routeResults as $routeResult)
24 24
 {
25
-    $results = (array)$routeResult;
25
+	$results = (array)$routeResult;
26 26
     
27
-    if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
27
+	if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
28 28
     
29
-    if (isset($results['parameters']->route_name)) echo "Route name - > " . $results['parameters']->route_name . "<br>";
29
+	if (isset($results['parameters']->route_name)) echo "Route name - > " . $results['parameters']->route_name . "<br>";
30 30
 
31
-    echo "<br>";
31
+	echo "<br>";
32 32
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,13 @@
 block discarded – undo
24 24
 {
25 25
     $results = (array)$routeResult;
26 26
     
27
-    if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
27
+    if (isset($results['route_id'])) {
28
+    	echo "Route ID - > " . $results['route_id'] . "<br>";
29
+    }
28 30
     
29
-    if (isset($results['parameters']->route_name)) echo "Route name - > " . $results['parameters']->route_name . "<br>";
31
+    if (isset($results['parameters']->route_name)) {
32
+    	echo "Route name - > " . $results['parameters']->route_name . "<br>";
33
+    }
30 34
 
31 35
     echo "<br>";
32 36
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 {
25 25
     $results = (array)$routeResult;
26 26
     
27
-    if (isset($results['route_id'])) echo "Route ID - > " . $results['route_id'] . "<br>";
27
+    if (isset($results['route_id'])) echo "Route ID - > ".$results['route_id']."<br>";
28 28
     
29
-    if (isset($results['parameters']->route_name)) echo "Route name - > " . $results['parameters']->route_name . "<br>";
29
+    if (isset($results['parameters']->route_name)) echo "Route name - > ".$results['parameters']->route_name."<br>";
30 30
 
31 31
     echo "<br>";
32 32
 }
Please login to merge, or discard this patch.
examples/Routes/ShareRoute.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
 
22 22
 // Share a route with an email
23 23
 $params = array(
24
-    "route_id"         => $route_id,
25
-    "response_format"  => "json",
26
-    "recipient_email"  => "[email protected]"
24
+	"route_id"         => $route_id,
25
+	"response_format"  => "json",
26
+	"recipient_email"  => "[email protected]"
27 27
 );
28 28
 
29 29
 $result = $route->shareRoute($params);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 // Set the api key in the Route4Me class
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16
-$route=new Route();
16
+$route = new Route();
17 17
 
18 18
 // Get a random route ID
19 19
 $route_id = $route->getRandomRouteId(0, 10);
Please login to merge, or discard this patch.
examples/Routes/UpdateRouteParameters.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
 $route->parameters = new \stdClass();
31 31
 
32 32
 $route->parameters = array(
33
-    "member_id"           => $randomRoute->member_id,
34
-    "optimize"            => "Distance",
35
-    "route_max_duration"  => "82400",
36
-    "route_name"          => "updated " . date('m-d-Y')
33
+	"member_id"           => $randomRoute->member_id,
34
+	"optimize"            => "Distance",
35
+	"route_max_duration"  => "82400",
36
+	"route_name"          => "updated " . date('m-d-Y')
37 37
 );
38 38
 
39 39
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     "member_id"           => $randomRoute->member_id,
34 34
     "optimize"            => "Distance",
35 35
     "route_max_duration"  => "82400",
36
-    "route_name"          => "updated " . date('m-d-Y')
36
+    "route_name"          => "updated ".date('m-d-Y')
37 37
 );
38 38
 
39 39
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
examples/Territories/GetTerritoryWithAddresses.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 
18 18
 // Select a terriotry with the addresses from the list
19 19
 $params = array(
20
-    "offset"    => 0,
21
-    "limit"     => 50,
22
-    "addresses" => 1
20
+	"offset"    => 0,
21
+	"limit"     => 50,
22
+	"addresses" => 1
23 23
 );
24 24
 
25 25
 $results = $territory->getTerritories($params);
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
 $territory1 = null;
29 29
 
30 30
 foreach ($results as $terr) {
31
-    if (isset($terr['addresses'])) {
32
-        if (sizeof($terr['addresses'])>0) {
33
-            $territory1 = $terr;
34
-            break;
35
-        }
36
-    }	
31
+	if (isset($terr['addresses'])) {
32
+		if (sizeof($terr['addresses'])>0) {
33
+			$territory1 = $terr;
34
+			break;
35
+		}
36
+	}	
37 37
 }
38 38
 
39 39
 assert(isset($territory1['territory_id']), "Can't retrieve a random territory ID");
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 
44 44
 // Get a territory with the addresses
45 45
 $params = array(
46
-    "territory_id" => $territory_id,
47
-    "addresses"    => 1
46
+	"territory_id" => $territory_id,
47
+	"addresses"    => 1
48 48
 );
49 49
 
50 50
 $result1 = $territory->getTerritory($params);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 // Set the api key in the Route4Me class
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16
-$territory=new Territory();
16
+$territory = new Territory();
17 17
 
18 18
 // Select a terriotry with the addresses from the list
19 19
 $params = array(
Please login to merge, or discard this patch.
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -12,7 +12,7 @@  discard block
 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.
examples/multiple_depot_with_time_window.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -26,23 +26,23 @@  discard block
 block discarded – undo
26 26
 
27 27
 $addresses = array();
28 28
 foreach($json as $address) {
29
-    $addresses[] = Address::fromArray($address);
29
+	$addresses[] = Address::fromArray($address);
30 30
 }
31 31
 
32 32
 $parameters = RouteParameters::fromArray(array(
33
-    "algorithm_type"          => Algorithmtype::CVRP_TW_SD,
34
-    "route_name"              => "Multiple Depot, Multiple Driver, Time Window",
35
-    "route_date"              => time() + 24*60*60,
36
-    "route_time"              => 60 * 60 * 7,
37
-    "rt"                      => TRUE,
38
-    "distance_unit"           => DistanceUnit::MILES,
39
-    "device_type"             => DeviceType::WEB,
40
-    "optimize"                => OptimizationType::TIME,
41
-    "metric"                  => Metric::GEODESIC,
42
-    "route_max_duration"      => 86400 * 3,
43
-    "travel_mode"             => TravelMode::DRIVING,
44
-    "vehicle_capacity"        => 99,
45
-    "vehicle_max_distance_mi" => 99999
33
+	"algorithm_type"          => Algorithmtype::CVRP_TW_SD,
34
+	"route_name"              => "Multiple Depot, Multiple Driver, Time Window",
35
+	"route_date"              => time() + 24*60*60,
36
+	"route_time"              => 60 * 60 * 7,
37
+	"rt"                      => TRUE,
38
+	"distance_unit"           => DistanceUnit::MILES,
39
+	"device_type"             => DeviceType::WEB,
40
+	"optimize"                => OptimizationType::TIME,
41
+	"metric"                  => Metric::GEODESIC,
42
+	"route_max_duration"      => 86400 * 3,
43
+	"travel_mode"             => TravelMode::DRIVING,
44
+	"vehicle_capacity"        => 99,
45
+	"vehicle_max_distance_mi" => 99999
46 46
 ));
47 47
 
48 48
 $optimizationParams = new OptimizationProblemParams;
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 $problem = OptimizationProblem::optimize($optimizationParams);
53 53
 
54 54
 foreach ((array)$problem as $key => $value) {
55
-    if (is_string($value)) {
56
-        echo $key." --> ".$value."<br>";
57
-    } else {
58
-        echo "************ $key ************* <br>";
59
-        Route4Me::simplePrint((array)$value, true);
60
-        echo "******************************* <br>";
61
-    }
55
+	if (is_string($value)) {
56
+		echo $key." --> ".$value."<br>";
57
+	} else {
58
+		echo "************ $key ************* <br>";
59
+		Route4Me::simplePrint((array)$value, true);
60
+		echo "******************************* <br>";
61
+	}
62 62
 }
63 63
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root=realpath(dirname(__FILE__).'/../');
4
+$root = realpath(dirname(__FILE__).'/../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
 $json = json_decode(file_get_contents('./addresses.json'), true);
26 26
 
27 27
 $addresses = array();
28
-foreach($json as $address) {
28
+foreach ($json as $address) {
29 29
     $addresses[] = Address::fromArray($address);
30 30
 }
31 31
 
32 32
 $parameters = RouteParameters::fromArray(array(
33 33
     "algorithm_type"          => Algorithmtype::CVRP_TW_SD,
34 34
     "route_name"              => "Multiple Depot, Multiple Driver, Time Window",
35
-    "route_date"              => time() + 24*60*60,
35
+    "route_date"              => time() + 24 * 60 * 60,
36 36
     "route_time"              => 60 * 60 * 7,
37 37
     "rt"                      => TRUE,
38 38
     "distance_unit"           => DistanceUnit::MILES,
Please login to merge, or discard this patch.
src/Route4Me/ActivityParameters.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $activityparameters = new ActivityParameters();
35 35
         
36
-        foreach($params as $key => $value) {
36
+        foreach ($params as $key => $value) {
37 37
             if (property_exists($activityparameters, $key)) {
38 38
                 $activityparameters->{$key} = $value;
39 39
             }
Please login to merge, or discard this patch.
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -6,79 +6,79 @@
 block discarded – undo
6 6
 
7 7
 class ActivityParameters extends Common
8 8
 {
9
-    public $route_id;
10
-    public $device_id;
11
-    public $member_id;
12
-    public $team;
13
-    public $limit;
14
-    public $offset;
15
-    public $start;
16
-    public $end;
17
-    public $activity_type;
18
-    public $activity_message;
9
+	public $route_id;
10
+	public $device_id;
11
+	public $member_id;
12
+	public $team;
13
+	public $limit;
14
+	public $offset;
15
+	public $start;
16
+	public $end;
17
+	public $activity_type;
18
+	public $activity_message;
19 19
     
20
-    public $activity_id;
21
-    public $activity_timestamp;
22
-    public $route_destination_id;
23
-    public $note_id;
24
-    public $member;
25
-    public $note_type;
26
-    public $note_contents;
27
-    public $route_name;
28
-    public $note_file;
29
-    public $destination_name;
30
-    public $destination_alias;
20
+	public $activity_id;
21
+	public $activity_timestamp;
22
+	public $route_destination_id;
23
+	public $note_id;
24
+	public $member;
25
+	public $note_type;
26
+	public $note_contents;
27
+	public $route_name;
28
+	public $note_file;
29
+	public $destination_name;
30
+	public $destination_alias;
31 31
     
32
-    public static function fromArray(array $params) 
33
-    {
34
-        $activityparameters = new ActivityParameters();
32
+	public static function fromArray(array $params) 
33
+	{
34
+		$activityparameters = new ActivityParameters();
35 35
         
36
-        foreach($params as $key => $value) {
37
-            if (property_exists($activityparameters, $key)) {
38
-                $activityparameters->{$key} = $value;
39
-            }
40
-        }
36
+		foreach($params as $key => $value) {
37
+			if (property_exists($activityparameters, $key)) {
38
+				$activityparameters->{$key} = $value;
39
+			}
40
+		}
41 41
         
42
-        return $activityparameters;
43
-    }
42
+		return $activityparameters;
43
+	}
44 44
     
45
-    public static function getActivities($params)
46
-    {
47
-        $allQueryFields = array('route_id', 'team', 'limit', 'offset', 'start');
45
+	public static function getActivities($params)
46
+	{
47
+		$allQueryFields = array('route_id', 'team', 'limit', 'offset', 'start');
48 48
         
49
-        $activity = Route4Me::makeRequst(array(
50
-            'url'    => Endpoint::GET_ACTIVITIES,
51
-            'method' => 'GET',
52
-            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
53
-        ));
49
+		$activity = Route4Me::makeRequst(array(
50
+			'url'    => Endpoint::GET_ACTIVITIES,
51
+			'method' => 'GET',
52
+			'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
53
+		));
54 54
 
55
-        return $activity;
56
-    }
55
+		return $activity;
56
+	}
57 57
 
58
-    public static function searcActivities($params)
59
-    {
60
-        $allQueryFields = array('route_id', 'limit', 'offset', 'activity_type');
58
+	public static function searcActivities($params)
59
+	{
60
+		$allQueryFields = array('route_id', 'limit', 'offset', 'activity_type');
61 61
         
62
-        $activity = Route4Me::makeRequst(array(
63
-            'url'    => Endpoint::GET_ACTIVITIES,
64
-            'method' => 'GET',
65
-            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
66
-        ));
62
+		$activity = Route4Me::makeRequst(array(
63
+			'url'    => Endpoint::GET_ACTIVITIES,
64
+			'method' => 'GET',
65
+			'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
66
+		));
67 67
 
68
-        return $activity;
69
-    }
68
+		return $activity;
69
+	}
70 70
     
71
-    public static function sendUserMessage($params)
72
-    {
73
-        $allBodyFields = array('activity_type', 'activity_message', 'route_id');
71
+	public static function sendUserMessage($params)
72
+	{
73
+		$allBodyFields = array('activity_type', 'activity_message', 'route_id');
74 74
         
75
-        $result = Route4Me::makeRequst(array(
76
-            'url'    => Endpoint::ACTIVITY_FEED,
77
-            'method' => 'POST',
78
-            'body'   => Route4Me::generateRequestParameters($allBodyFields, $params)
79
-        ));
75
+		$result = Route4Me::makeRequst(array(
76
+			'url'    => Endpoint::ACTIVITY_FEED,
77
+			'method' => 'POST',
78
+			'body'   => Route4Me::generateRequestParameters($allBodyFields, $params)
79
+		));
80 80
         
81
-        return $result;
82
-    }
81
+		return $result;
82
+	}
83 83
     
84 84
 }
Please login to merge, or discard this patch.
src/Route4Me/Territory.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 Territory extends Common
9 9
 {
10
-	public $territory_id;  // Territory id
10
+	public $territory_id; // Territory id
11 11
 	public $territory_name; 
12 12
 	public $territory_color;
13 13
 	public $addresses;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		
30 30
 		$territoryparameters = new Territory();
31 31
         
32
-		foreach($params as $key => $value) {
32
+		foreach ($params as $key => $value) {
33 33
 			if (property_exists($territoryparameters, $key)) {
34 34
 				$territoryparameters->{$key} = $value;
35 35
 			}
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	
41 41
 	public static function getTerritory($params)
42 42
 	{
43
-	    $allQueryFields = array('territory_id', 'addresses');
43
+		$allQueryFields = array('territory_id', 'addresses');
44 44
         
45 45
 		$territory = Route4Me::makeRequst(array(
46 46
 			'url'    => Endpoint::TERRITORY_V4,
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	
54 54
 	public static function getTerritories($params)
55 55
 	{
56
-	    $allQueryFields = array('offset', 'limit', 'addresses');
56
+		$allQueryFields = array('offset', 'limit', 'addresses');
57 57
         
58 58
 		$response = Route4Me::makeRequst(array(
59 59
 			'url'    => Endpoint::TERRITORY_V4,
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
 	public static function addTerritory($params)
68 68
 	{
69
-	    $allBodyFields = array('territory_name', 'member_id', 'territory_color', 'territory');
69
+		$allBodyFields = array('territory_name', 'member_id', 'territory_color', 'territory');
70 70
         
71 71
 		$response = Route4Me::makeRequst(array(
72 72
 			'url'    => Endpoint::TERRITORY_V4,
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
 	
93 93
 	public function updateTerritory($params)
94 94
 	{
95
-	    $allQueryFields = array('territory_id');
96
-        $allBodyFields = array('territory_name', 'member_id', 'territory_color', 'territory');
95
+		$allQueryFields = array('territory_id');
96
+		$allBodyFields = array('territory_name', 'member_id', 'territory_color', 'territory');
97 97
         
98 98
 		$response = Route4Me::makeRequst(array(
99 99
 			'url'    => Endpoint::TERRITORY_V4,
100 100
 			'method' => 'PUT',
101 101
 			'query'  => Route4Me::generateRequestParameters($allQueryFields, $params),
102
-            'body'   => Route4Me::generateRequestParameters($allBodyFields, $params)
102
+			'body'   => Route4Me::generateRequestParameters($allBodyFields, $params)
103 103
 		));
104 104
 
105 105
 		return $response;
Please login to merge, or discard this patch.