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 ( ce7ad9...c183ba )
by Igor
08:49 queued 18s
created
src/Route4Me/Tracking/TrackingHistory.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -12,58 +12,58 @@
 block discarded – undo
12 12
  */
13 13
 class TrackingHistory extends Common
14 14
 {
15
-    /**
16
-     * Speed at the time of the location transaction event.
17
-     * @var type string
18
-     */
19
-    public $s;
15
+	/**
16
+	 * Speed at the time of the location transaction event.
17
+	 * @var type string
18
+	 */
19
+	public $s;
20 20
 
21
-    /**
22
-     * Speed unit ('mph', 'kph')
23
-     * @var type string
24
-     */
25
-    public $su;
21
+	/**
22
+	 * Speed unit ('mph', 'kph')
23
+	 * @var type string
24
+	 */
25
+	public $su;
26 26
 
27
-    /**
28
-     *  Latitude at the time of the location transaction event.
29
-     * @var type string
30
-     */
31
-    public $lt;
27
+	/**
28
+	 *  Latitude at the time of the location transaction event.
29
+	 * @var type string
30
+	 */
31
+	public $lt;
32 32
 
33
-    /**
34
-     * Member ID
35
-     * @var type integer
36
-     */
37
-    public $m;
33
+	/**
34
+	 * Member ID
35
+	 * @var type integer
36
+	 */
37
+	public $m;
38 38
 
39
-    /**
40
-     * Longitude at the time of the location transaction event.
41
-     * @var type string
42
-     */
43
-    public $lg;
39
+	/**
40
+	 * Longitude at the time of the location transaction event.
41
+	 * @var type string
42
+	 */
43
+	public $lg;
44 44
 
45
-    /**
46
-     * Direction/heading at the time of the location transaction event.
47
-     * @var type integer
48
-     */
49
-    public $d;
45
+	/**
46
+	 * Direction/heading at the time of the location transaction event.
47
+	 * @var type integer
48
+	 */
49
+	public $d;
50 50
 
51
-    /**
52
-     * The original timestamp in unix timestamp format at the moment location transaction event.
53
-     * @var type string
54
-     */
55
-    public $ts;
51
+	/**
52
+	 * The original timestamp in unix timestamp format at the moment location transaction event.
53
+	 * @var type string
54
+	 */
55
+	public $ts;
56 56
 
57
-    /**
58
-     * The original timestamp in a human readable timestamp format at the moment location transaction event.
59
-     * @var type string
60
-     */
61
-    public $ts_friendly;
57
+	/**
58
+	 * The original timestamp in a human readable timestamp format at the moment location transaction event.
59
+	 * @var type string
60
+	 */
61
+	public $ts_friendly;
62 62
 
63
-    /**
64
-     * GPS package src (e.g. 'R4M').
65
-     * @var type string
66
-     */
67
-    public $src;
63
+	/**
64
+	 * GPS package src (e.g. 'R4M').
65
+	 * @var type string
66
+	 */
67
+	public $src;
68 68
 
69 69
 }
70 70
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/Tracking/TrackSetParams.php 1 patch
Indentation   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -10,108 +10,108 @@
 block discarded – undo
10 10
 
11 11
 class TrackSetParams extends \Route4Me\Common
