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 ( ba89cf...799599 )
by Oleg
02:27
created
examples/MemberConfiguration/update_config_key.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
 
36 36
 // Update existing configuration key data
37 37
 $params = Member::fromArray(array (
38
-    "config_key"=> $randomKey,
39
-    "config_value"=> $randomValue . " Updated"
38
+	"config_key"=> $randomKey,
39
+	"config_value"=> $randomValue . " Updated"
40 40
 ));
41 41
 
42 42
 $response = $member->updateMemberConfigKey($params);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Member;
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 $member = new Member();
19 19
 
20 20
 // Get a random member config key
21
-$randomParams = Member::fromArray(array (
21
+$randomParams = Member::fromArray(array(
22 22
 ));
23 23
 
24 24
 $response = $member->getMemberConfigData($randomParams);
@@ -27,16 +27,16 @@  discard block
 block discarded – undo
27 27
 assert(sizeof($response)==2, "Cannot retrieve all config data");
28 28
 assert(isset($response['data']), "Cannot retrieve all config data");
29 29
 
30
-$randIndex = rand(0, sizeof($response['data'])-1);
30
+$randIndex = rand(0, sizeof($response['data']) - 1);
31 31
 
32 32
 $randomKey = $response['data'][$randIndex]['config_key'];
33 33
 $randomValue = $response['data'][$randIndex]['config_value'];
34 34
 echo "Random key -> $randomKey,  random value -> $randomValue <br><br>";
35 35
 
36 36
 // Update existing configuration key data
37
-$params = Member::fromArray(array (
37
+$params = Member::fromArray(array(
38 38
     "config_key"=> $randomKey,
39
-    "config_value"=> $randomValue . " Updated"
39
+    "config_value"=> $randomValue." Updated"
40 40
 ));
41 41
 
42 42
 $response = $member->updateMemberConfigKey($params);
Please login to merge, or discard this patch.
examples/MemberConfiguration/get_specific_account_config_key_data.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,19 +33,19 @@
 block discarded – undo
33 33
 echo "randomKey -> $randomKey <br><br>";
34 34
 
35 35
 $params = Member::fromArray(array (
36
-    "config_key"=> $randomKey
36
+	"config_key"=> $randomKey
37 37
 ));
38 38
 
39 39
 $response = $member->getMemberConfigData($params);
40 40
 
41 41
 foreach ($response as $key => $value)
42 42
 {
43
-    if (is_array($value))
44
-    {
45
-        Route4Me::simplePrint($value);
46
-    }
47
-    else 
48
-    {
49
-        echo "$key => $value <br>";
50
-    }
43
+	if (is_array($value))
44
+	{
45
+		Route4Me::simplePrint($value);
46
+	}
47
+	else 
48
+	{
49
+		echo "$key => $value <br>";
50
+	}
51 51
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Member;
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 $member = new Member();
19 19
 
20 20
 // Get a random member config key
21
-$randomParams = Member::fromArray(array (
21
+$randomParams = Member::fromArray(array(
22 22
 ));
23 23
 
24 24
 $response = $member->getMemberConfigData($randomParams);
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 assert(sizeof($response)==2, "Cannot retrieve all config data");
28 28
 assert(isset($response['data']), "Cannot retrieve all config data");
29 29
 
30
-$randomKey = $response['data'][rand(0, sizeof($response['data'])-1)]['config_key'];
30
+$randomKey = $response['data'][rand(0, sizeof($response['data']) - 1)]['config_key'];
31 31
 
32 32
 // Get a specified single configuration key data
33 33
 echo "randomKey -> $randomKey <br><br>";
34 34
 
35
-$params = Member::fromArray(array (
35
+$params = Member::fromArray(array(
36 36
     "config_key"=> $randomKey
37 37
 ));
38 38
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
     if (is_array($value))
25 25
     {
26 26
         Route4Me::simplePrint($value);
27
-    }
28
-    else 
27
+    } else 
29 28
     {
30 29
         echo "$key => $value <br>";
31 30
     }
Please login to merge, or discard this patch.
examples/AddressBook/AddScheduledAddressBookLocation.php 2 patches
Indentation   +119 added lines, -119 removed lines patch added patch discarded remove patch
@@ -12,24 +12,24 @@  discard block
 block discarded – undo
12 12
 
13 13
 #region // Add a location, scheduled daily with custom data.
14 14
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
15
-    "address_1"            => "1604 PARKRIDGE PKWY, Louisville, KY, 40214",
16
-    "address_alias"        => "1604 PARKRIDGE PKWY 40214",
17
-    "address_group"        => "Scheduled daily",
18
-    "first_name"           => "Peter",
19
-    "last_name"            => "Newman",
20
-    "address_email"        => "[email protected]",
21
-    "address_phone_number" => "65432178",
22
-    "cached_lat"           => 38.141598,
23
-    "cached_lng"           => -85.793846,
24
-    "address_city"         => "Louisville",
25
-    "address_custom_data"  => array("scheduled"   => "yes", 
26
-                                    "serice type" => "publishing"),
27
-    "schedule" => array(array(
28
-        "enabled" => true,
29
-        "mode"    => "daily",
30
-        "daily"   => array("every" => 1)
31
-    )),
32
-    "service_time" => 900
15
+	"address_1"            => "1604 PARKRIDGE PKWY, Louisville, KY, 40214",
16
+	"address_alias"        => "1604 PARKRIDGE PKWY 40214",
17
+	"address_group"        => "Scheduled daily",
18
+	"first_name"           => "Peter",
19
+	"last_name"            => "Newman",
20
+	"address_email"        => "[email protected]",
21
+	"address_phone_number" => "65432178",
22
+	"cached_lat"           => 38.141598,
23
+	"cached_lng"           => -85.793846,
24
+	"address_city"         => "Louisville",
25
+	"address_custom_data"  => array("scheduled"   => "yes", 
26
+									"serice type" => "publishing"),
27
+	"schedule" => array(array(
28
+		"enabled" => true,
29
+		"mode"    => "daily",
30
+		"daily"   => array("every" => 1)
31
+	)),
32
+	"service_time" => 900
33 33
 ));
34 34
 
35 35
 $abContacts1 = new AddressBookLocation();
@@ -44,27 +44,27 @@  discard block
 block discarded – undo
44 44
 
45 45
 #region // Add a location, scheduled weekly.
46 46
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
47
-    "address_1"            => "1407 MCCOY, Louisville, KY, 40215",
48
-    "address_alias"        => "1407 MCCOY 40215",
49
-    "address_group"        => "Scheduled weekly",
50
-    "first_name"           => "Bart",
51
-    "last_name"            => "Douglas",
52
-    "address_email"        => "[email protected]",
53
-    "address_phone_number" => "95487454",
54
-    "cached_lat"           => 38.202496,
55
-    "cached_lng"           => -85.786514,
56
-    "curbside_lat"         => 38.202496,
57
-    "curbside_lng"         => -85.786514,
58
-    "address_city"         => "Louisville",
59
-    "schedule" => array(array(
60
-        "enabled" => true,
61
-        "mode"    => "weekly",
62
-        "weekly"  => array(
63
-            "every"    => 1,
64
-            "weekdays" => array(1,2,3,4,5)
65
-        )
66
-    )),
67
-    "service_time" => 600
47
+	"address_1"            => "1407 MCCOY, Louisville, KY, 40215",
48
+	"address_alias"        => "1407 MCCOY 40215",
49
+	"address_group"        => "Scheduled weekly",
50
+	"first_name"           => "Bart",
51
+	"last_name"            => "Douglas",
52
+	"address_email"        => "[email protected]",
53
+	"address_phone_number" => "95487454",
54
+	"cached_lat"           => 38.202496,
55
+	"cached_lng"           => -85.786514,
56
+	"curbside_lat"         => 38.202496,
57
+	"curbside_lng"         => -85.786514,
58
+	"address_city"         => "Louisville",
59
+	"schedule" => array(array(
60
+		"enabled" => true,
61
+		"mode"    => "weekly",
62
+		"weekly"  => array(
63
+			"every"    => 1,
64
+			"weekdays" => array(1,2,3,4,5)
65
+		)
66
+	)),
67
+	"service_time" => 600
68 68
 ));
69 69
 
70 70
 $abContacts2 = new AddressBookLocation();
@@ -79,33 +79,33 @@  discard block
 block discarded – undo
79 79
 
80 80
 #region // Add a location, scheduled monthly (dates mode).
81 81
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
82
-    "address_1"            => "4805 BELLEVUE AVE, Louisville, KY, 40215",
83
-    "address_2"            => "4806 BELLEVUE AVE, Louisville, KY, 40215",
84
-    "address_alias"        => "4805 BELLEVUE AVE 40215",
85
-    "address_group"        => "Scheduled monthly",
86
-    "first_name"           => "Bart",
87
-    "last_name"            => "Douglas",
88
-    "address_email"        => "[email protected]",
89
-    "address_phone_number" => "95487454",
90
-    "cached_lat"           => 38.178844,
91
-    "cached_lng"           => -85.774864,
92
-    "curbside_lat"         => 38.178844,
93
-    "curbside_lng"         => -85.774864,
94
-    "address_city"         => "Louisville",
95
-    "address_country_id"   => "US",
96
-    "address_state_id"     => "KY",
97
-    "address_zip"          => "40215",
98
-    "schedule" => array(array(
99
-        "enabled" => true,
100
-        "mode"    => "monthly",
101
-        "monthly" => array(
102
-            "every" => 1,
103
-            "mode"  => "dates",
104
-            "dates" => array(20,22,23,24,25)
105
-        )
106
-    )),
107
-    "service_time" => 750,
108
-    "color" => "red"
82
+	"address_1"            => "4805 BELLEVUE AVE, Louisville, KY, 40215",
83
+	"address_2"            => "4806 BELLEVUE AVE, Louisville, KY, 40215",
84
+	"address_alias"        => "4805 BELLEVUE AVE 40215",
85
+	"address_group"        => "Scheduled monthly",
86
+	"first_name"           => "Bart",
87
+	"last_name"            => "Douglas",
88
+	"address_email"        => "[email protected]",
89
+	"address_phone_number" => "95487454",
90
+	"cached_lat"           => 38.178844,
91
+	"cached_lng"           => -85.774864,
92
+	"curbside_lat"         => 38.178844,
93
+	"curbside_lng"         => -85.774864,
94
+	"address_city"         => "Louisville",
95
+	"address_country_id"   => "US",
96
+	"address_state_id"     => "KY",
97
+	"address_zip"          => "40215",
98
+	"schedule" => array(array(
99
+		"enabled" => true,
100
+		"mode"    => "monthly",
101
+		"monthly" => array(
102
+			"every" => 1,
103
+			"mode"  => "dates",
104
+			"dates" => array(20,22,23,24,25)
105
+		)
106
+	)),
107
+	"service_time" => 750,
108
+	"color" => "red"
109 109
 ));
110 110
 
111 111
 $abContacts3 = new AddressBookLocation();
@@ -120,36 +120,36 @@  discard block
 block discarded – undo
120 120
 
121 121
 #region // AAdd a location, scheduled monthly (nth mode).
122 122
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
123
-    "address_1"            => "730 CECIL AVENUE, Louisville, KY, 40211",
124
-    "address_alias"        => "730 CECIL AVENUE 40211",
125
-    "address_group"        => "Scheduled monthly",
126
-    "first_name"           => "David",
127
-    "last_name"            => "Silvester",
128
-    "address_email"        => "[email protected]",
129
-    "address_phone_number" => "36985214",
130
-    "cached_lat"           => 38.248684,
131
-    "cached_lng"           => -85.821121,
132
-    "curbside_lat"         => 38.248684,
133
-    "curbside_lng"         => -85.821121,
134
-    "address_city"         => "Louisville",
135
-    "address_custom_data" => array(
136
-        "scheduled"    => "yes",
137
-        "service type" => "library"
138
-    ),
139
-    "schedule" => array(array(
140
-        "enabled" => true,
141
-        "mode"    => "monthly",
142
-        "monthly" => array(
143
-            "every" => 1,
144
-            "mode"  => "nth",
145
-            "nth"   => array(
146
-                "n"    => 1,
147
-                "what" => 4
148
-            )
149
-        )
150
-    )),
151
-    "service_time" => 450,
152
-    "address_icon" => "emoji/emoji-bus"
123
+	"address_1"            => "730 CECIL AVENUE, Louisville, KY, 40211",
124
+	"address_alias"        => "730 CECIL AVENUE 40211",
125
+	"address_group"        => "Scheduled monthly",
126
+	"first_name"           => "David",
127
+	"last_name"            => "Silvester",
128
+	"address_email"        => "[email protected]",
129
+	"address_phone_number" => "36985214",
130
+	"cached_lat"           => 38.248684,
131
+	"cached_lng"           => -85.821121,
132
+	"curbside_lat"         => 38.248684,
133
+	"curbside_lng"         => -85.821121,
134
+	"address_city"         => "Louisville",
135
+	"address_custom_data" => array(
136
+		"scheduled"    => "yes",
137
+		"service type" => "library"
138
+	),
139
+	"schedule" => array(array(
140
+		"enabled" => true,
141
+		"mode"    => "monthly",
142
+		"monthly" => array(
143
+			"every" => 1,
144
+			"mode"  => "nth",
145
+			"nth"   => array(
146
+				"n"    => 1,
147
+				"what" => 4
148
+			)
149
+		)
150
+	)),
151
+	"service_time" => 450,
152
+	"address_icon" => "emoji/emoji-bus"
153 153
 ));
