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 ( d9a634...e591c7 )
by Juan Jose
07:17 queued 16s
created
src/Route4Me/V5/AddressBook/AssignedTo.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -13,39 +13,39 @@
 block discarded – undo
13 13
  */
14 14
 class AssignedTo extends Common
15 15
 {
16
-    /**
17
-     * A member the address assigned to.
18
-     * @example 2
19
-     */
20
-    public ?int $member_id = null;
21
-
22
-    /**
23
-     * Member first name.
24
-     * @example 'John'
25
-     */
26
-    public ?string $member_first_name = null;
27
-
28
-    /**
29
-     * Member last name.
30
-     * @example 'Doe'
31
-     */
32
-    public ?string $member_last_name = null;
33
-
34
-    /**
35
-     * Member email.
36
-     */
37
-    public ?string $member_email = null;
38
-
39
-    /**
40
-     * The assignment is valid until to.
41
-     * @example '2019-12-23T09:31:38+00:00'
42
-     */
43
-    public ?string $until = null;
44
-
45
-    public function __construct(?array $params = null)
46
-    {
47
-        if ($params !== null) {
48
-            $this->fillFromArray($params);
49
-        }
50
-    }
16
+	/**
17
+	 * A member the address assigned to.
18
+	 * @example 2
19
+	 */
20
+	public ?int $member_id = null;
21
+
22
+	/**
23
+	 * Member first name.
24
+	 * @example 'John'
25
+	 */
26
+	public ?string $member_first_name = null;
27
+
28
+	/**
29
+	 * Member last name.
30
+	 * @example 'Doe'
31
+	 */
32
+	public ?string $member_last_name = null;
33
+
34
+	/**
35
+	 * Member email.
36
+	 */
37
+	public ?string $member_email = null;
38
+
39
+	/**
40
+	 * The assignment is valid until to.
41
+	 * @example '2019-12-23T09:31:38+00:00'
42
+	 */
43
+	public ?string $until = null;
44
+
45
+	public function __construct(?array $params = null)
46
+	{
47
+		if ($params !== null) {
48
+			$this->fillFromArray($params);
49
+		}
50
+	}
51 51
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function __construct(?array $params = null)
37 37
     {
38
-        if ($params !== null) {
38
+        if ($params!==null) {
39 39
             $this->fillFromArray($params);
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/UpdateAddress.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
  */
15 15
 class UpdateAddress extends ResponseAddress
16 16
 {
17
-    /**
18
-     * @param int $service_time            - The route Address Line 1 or array of Address's values.
19
-     */
20
-    public function __construct(int $service_time)
21
-    {
22
-        $this->service_time = $service_time;
23
-    }
17
+	/**
18
+	 * @param int $service_time            - The route Address Line 1 or array of Address's values.
19
+	 */
20
+	public function __construct(int $service_time)
21
+	{
22
+		$this->service_time = $service_time;
23
+	}
24 24
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/ResponseClustering.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -14,37 +14,37 @@
 block discarded – undo
14 14
  */
15 15
 class ResponseClustering extends Common
16 16
 {
17
-    /**
18
-     * An array of the address clusters.
19
-     * @var Cluster[]
20
-     */
21
-    public ?array $clusters = null;
17
+	/**
18
+	 * An array of the address clusters.
19
+	 * @var Cluster[]
20
+	 */
21
+	public ?array $clusters = null;
22 22
 
23
-    /**
24
-     * Total quantity of the address Clusters that match the query.
25
-     * @example 1
26
-     */
27
-    public ?int $total = null;
23
+	/**
24
+	 * Total quantity of the address Clusters that match the query.
25
+	 * @example 1
26
+	 */
27
+	public ?int $total = null;
28 28
 
29
-    public function __construct(?array $params = null)
30
-    {
31
-        if ($params !== null) {
32
-            foreach ($this as $key => $value) {
33
-                if (isset($params[$key])) {
34
-                    if ($key === 'clusters') {
35
-                        $this->{$key} = array();
36
-                        foreach ($params[$key] as $clst_key => $clst_value) {
37
-                            if (is_array($clst_value)) {
38
-                                array_push($this->{$key}, new Cluster($clst_value));
39
-                            } elseif (is_object($clst_value) && $clst_value instanceof Cluster) {
40
-                                array_push($this->{$key}, $clst_value);
41
-                            }
42
-                        }
43
-                    } else {
44
-                        $this->{$key} = $params[$key];
45
-                    }
46
-                }
47
-            }
48
-        }
49
-    }
29
+	public function __construct(?array $params = null)
30
+	{
31
+		if ($params !== null) {
32
+			foreach ($this as $key => $value) {
33
+				if (isset($params[$key])) {
34
+					if ($key === 'clusters') {
35
+						$this->{$key} = array();
36
+						foreach ($params[$key] as $clst_key => $clst_value) {
37
+							if (is_array($clst_value)) {
38
+								array_push($this->{$key}, new Cluster($clst_value));
39
+							} elseif (is_object($clst_value) && $clst_value instanceof Cluster) {
40
+								array_push($this->{$key}, $clst_value);
41
+							}
42
+						}
43
+					} else {
44
+						$this->{$key} = $params[$key];
45
+					}
46
+				}
47
+			}
48
+		}
49
+	}
50 50
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
     public function __construct(?array $params = null)
30 30
     {
31
-        if ($params !== null) {
31
+        if ($params!==null) {
32 32
             foreach ($this as $key => $value) {
33 33
                 if (isset($params[$key])) {
34
-                    if ($key === 'clusters') {
34
+                    if ($key==='clusters') {
35 35
                         $this->{$key} = array();
36 36
                         foreach ($params[$key] as $clst_key => $clst_value) {
37 37
                             if (is_array($clst_value)) {
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/ResponseAddress.php 2 patches
Indentation   +275 added lines, -275 removed lines patch added patch discarded remove patch
@@ -15,279 +15,279 @@
 block discarded – undo
15 15
  */
16 16
 class ResponseAddress extends Common
17 17
 {
18
-    /**
19
-     * Time when the contact was created.
20
-     * @example 1627120286
21
-     */
22
-    public ?int $created_timestamp = null;
23
-
24
-    /**
25
-     * Unique ID of the address.
26
-     * @example 1
27
-     */
28
-    public ?int $address_id = null;
29
-
30
-    /**
31
-     * A group the contact belongs.
32
-     */
33
-    public ?string $address_group = null;
34
-
35
-    /**
36
-     * Address group.
37
-     * @example 'Jenkins Ways'
38
-     */
39
-    public ?string $address_alias = null;
40
-
41
-    /**
42
-     * The route Address Line 1.
43
-     * @example '999 Aurelio Summit, Jamirtown, CO 52979-8465'
44
-     */
45
-    public ?string $address_1 = null;
46
-
47
-    /**
48
-     * The route Address Line 2 which is not used for geocoding.
49
-     */
50
-    public ?string $address_2 = null;
51
-
52
-    /**
53
-     * A member the address assigned to.
54
-     * @example 1
55
-     */
56
-    public ?int $member_id = null;
57
-
58
-    /**
59
-     * The first name of the receiving address.
60
-     * @example 'Keyon'
61
-     */
62
-    public ?string $first_name = null;
63
-
64
-    /**
65
-     * The last name of the receiving party.
66
-     * @example 'Will'
67
-     */
68
-    public ?string $last_name = null;
69
-
70
-    /**
71
-     * The contact's email.
72
-     */
73
-    public ?string $address_email = null;
74
-
75
-    /**
76
-     * The contact's phone number.
77
-     */
78
-    public ?string $address_phone_number = null;
79
-
80
-    /**
81
-     * The city the address is located in.
82
-     */
83
-    public ?string $address_city = null;
84
-
85
-    /**
86
-     * The state the address is located in.
87
-     * @example '10'
88
-     */
89
-    public ?string $address_state_id = null;
90
-
91
-    /**
92
-     * The country the address is located in.
93
-     * @example '223'
94
-     */
95
-    public ?string $address_country_id = null;
96
-
97
-    /**
98
-     * The zip code the address is located in.
99
-     */
100
-    public ?string $address_zip = null;
101
-
102
-    /**
103
-     * A latitude of the contact's cached position.
104
-     * @example -79.102999
105
-     */
106
-    public ?float $cached_lat = null;
107
-
108
-    /**
109
-     * A longitude of the contact's cached position.
110
-     * @example -162.156663
111
-     */
112
-    public ?float $cached_lng = null;
113
-
114
-    /**
115
-     * A latitude of the contact's curbside.
116
-     * @example -79.102999
117
-     */
118
-    public ?float $curbside_lat = null;
119
-
120
-    /**
121
-     * A longitude of the contact's curbside.
122
-     * @example -162.156663
123
-     */
124
-    public ?float $curbside_lng = null;
125
-
126
-    /**
127
-     * An array of the contact's custom field-value pairs.
128
-     * @example ['custom_data_key' => 'custom_data_value']
129
-     */
130
-    public ?array $address_custom_data = null;
131
-
132
-    /**
133
-     * Array of the trip schedules to a location.
134
-     * @var Schedule[]
135
-     */
136
-    public ?array $schedule = null;
137
-
138
-    /**
139
-     * Array of the dates, which should be excluded from a trip schedule to a location.
140
-     * Also can be a date string with the 'YYYY-MM-DD' format.
141
-     * @var string|string[]
142
-     * @example ['2019-12-12']
143
-     */
144
-    public $schedule_blacklist = null;
145
-
146
-    /**
147
-     * Number of the routes containing the contact.
148
-     */
149
-    public ?int $in_route_count = null;
150
-
151
-    /**
152
-     * How many times visited the contact.
153
-     */
154
-    public ?int $visited_count = null;
155
-
156
-    /**
157
-     * When the contact was last visited.
158
-     */
159
-    public ?int $last_visited_timestamp = null;
160
-
161
-    /**
162
-     * When the contact was last routed.
163
-     */
164
-    public ?int $last_routed_timestamp = null;
165
-
166
-    /**
167
-     * Start of the contact's local time window.
168
-     */
169
-    public ?int $local_time_window_start = null;
170
-
171
-    /**
172
-     * End of the contact's local time window.
173
-     */
174
-    public ?int $local_time_window_end = null;
175
-
176
-    /**
177
-     * Start of the contact's second local time window.
178
-     */
179
-    public ?int $local_time_window_start_2 = null;
180
-
181
-    /**
182
-     * End of the contact's second local time window.
183
-     */
184
-    public ?int $local_time_window_end_2 = null;
185
-
186
-    /**
187
-     * The service time at the contact's address.
188
-     */
189
-    public ?int $service_time = null;
190
-
191
-    /**
192
-     * The contact's local timezone.
193
-     */
194
-    public ?string $local_timezone_string = null;
195
-
196
-    /**
197
-     * The contact's color on the map.
198
-     * @example '000000'
199
-     */
200
-    public ?string $color = null;
201
-
202
-    /**
203
-     * The contact's icon on the map.
204
-     */
205
-    public ?string $address_icon = null;
206
-
207
-    /**
208
-     * The contact's stop type.
209
-     * String array, available types: 'DELIVERY', 'PICKUP',
210
-     *   'BREAK', 'MEETUP', 'SERVICE', 'VISIT', 'DRIVEBY'
211
-     */
212
-    public ?string $address_stop_type = null;
213
-
214
-    /**
215
-     * The cubic volume of the cargo being delivered or picked up at the address.
216
-     */
217
-    public ?float $address_cube = null;
218
-
219
-    /**
220
-     * The item quantity of the cargo being delivered or picked up at the address.
221
-     */
222
-    public ?float $address_pieces = null;
223
-
224
-    /**
225
-     * The reference number of the address.
226
-     */
227
-    public ?string $address_reference_no = null;
228
-
229
-    /**
230
-     * The total revenue for the address.
231
-     */
232
-    public ?float $address_revenue = null;
233
-
234
-    /**
235
-     * Weight of the cargo being delivered or picked up at the address.
236
-     */
237
-    public ?float $address_weight = null;
238
-
239
-    /**
240
-     * If present, the priority will sequence addresses in all the optimal routes so that
241
-     * higher priority addresses are general at the beginning of the route sequence.
242
-     * 0 is the highest priority, n has higher priority than n + 1
243
-     */
244
-    public ?int $address_priority = null;
245
-
246
-    /**
247
-     * The customer purchase order for the address.
248
-     */
249
-    public ?string $address_customer_po = null;
250
-
251
-    /**
252
-     * If true, the address is eligible to pickup.
253
-     */
254
-    public ?bool $eligible_pickup = null;
255
-
256
-    /**
257
-     * If true, the addrss is eligible to depot.
258
-     */
259
-    public ?bool $eligible_depot = null;
260
-
261
-    /**
262
-     * If true, the addrss is eligible to depot.
263
-     */
264
-    public ?AssignedTo $assigned_to = null;
265
-
266
-    public function __construct(?array $params = null)
267
-    {
268
-        if ($params !== null) {
269
-            foreach ($this as $key => $value) {
270
-                if (isset($params[$key])) {
271
-                    if ($key === 'schedule') {
272
-                        $this->{$key} = array();
273
-                        foreach ($params[$key] as $si_key => $si_value) {
274
-                            if (is_array($si_value)) {
275
-                                array_push($this->{$key}, new ScheduleItem($si_value));
276
-                            } elseif (is_object($si_value) && $si_value instanceof ScheduleItem) {
277
-                                array_push($this->{$key}, $si_value);
278
-                            }
279
-                        }
280
-                    } elseif ($key === 'assigned_to') {
281
-                        if (is_array($params[$key])) {
282
-                            $this->{$key} = new AssignedTo($params[$key]);
283
-                        } elseif (is_object($params[$key]) && $params[$key] instanceof AssignedTo) {
284
-                            $this->{$key} = $params[$key];
285
-                        }
286
-                    } else {
287
-                        $this->{$key} = $params[$key];
288
-                    }
289
-                }
290
-            }
291
-        }
292
-    }
18
+	/**
19
+	 * Time when the contact was created.
20
+	 * @example 1627120286
21
+	 */
22
+	public ?int $created_timestamp = null;
23
+
24
+	/**
25
+	 * Unique ID of the address.
26
+	 * @example 1
27
+	 */
28
+	public ?int $address_id = null;
29
+
30
+	/**
31
+	 * A group the contact belongs.
32
+	 */
33
+	public ?string $address_group = null;
34
+
35
+	/**
36
+	 * Address group.
37
+	 * @example 'Jenkins Ways'
38
+	 */
39
+	public ?string $address_alias = null;
40
+
41
+	/**
42
+	 * The route Address Line 1.
43
+	 * @example '999 Aurelio Summit, Jamirtown, CO 52979-8465'
44
+	 */
45
+	public ?string $address_1 = null;
46
+
47
+	/**
48
+	 * The route Address Line 2 which is not used for geocoding.
49
+	 */
50
+	public ?string $address_2 = null;
51
+
52
+	/**
53
+	 * A member the address assigned to.
54
+	 * @example 1
55
+	 */
56
+	public ?int $member_id = null;
57
+
58
+	/**
59
+	 * The first name of the receiving address.
60
+	 * @example 'Keyon'
61
+	 */
62
+	public ?string $first_name = null;
63
+
64
+	/**
65
+	 * The last name of the receiving party.
66
+	 * @example 'Will'
67
+	 */
68
+	public ?string $last_name = null;
69
+
70
+	/**
71
+	 * The contact's email.
72
+	 */
73
+	public ?string $address_email = null;
74
+
75
+	/**
76
+	 * The contact's phone number.
77
+	 */
78
+	public ?string $address_phone_number = null;
79
+
80
+	/**
81
+	 * The city the address is located in.
82
+	 */
83
+	public ?string $address_city = null;
84
+
85
+	/**
86
+	 * The state the address is located in.
87
+	 * @example '10'
88
+	 */
89
+	public ?string $address_state_id = null;
90
+
91
+	/**
92
+	 * The country the address is located in.
93
+	 * @example '223'
94
+	 */
95
+	public ?string $address_country_id = null;
96
+
97
+	/**
98
+	 * The zip code the address is located in.
99
+	 */
100
+	public ?string $address_zip = null;
101
+
102
+	/**
103
+	 * A latitude of the contact's cached position.
104
+	 * @example -79.102999
105
+	 */
106
+	public ?float $cached_lat = null;
107
+
108
+	/**
109
+	 * A longitude of the contact's cached position.
110
+	 * @example -162.156663
111
+	 */
112
+	public ?float $cached_lng = null;
113
+
114
+	/**
115
+	 * A latitude of the contact's curbside.
116
+	 * @example -79.102999
117
+	 */
118
+	public ?float $curbside_lat = null;
119
+
120
+	/**
121
+	 * A longitude of the contact's curbside.
122
+	 * @example -162.156663
123
+	 */
124
+	public ?float $curbside_lng = null;
125
+
126
+	/**
127
+	 * An array of the contact's custom field-value pairs.
128
+	 * @example ['custom_data_key' => 'custom_data_value']
129
+	 */
130
+	public ?array $address_custom_data = null;
131
+
132
+	/**
133
+	 * Array of the trip schedules to a location.
134
+	 * @var Schedule[]
135
+	 */
136
+	public ?array $schedule = null;
137
+
138
+	/**
139
+	 * Array of the dates, which should be excluded from a trip schedule to a location.
140
+	 * Also can be a date string with the 'YYYY-MM-DD' format.
141
+	 * @var string|string[]
142
+	 * @example ['2019-12-12']
143
+	 */
144
+	public $schedule_blacklist = null;
145
+
146
+	/**
147
+	 * Number of the routes containing the contact.
148
+	 */
149
+	public ?int $in_route_count = null;
150
+
151
+	/**
152
+	 * How many times visited the contact.
153
+	 */
154
+	public ?int $visited_count = null;
155
+
156
+	/**
157
+	 * When the contact was last visited.
158
+	 */
159
+	public ?int $last_visited_timestamp = null;
160
+
161
+	/**
162
+	 * When the contact was last routed.
163
+	 */
164
+	public ?int $last_routed_timestamp = null;
165
+
166
+	/**
167
+	 * Start of the contact's local time window.
168
+	 */
169
+	public ?int $local_time_window_start = null;
170
+
171
+	/**
172
+	 * End of the contact's local time window.
173
+	 */
174
+	public ?int $local_time_window_end = null;
175
+
176
+	/**
177
+	 * Start of the contact's second local time window.
178
+	 */
179
+	public ?int $local_time_window_start_2 = null;
180
+
181
+	/**
182
+	 * End of the contact's second local time window.
183
+	 */
184
+	public ?int $local_time_window_end_2 = null;
185
+
186
+	/**
187
+	 * The service time at the contact's address.
188
+	 */
189
+	public ?int $service_time = null;
190
+
191
+	/**
192
+	 * The contact's local timezone.
193
+	 */
194
+	public ?string $local_timezone_string = null;
195
+
196
+	/**
197
+	 * The contact's color on the map.
198
+	 * @example '000000'
199
+	 */
200
+	public ?string $color = null;
201
+
202
+	/**
203
+	 * The contact's icon on the map.
204
+	 */
205
+	public ?string $address_icon = null;
206
+
207
+	/**
208
+	 * The contact's stop type.
209
+	 * String array, available types: 'DELIVERY', 'PICKUP',
210
+	 *   'BREAK', 'MEETUP', 'SERVICE', 'VISIT', 'DRIVEBY'
211
+	 */
212
+	public ?string $address_stop_type = null;
213
+
214
+	/**
215
+	 * The cubic volume of the cargo being delivered or picked up at the address.
216
+	 */
217
+	public ?float $address_cube = null;
218
+
219
+	/**
220
+	 * The item quantity of the cargo being delivered or picked up at the address.
221
+	 */
222
+	public ?float $address_pieces = null;
223
+
224
+	/**
225
+	 * The reference number of the address.
226
+	 */
227
+	public ?string $address_reference_no = null;
228
+
229
+	/**
230
+	 * The total revenue for the address.
231
+	 */
232
+	public ?float $address_revenue = null;
233
+
234
+	/**
235
+	 * Weight of the cargo being delivered or picked up at the address.
236
+	 */
237
+	public ?float $address_weight = null;
238
+
239
+	/**
240
+	 * If present, the priority will sequence addresses in all the optimal routes so that
241
+	 * higher priority addresses are general at the beginning of the route sequence.
242
+	 * 0 is the highest priority, n has higher priority than n + 1
243
+	 */
244
+	public ?int $address_priority = null;
245
+
246
+	/**
247
+	 * The customer purchase order for the address.
248
+	 */
249
+	public ?string $address_customer_po = null;
250
+
251
+	/**
252
+	 * If true, the address is eligible to pickup.
253
+	 */
254
+	public ?bool $eligible_pickup = null;
255
+
256
+	/**
257
+	 * If true, the addrss is eligible to depot.
258
+	 */
259
+	public ?bool $eligible_depot = null;
260
+
261
+	/**
262
+	 * If true, the addrss is eligible to depot.
263
+	 */
264
+	public ?AssignedTo $assigned_to = null;
265
+
266
+	public function __construct(?array $params = null)
267
+	{
268
+		if ($params !== null) {
269
+			foreach ($this as $key => $value) {
270
+				if (isset($params[$key])) {
271
+					if ($key === 'schedule') {
272
+						$this->{$key} = array();
273
+						foreach ($params[$key] as $si_key => $si_value) {
274
+							if (is_array($si_value)) {
275
+								array_push($this->{$key}, new ScheduleItem($si_value));
276
+							} elseif (is_object($si_value) && $si_value instanceof ScheduleItem) {
277
+								array_push($this->{$key}, $si_value);
278
+							}
279
+						}
280
+					} elseif ($key === 'assigned_to') {
281
+						if (is_array($params[$key])) {
282
+							$this->{$key} = new AssignedTo($params[$key]);
283
+						} elseif (is_object($params[$key]) && $params[$key] instanceof AssignedTo) {
284
+							$this->{$key} = $params[$key];
285
+						}
286
+					} else {
287
+						$this->{$key} = $params[$key];
288
+					}
289
+				}
290
+			}
291
+		}
292
+	}
293 293
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -265,10 +265,10 @@  discard block
 block discarded – undo
265 265
 
266 266
     public function __construct(?array $params = null)
267 267
     {
268
-        if ($params !== null) {
268
+        if ($params!==null) {
269 269
             foreach ($this as $key => $value) {
270 270
                 if (isset($params[$key])) {
271
-                    if ($key === 'schedule') {
271
+                    if ($key==='schedule') {
272 272
                         $this->{$key} = array();
273 273
                         foreach ($params[$key] as $si_key => $si_value) {
274 274
                             if (is_array($si_value)) {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                                 array_push($this->{$key}, $si_value);
278 278
                             }
279 279
                         }
280
-                    } elseif ($key === 'assigned_to') {
280
+                    } elseif ($key==='assigned_to') {
281 281
                         if (is_array($params[$key])) {
282 282
                             $this->{$key} = new AssignedTo($params[$key]);
283 283
                         } elseif (is_object($params[$key]) && $params[$key] instanceof AssignedTo) {
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/ResponsePagination.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,26 +13,26 @@
 block discarded – undo
13 13
  */
14 14
 class ResponsePagination extends ResponseAll
15 15
 {
16
-    /**
17
-     * Current page in the adddress book collection.
18
-     * @example 1
19
-     */
20
-    public ?int $current_page = null;
16
+	/**
17
+	 * Current page in the adddress book collection.
18
+	 * @example 1
19
+	 */
20
+	public ?int $current_page = null;
21 21
 
22
-    /**
23
-     * Last page in the adddress book collection.
24
-     * @example 3
25
-     */
26
-    public ?int $last_page = null;
22
+	/**
23
+	 * Last page in the adddress book collection.
24
+	 * @example 3
25
+	 */
26
+	public ?int $last_page = null;
27 27
 
28
-    /**
29
-     * Adddress book number per page.
30
-     * @example 30
31
-     */
32
-    public ?int $per_page = null;
28
+	/**
29
+	 * Adddress book number per page.
30
+	 * @example 30
31
+	 */
32
+	public ?int $per_page = null;
33 33
 
34
-    public function __construct(?array $params = null)
35
-    {
36
-        parent::__construct($params);
37
-    }
34
+	public function __construct(?array $params = null)
35
+	{
36
+		parent::__construct($params);
37
+	}
38 38
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/ResponseCluster.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -15,33 +15,33 @@
 block discarded – undo
15 15
  */
16 16
 class ResponseCluster extends Common
17 17
 {
18
-    /**
19
-     * Cluster of addresses
20
-     */
21
-    public ?Cluster $cluster = null;
18
+	/**
19
+	 * Cluster of addresses
20
+	 */
21
+	public ?Cluster $cluster = null;
22 22
 
23
-    /**
24
-     * A number of the returned addresses.
25
-     * @example 1
26
-     */
27
-    public ?int $address_count = null;
23
+	/**
24
+	 * A number of the returned addresses.
25
+	 * @example 1
26
+	 */
27
+	public ?int $address_count = null;
28 28
 
29
-    public function __construct(?array $params = null)
30
-    {
31
-        if ($params !== null) {
32
-            foreach ($this as $key => $value) {
33
-                if (isset($params[$key])) {
34
-                    if ($key === 'cluster') {
35
-                        if (is_array($params[$key])) {
36
-                            $this->{$key} = new Cluster($params[$key]);
37
-                        } elseif (is_object($params[$key]) && $params[$key] instanceof Cluster) {
38
-                            $this->{$key} = $params[$key];
39
-                        }
40
-                    } else {
41
-                        $this->{$key} = $params[$key];
42
-                    }
43
-                }
44
-            }
45
-        }
46
-    }
29
+	public function __construct(?array $params = null)
30
+	{
31
+		if ($params !== null) {
32
+			foreach ($this as $key => $value) {
33
+				if (isset($params[$key])) {
34
+					if ($key === 'cluster') {
35
+						if (is_array($params[$key])) {
36
+							$this->{$key} = new Cluster($params[$key]);
37
+						} elseif (is_object($params[$key]) && $params[$key] instanceof Cluster) {
38
+							$this->{$key} = $params[$key];
39
+						}
40
+					} else {
41
+						$this->{$key} = $params[$key];
42
+					}
43
+				}
44
+			}
45
+		}
46
+	}
47 47
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
     public function __construct(?array $params = null)
30 30
     {
31
-        if ($params !== null) {
31
+        if ($params!==null) {
32 32
             foreach ($this as $key => $value) {
33 33
                 if (isset($params[$key])) {
34
-                    if ($key === 'cluster') {
34
+                    if ($key==='cluster') {
35 35
                         if (is_array($params[$key])) {
36 36
                             $this->{$key} = new Cluster($params[$key]);
37 37
                         } elseif (is_object($params[$key]) && $params[$key] instanceof Cluster) {
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/Cluster.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -13,35 +13,35 @@
 block discarded – undo
13 13
  */
14 14
 class Cluster extends Common
15 15
 {
16
-    /**
17
-     * Geohash
18
-     * @example 1mr8h4r9
19
-     */
20
-    public ?string $geohash = null;
16
+	/**
17
+	 * Geohash
18
+	 * @example 1mr8h4r9
19
+	 */
20
+	public ?string $geohash = null;
21 21
 
22
-    /**
23
-     * Latitude
24
-     * @example -60.456132888793945
25
-     */
26
-    public ?float $lat = null;
22
+	/**
23
+	 * Latitude
24
+	 * @example -60.456132888793945
25
+	 */
26
+	public ?float $lat = null;
27 27
 
28
-    /**
29
-     * Longitude
30
-     * @example -60.456132888793945
31
-     */
32
-    public ?float $lng = null;
28
+	/**
29
+	 * Longitude
30
+	 * @example -60.456132888793945
31
+	 */
32
+	public ?float $lng = null;
33 33
 
34
-    /**
35
-     * Boundary box, array of pairs of floats.
36
-     * @var float[][]
37
-     * @example [[52.294921875, 5.2294921875], [52.3388671875, 5.2734375]]
38
-     */
39
-    public ?array $bbox = null;
34
+	/**
35
+	 * Boundary box, array of pairs of floats.
36
+	 * @var float[][]
37
+	 * @example [[52.294921875, 5.2294921875], [52.3388671875, 5.2734375]]
38
+	 */
39
+	public ?array $bbox = null;
40 40
 
41
-    public function __construct(?array $params = null)
42
-    {
43
-        if ($params !== null) {
44
-            $this->fillFromArray($params);
45
-        }
46
-    }
41
+	public function __construct(?array $params = null)
42
+	{
43
+		if ($params !== null) {
44
+			$this->fillFromArray($params);
45
+		}
46
+	}
47 47
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function __construct(?array $params = null)
37 37
     {
38
-        if ($params !== null) {
38
+        if ($params!==null) {
39 39
             $this->fillFromArray($params);
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/ScheduleItem.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -13,27 +13,27 @@
 block discarded – undo
13 13
  */
14 14
 class ScheduleItem extends Common
15 15
 {
16
-    /**
17
-     * If true, the schedule is enabled.
18
-     */
19
-    public ?bool $enable = null;
16
+	/**
17
+	 * If true, the schedule is enabled.
18
+	 */
19
+	public ?bool $enable = null;
20 20
 
21
-    /**
22
-     * Schedule mode.
23
-     * @example 'monthly'
24
-     */
25
-    public ?string $mode = null;
21
+	/**
22
+	 * Schedule mode.
23
+	 * @example 'monthly'
24
+	 */
25
+	public ?string $mode = null;
26 26
 
27
-    /**
28
-     * Monthly properties.
29
-     * @example ['every' => 1]
30
-     */
31
-    public ?array $monthly = null;
27
+	/**
28
+	 * Monthly properties.
29
+	 * @example ['every' => 1]
30
+	 */
31
+	public ?array $monthly = null;
32 32
 
33
-    public function __construct(?array $params = null)
34
-    {
35
-        if ($params !== null) {
36
-            $this->fillFromArray($params);
37
-        }
38
-    }
33
+	public function __construct(?array $params = null)
34
+	{
35
+		if ($params !== null) {
36
+			$this->fillFromArray($params);
37
+		}
38
+	}
39 39
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function __construct(?array $params = null)
37 37
     {
38
-        if ($params !== null) {
38
+        if ($params!==null) {
39 39
             $this->fillFromArray($params);
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
src/Route4Me/V5/AddressBook/Address.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -14,34 +14,34 @@
 block discarded – undo
14 14
  */
15 15
 class Address extends ResponseAddress
16 16
 {
17
-    /**
18
-     * @param array|string $params_or_address_1  - The route Address Line 1 or array of Address's values.
19
-     * @param float        $cached_lat           - A latitude of the contact's cached position.
20
-     * @param float        $cached_lng           - A longitude of the contact's cached position.
21
-     * @param string       $address_stop_type    - The contact's stop type. available types:
22
-     *                                             'DELIVERY', 'PICKUP', 'BREAK', 'MEETUP',
23
-     *                                             'SERVICE', 'VISIT', 'DRIVEBY'
24
-     */
25
-    public function __construct(
26
-        $params_or_address_1,
27
-        ?float $cached_lat = null,
28
-        ?float $cached_lng = null,
29
-        ?string $address_stop_type = null
30
-    ) {
31
-        if (is_array($params_or_address_1) && isset($params_or_address_1['address_1'])
32
-            && isset($params_or_address_1['cached_lat']) && isset($params_or_address_1['cached_lng'])
33
-            && isset($params_or_address_1['address_stop_type'])
34
-        ) {
35
-            parent::__construct($params_or_address_1);
36
-        } elseif (is_string($params_or_address_1) && $params_or_address_1 != ""
37
-            && !is_null($cached_lat) && !is_null($cached_lng) && !is_null($address_stop_type)
38
-        ) {
39
-            $this->address_1 = $params_or_address_1;
40
-            $this->cached_lat = $cached_lat;
41
-            $this->cached_lng = $cached_lng;
42
-            $this->address_stop_type = $address_stop_type;
43
-        } else {
44
-            throw new ApiError('The fields address_1, cached_lat, cached_lng, address_stop_type are required.');
45
-        }
46
-    }
17
+	/**
18
+	 * @param array|string $params_or_address_1  - The route Address Line 1 or array of Address's values.
19
+	 * @param float        $cached_lat           - A latitude of the contact's cached position.
20
+	 * @param float        $cached_lng           - A longitude of the contact's cached position.
21
+	 * @param string       $address_stop_type    - The contact's stop type. available types:
22
+	 *                                             'DELIVERY', 'PICKUP', 'BREAK', 'MEETUP',
23
+	 *                                             'SERVICE', 'VISIT', 'DRIVEBY'
24
+	 */
25
+	public function __construct(
26
+		$params_or_address_1,
27
+		?float $cached_lat = null,
28
+		?float $cached_lng = null,
29
+		?string $address_stop_type = null
30
+	) {
31
+		if (is_array($params_or_address_1) && isset($params_or_address_1['address_1'])
32
+			&& isset($params_or_address_1['cached_lat']) && isset($params_or_address_1['cached_lng'])
33
+			&& isset($params_or_address_1['address_stop_type'])
34
+		) {
35
+			parent::__construct($params_or_address_1);
36
+		} elseif (is_string($params_or_address_1) && $params_or_address_1 != ""
37
+			&& !is_null($cached_lat) && !is_null($cached_lng) && !is_null($address_stop_type)
38
+		) {
39
+			$this->address_1 = $params_or_address_1;
40
+			$this->cached_lat = $cached_lat;
41
+			$this->cached_lng = $cached_lng;
42
+			$this->address_stop_type = $address_stop_type;
43
+		} else {
44
+			throw new ApiError('The fields address_1, cached_lat, cached_lng, address_stop_type are required.');
45
+		}
46
+	}
47 47
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             && isset($params_or_address_1['address_stop_type'])
34 34
         ) {
35 35
             parent::__construct($params_or_address_1);
36
-        } elseif (is_string($params_or_address_1) && $params_or_address_1 != ""
36
+        } elseif (is_string($params_or_address_1) && $params_or_address_1!=""
37 37
             && !is_null($cached_lat) && !is_null($cached_lng) && !is_null($address_stop_type)
38 38
         ) {
39 39
             $this->address_1 = $params_or_address_1;
Please login to merge, or discard this patch.