12 12
 {
13
-    public $format;
14
-    public $member_id;
15
-    public $route_id;
16
-    public $tx_id;
17
-    public $vehicle_id;
18
-    public $course;
19
-    public $speed;
20
-    public $lat;
21
-    public $lng;
22
-    public $altitude;
23
-    public $device_type;
24
-    public $device_guid;
25
-    public $device_timestamp;
26
-    public $app_version;
27
-
28
-    public function __construct()
29
-    {
30
-        Route4Me\Route4Me::setBaseUrl(Endpoint::BASE_URL);
31
-    }
32
-
33
-    public static function fromArray(array $params)
34
-    {
35
-        $param = new self();
36
-
37
-        if (!isset($params['format'])) {
38
-            throw new BadParam('format must be provided.');
39
-        }
40
-
41
-        $types = [
42
-            Format::JSON,
43
-            Format::SERIALIZED,
44
-            Format::CSV,
45
-            Format::XML,
46
-        ];
47
-        if (!in_array($params['format'], $types)) {
48
-            throw new BadParam('format is invalid.');
49
-        }
50
-
51
-        if (!isset($params['route_id'])) {
52
-            throw new BadParam('route_id must be provided.');
53
-        }
54
-
55
-        if (!isset($params['member_id'])) {
56
-            throw new BadParam('member_id must be provided.');
57
-        }
58
-
59
-        if (!isset($params['course'])) {
60
-            throw new BadParam('course must be provided.');
61
-        }
62
-
63
-        if (!isset($params['speed'])) {
64
-            throw new BadParam('speed must be provided.');
65
-        }
66
-
67
-        if (!isset($params['lat'])) {
68
-            throw new BadParam('lat must be provided.');
69
-        }
70
-
71
-        if (!isset($params['lng'])) {
72
-            throw new BadParam('lng must be provided.');
73
-        }
74
-
75
-        if (!isset($params['device_type'])) {
76
-            throw new BadParam('device_type must be provided.');
77
-        }
78
-
79
-        $deviceTypes = [
80
-            DeviceType::IPHONE,
81
-            DeviceType::IPAD,
82
-            DeviceType::ANDROID_PHONE,
83
-            DeviceType::ANDROID_TABLET,
84
-        ];
85
-        if (!in_array($params['device_type'], $deviceTypes)) {
86
-            throw new BadParam('device_type is invalid.');
87
-        }
88
-
89
-        if (!isset($params['device_guid'])) {
90
-            throw new BadParam('device_guid must be provided.');
91
-        }
92
-
93
-        if (isset($params['device_timestamp'])) {
94
-            $template = '/[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/i';
95
-            if (!preg_match($template, $params['device_timestamp'])) {
96
-                throw new BadParam('device_timestamp is invalid.');
97
-            }
98
-        }
99
-
100
-        $param->format = self::getValue($params, 'format');
101
-        $param->route_id = self::getValue($params, 'route_id');
102
-        $param->member_id = self::getValue($params, 'member_id');
103
-        $param->course = self::getValue($params, 'course');
104
-        $param->speed = self::getValue($params, 'speed');
105
-        $param->lat = self::getValue($params, 'lat');
106
-        $param->lng = self::getValue($params, 'lng');
107
-        $param->device_type = self::getValue($params, 'device_type');
108
-        $param->device_guid = self::getValue($params, 'device_guid');
109
-        $param->device_timestamp = self::getValue($params, 'device_timestamp');
110
-        $param->vehicle_id = self::getValue($params, 'vehicle_id');
111
-        $param->altitude = self::getValue($params, 'altitude');
112
-        $param->app_version = self::getValue($params, 'app_version');
113
-        $param->tx_id = self::getValue($params, 'tx_id');
114
-
115
-        return $param;
116
-    }
13
+	public $format;
14
+	public $member_id;
15
+	public $route_id;
16
+	public $tx_id;
17
+	public $vehicle_id;
18
+	public $course;
19
+	public $speed;
20
+	public $lat;
21
+	public $lng;
22
+	public $altitude;
23
+	public $device_type;
24
+	public $device_guid;
25
+	public $device_timestamp;
26
+	public $app_version;
27
+
28
+	public function __construct()
29
+	{
30
+		Route4Me\Route4Me::setBaseUrl(Endpoint::BASE_URL);
31
+	}
32
+
33
+	public static function fromArray(array $params)
34
+	{
35
+		$param = new self();
36
+
37
+		if (!isset($params['format'])) {
38
+			throw new BadParam('format must be provided.');
39
+		}
40
+
41
+		$types = [
42
+			Format::JSON,
43
+			Format::SERIALIZED,
44
+			Format::CSV,
45
+			Format::XML,
46
+		];
47
+		if (!in_array($params['format'], $types)) {
48
+			throw new BadParam('format is invalid.');
49
+		}
50
+
51
+		if (!isset($params['route_id'])) {
52
+			throw new BadParam('route_id must be provided.');
53
+		}
54
+
55
+		if (!isset($params['member_id'])) {
56
+			throw new BadParam('member_id must be provided.');
57
+		}
58
+
59
+		if (!isset($params['course'])) {
60
+			throw new BadParam('course must be provided.');
61
+		}
62
+
63
+		if (!isset($params['speed'])) {
64
+			throw new BadParam('speed must be provided.');
65
+		}
66
+
67
+		if (!isset($params['lat'])) {
68
+			throw new BadParam('lat must be provided.');
69
+		}
70
+
71
+		if (!isset($params['lng'])) {
72
+			throw new BadParam('lng must be provided.');
73
+		}
74
+
75
+		if (!isset($params['device_type'])) {
76
+			throw new BadParam('device_type must be provided.');
77
+		}
78
+
79
+		$deviceTypes = [
80
+			DeviceType::IPHONE,
81
+			DeviceType::IPAD,
82
+			DeviceType::ANDROID_PHONE,
83
+			DeviceType::ANDROID_TABLET,
84
+		];
85
+		if (!in_array($params['device_type'], $deviceTypes)) {
86
+			throw new BadParam('device_type is invalid.');
87
+		}
88
+
89
+		if (!isset($params['device_guid'])) {
90
+			throw new BadParam('device_guid must be provided.');
91
+		}
92
+
93
+		if (isset($params['device_timestamp'])) {
94
+			$template = '/[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/i';
95
+			if (!preg_match($template, $params['device_timestamp'])) {
96
+				throw new BadParam('device_timestamp is invalid.');
97
+			}
98
+		}
99
+
100
+		$param->format = self::getValue($params, 'format');
101
+		$param->route_id = self::getValue($params, 'route_id');
102
+		$param->member_id = self::getValue($params, 'member_id');
103
+		$param->course = self::getValue($params, 'course');
104
+		$param->speed = self::getValue($params, 'speed');
105
+		$param->lat = self::getValue($params, 'lat');
106
+		$param->lng = self::getValue($params, 'lng');
107
+		$param->device_type = self::getValue($params, 'device_type');
108
+		$param->device_guid = self::getValue($params, 'device_guid');
109
+		$param->device_timestamp = self::getValue($params, 'device_timestamp');
110
+		$param->vehicle_id = self::getValue($params, 'vehicle_id');
111
+		$param->altitude = self::getValue($params, 'altitude');
112
+		$param->app_version = self::getValue($params, 'app_version');
113
+		$param->tx_id = self::getValue($params, 'tx_id');
114
+
115
+		return $param;
116
+	}
117 117
 }