154 154
 
155 155
 $abContacts4 = new AddressBookLocation();
@@ -165,29 +165,29 @@  discard block
 block discarded – undo
165 165
 #region // Add a location with the daily scheduling and blacklist.
166 166
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
167 167
 
168
-    "address_1"            => "4629 HILLSIDE DRIVE, Louisville, KY, 40216",
169
-    "address_alias"        => "4629 HILLSIDE DRIVE 40216",
170
-    "address_group"        => "Scheduled daily",
171
-    "first_name"           => "Kim",
172
-    "last_name"            => "Shandor",
173
-    "address_email"        => "[email protected]",
174
-    "address_phone_number" => "9874152",
175
-    "cached_lat"           => 38.176067,
176
-    "cached_lng"           => -85.824638,
177
-    "curbside_lat"         => 38.176067,
178
-    "curbside_lng"         => -85.824638,
179
-    "address_city"         => "Louisville",
180
-    "address_custom_data"  => array(
181
-        "scheduled"   => "yes",
182
-        "serice type" => "appliance"
183
-    ),
184
-    "schedule" => array(
185
-        "enabled" => true,
186
-        "mode"    => "daily",
187
-        "daily"   => array("every" => 1)
188
-    ),
189
-    "schedule_blacklist" => array("2017-02-24","2017-02-25"),
190
-    "service_time"       => 300
168
+	"address_1"            => "4629 HILLSIDE DRIVE, Louisville, KY, 40216",
169
+	"address_alias"        => "4629 HILLSIDE DRIVE 40216",
170
+	"address_group"        => "Scheduled daily",
171
+	"first_name"           => "Kim",
172
+	"last_name"            => "Shandor",
173
+	"address_email"        => "[email protected]",
174
+	"address_phone_number" => "9874152",
175
+	"cached_lat"           => 38.176067,
176
+	"cached_lng"           => -85.824638,
177
+	"curbside_lat"         => 38.176067,
178
+	"curbside_lng"         => -85.824638,
179
+	"address_city"         => "Louisville",
180
+	"address_custom_data"  => array(
181
+		"scheduled"   => "yes",
182
+		"serice type" => "appliance"
183
+	),
184
+	"schedule" => array(
185
+		"enabled" => true,
186
+		"mode"    => "daily",
187
+		"daily"   => array("every" => 1)
188
+	),
189
+	"schedule_blacklist" => array("2017-02-24","2017-02-25"),
190
+	"service_time"       => 300
191 191
 ));
