@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | if (is_array($res_members) && isset($res_members['results'])) { |
29 | 29 | foreach ($res_members['results'] as $key => $value) { |
30 | - if ($value['OWNER_MEMBER_ID'] == 0) { |
|
30 | + if ($value['OWNER_MEMBER_ID']==0) { |
|
31 | 31 | self::$owner_member_id = $value['member_id']; |
32 | 32 | break; |
33 | 33 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $result = $team_mng->getUsers(); |
124 | 124 | |
125 | 125 | $this->assertIsArray($result); |
126 | - if (count($result) > 0) { |
|
126 | + if (count($result)>0) { |
|
127 | 127 | $this->assertInstanceOf(ResponseTeam::class, $result[0]); |
128 | 128 | } |
129 | 129 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | if (is_array($result)) { |
188 | 188 | foreach ($result as $key => $member) { |
189 | - if ($member->member_last_name == 'Pupkindzes') { |
|
189 | + if ($member->member_last_name=='Pupkindzes') { |
|
190 | 190 | $team_mng->delete($member->member_id); |
191 | 191 | } |
192 | 192 | } |
@@ -35,7 +35,7 @@ |
||
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 | } |
@@ -133,10 +133,10 @@ |
||
133 | 133 | |
134 | 134 | public function __construct(?array $params = null) |
135 | 135 | { |
136 | - if ($params !== null) { |
|
136 | + if ($params!==null) { |
|
137 | 137 | foreach ($this as $key => $value) { |
138 | 138 | if (isset($params[$key])) { |
139 | - if ($key === 'permissions') { |
|
139 | + if ($key==='permissions') { |
|
140 | 140 | $this->{$key} = array(); |
141 | 141 | foreach ($params[$key] as $perm_key => $perm_value) { |
142 | 142 | array_push($this->{$key}, new Permission($perm_value)); |
@@ -30,10 +30,10 @@ |
||
30 | 30 | |
31 | 31 | public function __construct(?array $params = null) |
32 | 32 | { |
33 | - if ($params !== null) { |
|
33 | + if ($params!==null) { |
|
34 | 34 | foreach ($this as $key => $value) { |
35 | 35 | if (isset($params[$key])) { |
36 | - if ($key === 'options') { |
|
36 | + if ($key==='options') { |
|
37 | 37 | $this->{$key} = array(); |
38 | 38 | foreach ($params[$key] as $opt_key => $opt_value) { |
39 | 39 | array_push($this->{$key}, new Option($opt_value)); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | public function getUser(int $userId) : ResponseTeam |
120 | 120 | { |
121 | 121 | return $this->toResponseTeam(Route4Me::makeRequst([ |
122 | - 'url' => Endpoint::TEAM_USERS . '/' . $userId, |
|
122 | + 'url' => Endpoint::TEAM_USERS.'/'.$userId, |
|
123 | 123 | 'method' => 'GET' |
124 | 124 | ])); |
125 | 125 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | public function delete(int $userId) : ResponseTeam |
137 | 137 | { |
138 | 138 | return $this->toResponseTeam(Route4Me::makeRequst([ |
139 | - 'url' => Endpoint::TEAM_USERS . '/' . $userId, |
|
139 | + 'url' => Endpoint::TEAM_USERS.'/'.$userId, |
|
140 | 140 | 'method' => 'DELETE' |
141 | 141 | ])); |
142 | 142 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | ]; |
196 | 196 | |
197 | 197 | return $this->toResponseTeam(Route4Me::makeRequst([ |
198 | - 'url' => Endpoint::TEAM_USERS . '/' . $userId, |
|
198 | + 'url' => Endpoint::TEAM_USERS.'/'.$userId, |
|
199 | 199 | 'method' => 'PATCH', |
200 | 200 | 'HTTPHEADER' => 'Content-Type: application/json', |
201 | 201 | 'body' => Route4Me::generateRequestParameters($allBodyFields, $params) |
@@ -14,51 +14,51 @@ discard block |
||
14 | 14 | |
15 | 15 | // <editor-fold defaultstate="collapsed" desc="region Routes"> |
16 | 16 | |
17 | - const Routes = self::MAIN_HOST . "/routes"; |
|
18 | - const RoutesDuplicate = self::MAIN_HOST . "/routes/duplicate"; |
|
19 | - const RoutesMerge = self::MAIN_HOST . "/routes/merge"; |
|
20 | - const RoutesPaginate = self::MAIN_HOST . "/routes/paginate"; |
|
21 | - const RoutesFallbackPaginate = self::MAIN_HOST . "/routes/fallback/paginate"; |
|
22 | - const RoutesFallbackDatatable = self::MAIN_HOST . "/routes/fallback/datatable"; |
|
23 | - const RoutesFallback = self::MAIN_HOST . "/routes/fallback"; |
|
24 | - const RoutesReindexCallback = self::MAIN_HOST . "/routes/reindex-callback"; |
|
25 | - const RoutesDatatable = self::MAIN_HOST . "/routes/datatable"; |
|
26 | - const RoutesDatatableConfig = self::MAIN_HOST . "/routes/datatable/config"; |
|
27 | - const RoutesDatatableConfigFallback = self::MAIN_HOST . "/routes/fallback/datatable/config"; |
|
17 | + const Routes = self::MAIN_HOST."/routes"; |
|
18 | + const RoutesDuplicate = self::MAIN_HOST."/routes/duplicate"; |
|
19 | + const RoutesMerge = self::MAIN_HOST."/routes/merge"; |
|
20 | + const RoutesPaginate = self::MAIN_HOST."/routes/paginate"; |
|
21 | + const RoutesFallbackPaginate = self::MAIN_HOST."/routes/fallback/paginate"; |
|
22 | + const RoutesFallbackDatatable = self::MAIN_HOST."/routes/fallback/datatable"; |
|
23 | + const RoutesFallback = self::MAIN_HOST."/routes/fallback"; |
|
24 | + const RoutesReindexCallback = self::MAIN_HOST."/routes/reindex-callback"; |
|
25 | + const RoutesDatatable = self::MAIN_HOST."/routes/datatable"; |
|
26 | + const RoutesDatatableConfig = self::MAIN_HOST."/routes/datatable/config"; |
|
27 | + const RoutesDatatableConfigFallback = self::MAIN_HOST."/routes/fallback/datatable/config"; |
|
28 | 28 | |
29 | 29 | // </editor-fold> |
30 | 30 | |
31 | 31 | // <editor-fold defaultstate="collapsed" desc="Team Users"> |
32 | 32 | |
33 | - const TEAM_USERS = self::MAIN_HOST . "/team/users"; |
|
34 | - const TEAM_USERS_BULK_INSERT = self::MAIN_HOST . "/team/bulk-insert"; |
|
35 | - const DriverReview = self::MAIN_HOST . "/driver-reviews"; |
|
33 | + const TEAM_USERS = self::MAIN_HOST."/team/users"; |
|
34 | + const TEAM_USERS_BULK_INSERT = self::MAIN_HOST."/team/bulk-insert"; |
|
35 | + const DriverReview = self::MAIN_HOST."/driver-reviews"; |
|
36 | 36 | |
37 | 37 | // </editor-fold> |
38 | 38 | |
39 | - const ACCOUNT_PROFILE = self::MAIN_HOST . "/profile-api"; |
|
39 | + const ACCOUNT_PROFILE = self::MAIN_HOST."/profile-api"; |
|
40 | 40 | |
41 | 41 | // <editor-fold defaultstate="collapsed" desc="Vehicles"> |
42 | 42 | |
43 | - const Vehicles = self::MAIN_HOST . "/vehicles"; |
|
44 | - const VehicleTemporary = self::MAIN_HOST . "/vehicles/assign"; |
|
45 | - const VehicleExecuteOrder = self::MAIN_HOST . "/vehicles/execute"; |
|
46 | - const VehicleLocation = self::MAIN_HOST . "/vehicles/location"; |
|
47 | - const VehicleProfiles = self::MAIN_HOST . "/vehicle-profiles"; |
|
48 | - const VehicleLicense = self::MAIN_HOST . "/vehicles/license"; |
|
49 | - const VehicleSearch = self::MAIN_HOST . "/vehicles/search"; |
|
50 | - |
|
51 | - const RECURRING_ROUTES = self::MAIN_HOST . "/recurring-routes"; |
|
52 | - const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST . "/recurring-routes/schedules"; |
|
53 | - const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST . "/recurring-routes/schedules/pagination"; |
|
54 | - const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST . "/recurring-routes/route-schedules"; |
|
43 | + const Vehicles = self::MAIN_HOST."/vehicles"; |
|
44 | + const VehicleTemporary = self::MAIN_HOST."/vehicles/assign"; |
|
45 | + const VehicleExecuteOrder = self::MAIN_HOST."/vehicles/execute"; |
|
46 | + const VehicleLocation = self::MAIN_HOST."/vehicles/location"; |
|
47 | + const VehicleProfiles = self::MAIN_HOST."/vehicle-profiles"; |
|
48 | + const VehicleLicense = self::MAIN_HOST."/vehicles/license"; |
|
49 | + const VehicleSearch = self::MAIN_HOST."/vehicles/search"; |
|
50 | + |
|
51 | + const RECURRING_ROUTES = self::MAIN_HOST."/recurring-routes"; |
|
52 | + const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST."/recurring-routes/schedules"; |
|
53 | + const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST."/recurring-routes/schedules/pagination"; |
|
54 | + const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST."/recurring-routes/route-schedules"; |
|
55 | 55 | const RECURRING_ROUTES_ROUTE_SCHEDULES_PAGINATION = |
56 | - self::MAIN_HOST . "/recurring-routes/route-schedules/pagination"; |
|
57 | - const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST . "/recurring-routes/route-schedules/replace"; |
|
58 | - const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST . "/recurring-routes/scheduled-routes/is-copy"; |
|
56 | + self::MAIN_HOST."/recurring-routes/route-schedules/pagination"; |
|
57 | + const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST."/recurring-routes/route-schedules/replace"; |
|
58 | + const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST."/recurring-routes/scheduled-routes/is-copy"; |
|
59 | 59 | const RECURRING_ROUTES_SCHEDULED_ROUTES_GET_COPIES = |
60 | - self::MAIN_HOST . "/recurring-routes/scheduled-routes/get-copies"; |
|
61 | - const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST . "/recurring-routes/master-routes"; |
|
60 | + self::MAIN_HOST."/recurring-routes/scheduled-routes/get-copies"; |
|
61 | + const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST."/recurring-routes/master-routes"; |
|
62 | 62 | |
63 | 63 | // </editor-fold> |
64 | 64 | |
@@ -67,44 +67,44 @@ discard block |
||
67 | 67 | const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
68 | 68 | |
69 | 69 | const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
70 | - const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
70 | + const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST."/connections/{connection_token}/vehicles"; |
|
71 | 71 | |
72 | - const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
73 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
74 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
72 | + const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST."/access-tokens"; |
|
73 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST."/access-token-schedules"; |
|
74 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST."/access-token-schedules/{schedule_id}/items"; |
|
75 | 75 | |
76 | - const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
77 | - const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
78 | - const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
76 | + const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST."/vehicle-groups"; |
|
77 | + const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST."/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
78 | + const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST."/vehicles/{vehicle_id}/{relation}"; |
|
79 | 79 | |
80 | - const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
81 | - const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
82 | - const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
83 | - const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
80 | + const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST."/info/members"; |
|
81 | + const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST."/info/vehicles"; |
|
82 | + const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST."/info/vehicle/{vehicle_id}/track"; |
|
83 | + const TELEMATICS_INFO_MODULES = self::STAGING_HOST."/info/members"; |
|
84 | 84 | |
85 | - const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
85 | + const TELEMATICS_ADDRESSES = self::STAGING_HOST."/addresses"; |
|
86 | 86 | |
87 | - const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
87 | + const TELEMATICS_Errors = self::STAGING_HOST."/errors"; |
|
88 | 88 | |
89 | - const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
90 | - const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
91 | - const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
89 | + const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST."/customers/{customer_id}/notifications"; |
|
90 | + const TELEMATICS_CUSTOMERS = self::STAGING_HOST."/customers"; |
|
91 | + const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST."/customers/{customer_id}"; |
|
92 | 92 | |
93 | - const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
94 | - const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
95 | - const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
96 | - const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
93 | + const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST."/notification-schedules/{notification_schedule_id}/items"; |
|
94 | + const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST."/notification-schedules"; |
|
95 | + const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST."/notification-schedules/{schedule_id}"; |
|
96 | + const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST."/one-time-notifications"; |
|
97 | 97 | |
98 | 98 | const TELEMATICS_MEMBER = self::STAGING_HOST; |
99 | 99 | |
100 | - const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
100 | + const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST."/user-activated-modules"; |
|
101 | 101 | |
102 | - const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
103 | - const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
104 | - const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
102 | + const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}"; |
|
103 | + const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles"; |
|
104 | + const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
105 | 105 | |
106 | - const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
107 | - const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
106 | + const TELEMATICS_VENDORS = self::STAGING_HOST."/vendors"; |
|
107 | + const TELEMATICS_VENDOR_ID = self::STAGING_HOST."/vendors/{vendor_id}"; |
|
108 | 108 | |
109 | 109 | // </editor-fold> |
110 | 110 | } |
111 | 111 | \ No newline at end of file |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | { |
35 | 35 | $method = isset($options['method']) ? $options['method'] : 'GET'; |
36 | 36 | $query = isset($options['query']) |
37 | - ? array_filter($options['query'], function ($x) { |
|
37 | + ? array_filter($options['query'], function($x) { |
|
38 | 38 | return !is_null($x); |
39 | 39 | }) : []; |
40 | 40 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $ch = curl_init(); |
58 | 58 | |
59 | 59 | $url = isset($options['url']) |
60 | - ? $options['url'] . '?' . http_build_query(array_merge( |
|
60 | + ? $options['url'].'?'.http_build_query(array_merge( |
|
61 | 61 | $query, |
62 | 62 | ['api_key' => self::getApiKey()] |
63 | 63 | )) : ''; |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | |
77 | 77 | curl_setopt_array($ch, $curlOpts); |
78 | 78 | |
79 | - if (null != $file) { |
|
79 | + if (null!=$file) { |
|
80 | 80 | $cfile = new \CURLFile($file, '', ''); |
81 | - $body['strFilename']=$cfile; |
|
81 | + $body['strFilename'] = $cfile; |
|
82 | 82 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
83 | 83 | curl_setopt($ch, CURLOPT_POST, true); |
84 | 84 | curl_setopt($ch, CURLOPT_POSTFIELDS, $body); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | if (isset($body)) { |
99 | 99 | $bodyData = json_encode($body); |
100 | 100 | if (isset($options['HTTPHEADER'])) { |
101 | - if (strpos($options['HTTPHEADER'], 'multipart/form-data') > 0) { |
|
101 | + if (strpos($options['HTTPHEADER'], 'multipart/form-data')>0) { |
|
102 | 102 | $bodyData = $body; |
103 | 103 | } |
104 | 104 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | if (isset($body)) { |
114 | 114 | $bodyData = json_encode($body); |
115 | 115 | if (isset($options['HTTPHEADER'])) { |
116 | - if (strpos($options['HTTPHEADER'], 'multipart/form-data') > 0) { |
|
116 | + if (strpos($options['HTTPHEADER'], 'multipart/form-data')>0) { |
|
117 | 117 | $bodyData = $body; |
118 | 118 | } |
119 | 119 | } |
@@ -135,14 +135,14 @@ discard block |
||
135 | 135 | curl_close($ch); |
136 | 136 | |
137 | 137 | $json = null; |
138 | - if (strpos($result, '<?xml') > -1) { |
|
138 | + if (strpos($result, '<?xml')>-1) { |
|
139 | 139 | $xml = simplexml_load_string($result); |
140 | 140 | $json = self::object2array($xml); |
141 | 141 | } else { |
142 | 142 | $json = json_decode($result, true); |
143 | 143 | } |
144 | 144 | |
145 | - if (200 == $code || 202 == $code) { |
|
145 | + if (200==$code || 202==$code) { |
|
146 | 146 | if (isset($json['errors'])) { |
147 | 147 | throw new ApiError(implode(', ', $json['errors']), $code, $result); |
148 | 148 | } else { |
@@ -154,16 +154,16 @@ discard block |
||
154 | 154 | if (isset($json['messages'])) { |
155 | 155 | $msg = ''; |
156 | 156 | foreach ($json['messages'] as $key => $value) { |
157 | - if ($msg !== '') { |
|
157 | + if ($msg!=='') { |
|
158 | 158 | $msg .= PHP_EOL; |
159 | 159 | } |
160 | - $msg .= $key . ': ' . implode(', ', $value); |
|
160 | + $msg .= $key.': '.implode(', ', $value); |
|
161 | 161 | } |
162 | 162 | throw new ApiError($msg, $code, $result); |
163 | 163 | } elseif (isset($json['errors'])) { |
164 | 164 | $msg = ''; |
165 | 165 | foreach ($json['errors'] as $key => $value) { |
166 | - if ($msg !== '') { |
|
166 | + if ($msg!=='') { |
|
167 | 167 | $msg .= PHP_EOL; |
168 | 168 | } |
169 | 169 | $msg .= $value; |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | if (is_object($result1)) { |
209 | 209 | if ($deepPrinting) { |
210 | 210 | echo "<br>$key1 ------><br>"; |
211 | - $oarray = (array) $result1; |
|
211 | + $oarray = (array)$result1; |
|
212 | 212 | self::simplePrint($oarray, true); |
213 | 213 | echo '------<br>'; |
214 | 214 | } else { |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | if (is_object($result)) { |
226 | 226 | if ($deepPrinting) { |
227 | 227 | echo "<br>$key ------><br>"; |
228 | - $oarray = (array) $result; |
|
228 | + $oarray = (array)$result; |
|
229 | 229 | self::simplePrint($oarray, true); |
230 | 230 | echo '------<br>'; |
231 | 231 | } else { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | if (is_array($res_members) && isset($res_members['results'])) { |
27 | 27 | foreach ($res_members['results'] as $key => $value) { |
28 | - if ($value['OWNER_MEMBER_ID'] == 0) { |
|
28 | + if ($value['OWNER_MEMBER_ID']==0) { |
|
29 | 29 | $owner_member_id = $value['member_id']; |
30 | 30 | break; |
31 | 31 | } |
@@ -50,5 +50,5 @@ discard block |
||
50 | 50 | $res = $tm->create($params); |
51 | 51 | print_r($res); |
52 | 52 | } catch (Exception | ApiError $e) { |
53 | - echo $e->getMessage() . PHP_EOL; |
|
53 | + echo $e->getMessage().PHP_EOL; |
|
54 | 54 | } |
@@ -22,5 +22,5 @@ |
||
22 | 22 | $res = $tm->getUser($userId); |
23 | 23 | print_r($res); |
24 | 24 | } catch (ApiError $e) { |
25 | - echo 'Cannot get user with ID: ' . $userId . PHP_EOL; |
|
25 | + echo 'Cannot get user with ID: '.$userId.PHP_EOL; |
|
26 | 26 | } |