Please login to merge, or discard this patch.
src/Route4Me/Tracking/Track.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -7,32 +7,32 @@
 block discarded – undo
7 7
 
8 8
 class Track extends \Route4Me\Common
9 9
 {
10
-    public function __construct()
11
-    {
12
-        Route4Me\Route4Me::setBaseUrl(Endpoint::BASE_URL);
13
-    }
14
-
15
-    public static function set(TrackSetParams $params)
16
-    {
17
-        $allQueryFields = Route4Me\Route4Me::getObjectProperties(new TrackSetParams(), ['tx_id']);
18
-
19
-        $json = Route4Me\Route4Me::makeRequst([
20
-            'url' => Endpoint::TRACK_SET,
21
-            'method' => 'GET',
22
-            'query' => Route4Me\Route4Me::generateRequestParameters($allQueryFields, $params),
23
-        ]);
24
-
25
-        return $json;
26
-    }
27
-
28
-    public static function getUserLocations($query=null)
29
-    {
30
-        $json = Route4Me\Route4Me::makeRequst([
31
-            'url' => Endpoint::USER_LOCATION,
32
-            'method' => 'GET',
33
-            'query' => isset($query) ? ['query' => $query] : null
34
-        ]);
35
-
36
-        return $json;
37
-    }
10
+	public function __construct()
11
+	{
12
+		Route4Me\Route4Me::setBaseUrl(Endpoint::BASE_URL);
13
+	}
14
+
15
+	public static function set(TrackSetParams $params)
16
+	{
17
+		$allQueryFields = Route4Me\Route4Me::getObjectProperties(new TrackSetParams(), ['tx_id']);
18
+
19
+		$json = Route4Me\Route4Me::makeRequst([
20
+			'url' => Endpoint::TRACK_SET,
21
+			'method' => 'GET',
22
+			'query' => Route4Me\Route4Me::generateRequestParameters($allQueryFields, $params),
23
+		]);
24
+
25
+		return $json;
26
+	}
27
+
28
+	public static function getUserLocations($query=null)
29
+	{
30
+		$json = Route4Me\Route4Me::makeRequst([
31
+			'url' => Endpoint::USER_LOCATION,
32
+			'method' => 'GET',
33
+			'query' => isset($query) ? ['query' => $query] : null
34
+		]);
35
+
36
+		return $json;
37
+	}
38 38
 }
Please login to merge, or discard this patch.
src/Route4Me/ServiceTimeRulesClass.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,32 +10,32 @@
 block discarded – undo
10 10
  */
11 11
 class ServiceTimeRulesClass