192 192
 
193 193
 $abContacts5 = new AddressBookLocation();
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Route;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         "mode"    => "weekly",
62 62
         "weekly"  => array(
63 63
             "every"    => 1,
64
-            "weekdays" => array(1,2,3,4,5)
64
+            "weekdays" => array(1, 2, 3, 4, 5)
65 65
         )
66 66
     )),
67 67
     "service_time" => 600
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         "monthly" => array(
102 102
             "every" => 1,
103 103
             "mode"  => "dates",
104
-            "dates" => array(20,22,23,24,25)
104
+            "dates" => array(20, 22, 23, 24, 25)
105 105
         )
106 106
     )),
107 107
     "service_time" => 750,
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         "mode"    => "daily",
187 187
         "daily"   => array("every" => 1)
188 188
     ),
189
-    "schedule_blacklist" => array("2017-02-24","2017-02-25"),
189
+    "schedule_blacklist" => array("2017-02-24", "2017-02-25"),
190 190
     "service_time"       => 300
191 191
 ));
192 192
 
Please login to merge, or discard this patch.
examples/AddressBook/SearchRoutedLocations.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -26,4 +26,4 @@  discard block
 block discarded – undo
26 26
 
27 27
 assert(isset($abcResult['results']) && isset($abcResult['total']), "Cannot done search for the locations");