12 12
 {
13
-    /**
14
-     * Mode of a first item of the bundled addresses.
15
-     * @var integer
16
-     * @see Enum\AddressBundlingModes\FirstItemMode
17
-     */
18
-    public $first_item_mode = AddressBundlingModes\FirstItemMode::KEEP_ORIGINAL;
13
+	/**
14
+	 * Mode of a first item of the bundled addresses.
15
+	 * @var integer
16
+	 * @see Enum\AddressBundlingModes\FirstItemMode
17
+	 */
18
+	public $first_item_mode = AddressBundlingModes\FirstItemMode::KEEP_ORIGINAL;
19 19
 
20
-    /**
21
-     * First item mode parameters.<br>
22
-     * If FirstItemMode=CustomTime, contains custom service time in seconds.
23
-     * @var integer[]
24
-     */
25
-    public $first_item_mode_params = [];
20
+	/**
21
+	 * First item mode parameters.<br>
22
+	 * If FirstItemMode=CustomTime, contains custom service time in seconds.
23
+	 * @var integer[]
24
+	 */
25
+	public $first_item_mode_params = [];
26 26
 
27
-    /**
28
-     * Mode of the non-first items of the bundled addresses.
29
-     * @var integer
30
-     * @see Enum\AddressBundlingModes\AdditionalItemsMode
31
-     */
32
-    public $additional_items_mode = AddressBundlingModes\AdditionalItemsMode::KEEP_ORIGINAL;
27
+	/**
28
+	 * Mode of the non-first items of the bundled addresses.
29
+	 * @var integer
30
+	 * @see Enum\AddressBundlingModes\AdditionalItemsMode
31
+	 */
32
+	public $additional_items_mode = AddressBundlingModes\AdditionalItemsMode::KEEP_ORIGINAL;
33 33
 
34
-    /**
35
-     * Additional items mode parameters:<br>
36
-     * if AdditionalItemsMode=AddressBundlingAdditionalItemsMode.CustomTime,
37
-     * contains an array of the custom service times.
38
-     * @var integer[]
39
-     */
40
-    public $additional_items_mode_params = [];
34
+	/**
35
+	 * Additional items mode parameters:<br>
36
+	 * if AdditionalItemsMode=AddressBundlingAdditionalItemsMode.CustomTime,
37
+	 * contains an array of the custom service times.
38
+	 * @var integer[]
39
+	 */
40
+	public $additional_items_mode_params = [];
41 41
 }
Please login to merge, or discard this patch.
UnitTestFiles/Test/AdvancedConstraintsUnitTests.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -14,79 +14,79 @@
 block discarded – undo
14 14
 use Route4Me\V5\Addresses\RouteAdvancedConstraints;
15 15
 
16 16
 class AdvancedConstraintsUnitTests extends \PHPUnit\Framework\TestCase {
17
-    public static $problem;
17
+	public static $problem;
18 18
 
19
-    public static function setUpBeforeClass()
20
-    {
21
-        Route4Me::setApiKey(Constants::API_KEY);
22
-        self::$problem = null;
23
-    }
19
+	public static function setUpBeforeClass()
20
+	{
21
+		Route4Me::setApiKey(Constants::API_KEY);
22
+		self::$problem = null;
23
+	}
24 24
 
25
-    public function testAdvancedConstraintsExample12()
26
-    {
27
-        $addresses = array_map('str_getcsv', file(dirname(__FILE__).'/data/locations.csv'));
28
-        array_walk($addresses, function(&$a) use ($addresses) { $a = Address::fromArray(array_combine($addresses[0], $a)); });
29
-        array_shift($addresses);
25
+	public function testAdvancedConstraintsExample12()
26
+	{
27
+		$addresses = array_map('str_getcsv', file(dirname(__FILE__).'/data/locations.csv'));
28
+		array_walk($addresses, function(&$a) use ($addresses) { $a = Address::fromArray(array_combine($addresses[0], $a)); });
29
+		array_shift($addresses);
30 30
 
31
-        $parameters = RouteParameters::fromArray([
32
-            'algorithm_type' => AlgorithmType::ADVANCED_CVRP_TW,
33
-            'store_route' => false,
34
-            'rt' => true,
35
-            'parts' => 30,
36
-            'metric' => Metric::MATRIX,
37
-            'member_id' => 444333,
38
-            'route_name' => "Drivers Schedules - 3 Territories",
39
-            'optimize' => "Distance",
40
-            'distance_unit' => "mi",
41
-            'device_type' => DeviceType::WEB,
42
-            'travel_mode' => "Driving",
43
-            'advanced_constraints' => []
44
-        ]);
31
+		$parameters = RouteParameters::fromArray([
32
+			'algorithm_type' => AlgorithmType::ADVANCED_CVRP_TW,
33
+			'store_route' => false,
34
+			'rt' => true,
35
+			'parts' => 30,
36
+			'metric' => Metric::MATRIX,
37
+			'member_id' => 444333,
38
+			'route_name' => "Drivers Schedules - 3 Territories",
39
+			'optimize' => "Distance",
40
+			'distance_unit' => "mi",
41
+			'device_type' => DeviceType::WEB,
42
+			'travel_mode' => "Driving",
43
+			'advanced_constraints' => []
44
+		]);
45 45
 
46
-        $zones = [["ZONE 01"], ["ZONE 02"], ["ZONE 03"]];
46
+		$zones = [["ZONE 01"], ["ZONE 02"], ["ZONE 03"]];
47 47
 
48
-        for($i = 0; $i < 30; ++$i)
49
-        {
50
-            $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
51
-                'tags' => [$zones[$i % 3]],
52
-                'members_count' => 1,
53
-                'available_time_windows' => [[(8 + 5) * 3600, (11 + 5) * 3600]],
54
-                'location_sequence_pattern' => [Address::fromArray([
55
-                    'address' => "RETAIL LOCATION",
56
-                    'alias' => "RETAIL LOCATION",
57
-                    'lat' => 25.8741751,
58
-                    'lng' => -80.1288583,
59
-                    'time' => 300
60
-                ])]
61
-            ]);
62
-        }
48
+		for($i = 0; $i < 30; ++$i)
49
+		{
50
+			$parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
51
+				'tags' => [$zones[$i % 3]],
52
+				'members_count' => 1,
53
+				'available_time_windows' => [[(8 + 5) * 3600, (11 + 5) * 3600]],
54
+				'location_sequence_pattern' => [Address::fromArray([
55
+					'address' => "RETAIL LOCATION",
56
+					'alias' => "RETAIL LOCATION",
57
+					'lat' => 25.8741751,
58
+					'lng' => -80.1288583,
59
+					'time' => 300
60
+				])]
61
+			]);
62
+		}
63 63
     
64
-        $optimizationParameters = new OptimizationProblemParams();
65
-        $optimizationParameters->setAddresses($addresses);
66
-        $optimizationParameters->setParameters($parameters);
64
+		$optimizationParameters = new OptimizationProblemParams();
65
+		$optimizationParameters->setAddresses($addresses);
66
+		$optimizationParameters->setParameters($parameters);
67 67
 
68
-        self::$problem = OptimizationProblem::optimize($optimizationParameters);
68
+		self::$problem = OptimizationProblem::optimize($optimizationParameters);
69 69
 
70
-        $this->assertNotNull(self::$problem->optimization_problem_id);
71
-        $this->assertEquals(self::$problem->parameters->route_name, 'Drivers Schedules - 3 Territories');
72
-    }
70
+		$this->assertNotNull(self::$problem->optimization_problem_id);
71
+		$this->assertEquals(self::$problem->parameters->route_name, 'Drivers Schedules - 3 Territories');
72
+	}
73 73
 
74
-    public static function tearDownAfterClass()
75
-    {
76
-        if(!is_null(self::$problem->optimization_problem_id))
77
-        {
78
-            $params = [
79
-                'optimization_problem_ids' => ['0' => self::$problem->optimization_problem_id],
80
-                'redirect' => 0,
81
-            ];
74
+	public static function tearDownAfterClass()
75
+	{
76
+		if(!is_null(self::$problem->optimization_problem_id))
77
+		{
78
+			$params = [
79
+				'optimization_problem_ids' => ['0' => self::$problem->optimization_problem_id],
80
+				'redirect' => 0,
81
+			];
82 82
 
83
-            $result = self::$problem->removeOptimization($params);
83
+			$result = self::$problem->removeOptimization($params);
84 84
 
85
-            if ($result != null && $result['status'] == true) {
86
-                echo "The test optimization was removed <br>";
87
-            } else {
88
-                echo "Cannot remove the test optimization <br>";
89
-            }
90
-        }
91
-    }
85
+			if ($result != null && $result['status'] == true) {
86
+				echo "The test optimization was removed <br>";
87
+			} else {
88
+				echo "Cannot remove the test optimization <br>";
89
+			}
90
+		}
91
+	}
92 92
 }