28 28
 
29
-echo "Was found " . $abcResult['total'] . " routed locations";
29
+echo "Was found ".$abcResult['total']." routed locations";
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 // Example refers to the process of searching for the routed locations 
18 18
 
19 19
 $params = array(
20
-    'offset'  => 0,
21
-    'limit'   => 5,
22
-    'display' => 'routed'
20
+	'offset'  => 0,
21
+	'limit'   => 5,
22
+	'display' => 'routed'
23 23
 );
24 24
 
25 25
 $abcResult = $ablocation->searchRoutedLocation($params);
Please login to merge, or discard this patch.
examples/AddressBook/AddAddressBookLocation.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 Route4Me::setApiKey('11111111111111111111111111111111');
12 12
 
13 13
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
14
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
15
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
16
-    "cached_lat"  => 38.024654,
17
-    "cached_lng"  => -77.338814
14
+	"first_name"  => "Test FirstName ".strval(rand(10000,99999)),
15
+	"address_1"   => "Test Address1 ".strval(rand(10000,99999)),
16
+	"cached_lat"  => 38.024654,
17
+	"cached_lng"  => -77.338814
18 18
 ));
19 19
 
20 20
 $abContacts = new AddressBookLocation();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Route;
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 Route4Me::setApiKey('11111111111111111111111111111111');
12 12
 