Please login to merge, or discard this patch.
examples/Territories/AddTerritory.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 
19 19
 $territoryParams['type'] = TerritoryTypes::CIRCLE;
20 20
 $territoryParams['data'] = [
21
-    '37.569752822786455,-77.47833251953125',
22
-    '5000',
21
+	'37.569752822786455,-77.47833251953125',
22
+	'5000',
23 23
 ];
24 24
 
25 25
 $TerritoryParameters = Territory::fromArray([
26
-    'territory_name'    => 'Test Territory '.strval(rand(10000, 99999)),
27
-    'territory_color'   => 'ff7700',
28
-    'territory'         => $territoryParams,
26
+	'territory_name'    => 'Test Territory '.strval(rand(10000, 99999)),
27
+	'territory_color'   => 'ff7700',
28
+	'territory'         => $territoryParams,
29 29
 ]);
30 30
 
31 31
 $territory = new Territory();
Please login to merge, or discard this patch.
examples/AddressBook/AddAddressBookLocation.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 Route4Me::setApiKey(Constants::API_KEY);
10 10
 
11 11
 $AddressBookLocationParameters = AddressBookLocation::fromArray([
12
-    'first_name'    => 'Test FirstName '.strval(rand(10000, 99999)),
13
-    'address_1'     => 'Test Address1 '.strval(rand(10000, 99999)),
14
-    'cached_lat'    => 38.024654,
15
-    'cached_lng'    => -77.338814,
12
+	'first_name'    => 'Test FirstName '.strval(rand(10000, 99999)),
13
+	'address_1'     => 'Test Address1 '.strval(rand(10000, 99999)),
14
+	'cached_lat'    => 38.024654,
15
+	'cached_lng'    => -77.338814,
16 16
 ]);
17 17
 
18 18
 $abContacts = new AddressBookLocation();
Please login to merge, or discard this patch.
examples/AddressBook/RemoveAddressBookLocations.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
 Route4Me::setApiKey(Constants::API_KEY);
13 13
 
14 14
 $AddressBookLocationParameters = AddressBookLocation::fromArray([
15
-    'first_name'    => 'Test FirstName '.strval(rand(10000, 99999)),
16
-    'address_1'     => 'Test Address1 '.strval(rand(10000, 99999)),
17
-    'cached_lat'    => 38.024654,
18
-    'cached_lng'    => -77.338814,
15
+	'first_name'    => 'Test FirstName '.strval(rand(10000, 99999)),
16
+	'address_1'     => 'Test Address1 '.strval(rand(10000, 99999)),
17
+	'cached_lat'    => 38.024654,
18
+	'cached_lng'    => -77.338814,
19 19
 ]);
20 20
 
21 21
 $abContacts = new AddressBookLocation();
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 $address_id = -1;
26 26
 
27 27
 if (isset($createdContact['address_id'])) {
28
-    $address_id = $createdContact['address_id'];
28
+	$address_id = $createdContact['address_id'];
29 29
 }
30 30
 
31 31
 assert($address_id != -1, 'Creating of Address Book Location was failed. Try again!.. <br>');
Please login to merge, or discard this patch.
examples/AddressBook/UpdateAddressBookLocation.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
 Route4Me::setApiKey(Constants::API_KEY);
13 13
 
14 14
 $AddressBookLocationParameters = AddressBookLocation::fromArray([
15
-    'first_name'    => 'Test FirstName '.strval(rand(10000, 99999)),
16
-    'address_1'     => 'Test Address1 '.strval(rand(10000, 99999)),
17
-    'cached_lat'    => 38.024654,
18
-    'cached_lng'    => -77.338814,
15
+	'first_name'    => 'Test FirstName '.strval(rand(10000, 99999)),
16
+	'address_1'     => 'Test Address1 '.strval(rand(10000, 99999)),
17
+	'cached_lat'    => 38.024654,
18
+	'cached_lng'    => -77.338814,
19 19
 ]);
20 20
 
21 21
 $abLocation = new AddressBookLocation();
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 assert(isset($abcResult['address_id']), 'Cannot create an address book location. <br><br>');
28 28
 
29 29
 if (isset($abcResult['address_id'])) {
30
-    $address_id = $abcResult['address_id'];
30
+	$address_id = $abcResult['address_id'];
31 31
 }
32 32
 
33 33
 assert($address_id != -1, 'Cannot create an address book location. <br><br>');
Please login to merge, or discard this patch.