13 13
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
14
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
15
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
14
+    "first_name"  => "Test FirstName ".strval(rand(10000, 99999)),
15
+    "address_1"   => "Test Address1 ".strval(rand(10000, 99999)),
16 16
     "cached_lat"  => 38.024654,
17 17
     "cached_lng"  => -77.338814
18 18
 ));
Please login to merge, or discard this patch.
examples/AddressBook/UpdateAddressBookLocation.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
16
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
18
-    "cached_lat"  => 38.024654,
19
-    "cached_lng"  => -77.338814
16
+	"first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
+	"address_1"   => "Test Address1 ".strval(rand(10000,99999)),
18
+	"cached_lat"  => 38.024654,
19
+	"cached_lng"  => -77.338814
20 20
 ));
21 21
 
22 22
 $abLocation = new AddressBookLocation();
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 assert(isset($abcResult['address_id']), "Cannot create an address book location. <br><br>");
29 29
 
30 30
 if (isset($abcResult["address_id"])) {
31
-    $address_id = $abcResult["address_id"];
31
+	$address_id = $abcResult["address_id"];
32 32
 }
33 33
 
34 34
 assert($address_id != -1, "Cannot create an address book location. <br><br>");
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 Route4Me::setApiKey('11111111111111111111111111111111');
14 14
 
15 15
 $AdressBookLocationParameters = AddressBookLocation::fromArray(array(
16
-    "first_name"  => "Test FirstName ".strval(rand(10000,99999)),
17
-    "address_1"   => "Test Address1 ".strval(rand(10000,99999)),
16
+    "first_name"  => "Test FirstName ".strval(rand(10000, 99999)),
17
+    "address_1"   => "Test Address1 ".strval(rand(10000, 99999)),
18 18
     "cached_lat"  => 38.024654,
19 19
     "cached_lng"  => -77.338814
20 20
 ));
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
     $address_id = $abcResult["address_id"];
32 32
 }
33 33
 
34
-assert($address_id != -1, "Cannot create an address book location. <br><br>");
34
+assert($address_id!=-1, "Cannot create an address book location. <br><br>");
35 35
 
36
-echo "Address Book Location with <b>address_id = ".strval($address_id)."</b> and <b>first_name = " . $abcResult['first_name'] . "</b> was successfully added<br>";
36
+echo "Address Book Location with <b>address_id = ".strval($address_id)."</b> and <b>first_name = ".$abcResult['first_name']."</b> was successfully added<br>";
37 37
  
38 38
 $abcResult["first_name"] = "Test Firstname Updated";
39 39
 
@@ -41,6 +41,6 @@  discard block
 block discarded – undo
41 41
 
42 42
 assert(isset($abcResult['first_name']), "Cannot update the address book location. <br><br>");
43 43
 
44
-assert($abcResult['first_name'] == 'Test Firstname Updated', "Cannot update the address book location. <br><br>");
44
+assert($abcResult['first_name']=='Test Firstname Updated', "Cannot update the address book location. <br><br>");
45 45
 
46
-echo "The field <b>first_name</b> in the address book location <b>" . $address_id . "</b> was update to <b>Test Firstname Updated</b> successfuly <br>"; 
46
+echo "The field <b>first_name</b> in the address book location <b>".$address_id."</b> was update to <b>Test Firstname Updated</b> successfuly <br>"; 
Please login to merge, or discard this patch.
examples/AddressBook/AddressBookLocationSearch.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 $ablocation = new AddressBookLocation();
15 15
 
16 16
 $params = array(
17
-    "query"  => "David",
18
-    "fields" => "first_name,last_name,address_email, address_alias, address_1",
19
-    "offset" => 0,
20
-    "limit"  => 20,
17
+	"query"  => "David",
18
+	"fields" => "first_name,last_name,address_email, address_alias, address_1",
19
+	"offset" => 0,
20
+	"limit"  => 20,
21 21
 );
22 22
 
23 23
 $abcResult = $ablocation->searchRoutedLocation($params);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -22,6 +22,6 @@  discard block
 block discarded – undo
22 22
 
23 23
 $abcResult = $ablocation->searchRoutedLocation($params);
24 24
 
25
-$results = $ablocation->getValue($abcResult,"results");
25
+$results = $ablocation->getValue($abcResult, "results");
26 26
 
27 27
 Route4Me::simplePrint($results);
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocation.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 
@@ -25,6 +25,6 @@  discard block
 block discarded – undo
25 25
 $addressID = $randomLocation["address_id"];
26 26
 $abcResult = $abLocation->getAddressBookLocation($addressID);
27 27
 
28
-$results = $abLocation->getValue($abcResult,"results");
28
+$results = $abLocation->getValue($abcResult, "results");
29 29
 
30 30
 Route4Me::simplePrint($results);
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 // Get reandom address book location
15 15
 $AdressBookLocationParameters = array(
16
-        "limit"     => 30,
17
-        "offset"    => 0
18
-    );
16
+		"limit"     => 30,
17
+		"offset"    => 0
18
+	);
19 19
 
20 20
 $randomLocation = $abLocation->getRandomAddressBookLocation($AdressBookLocationParameters);
21 21
 
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocations.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 // Example refers to getting the address book locations
14 14
 
15 15
 $AdressBookLocationParameters = array(
16
-    "limit"   => 30,
17
-    "offset"  => 0
16
+	"limit"   => 30,
17
+	"offset"  => 0
18 18
 );
19 19
 
20 20
 $abContacts = new AddressBookLocation();
@@ -25,5 +25,5 @@  discard block
 block discarded – undo
25 25
 
26 26
 foreach ($results as $result) {
27 27
 	Route4Me::simplePrint($result);
28
-    echo "<br>";
28
+	echo "<br>";
29 29
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\Route;
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 $abcResults = $abContacts->getAddressBookLocations($AdressBookLocationParameters);
23 23
 
24
-$results = $abContacts->getValue($abcResults,"results");
24
+$results = $abContacts->getValue($abcResults, "results");
25 25
 
26 26
 foreach ($results as $result) {
27 27
 	Route4Me::simplePrint($result);
Please login to merge, or discard this patch.