@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | public $config_key; |
| 65 | 65 | public $config_value; |
| 66 | 66 | |
| 67 | - public function __construct () { } |
|
| 67 | + public function __construct() { } |
|
| 68 | 68 | |
| 69 | 69 | public static function fromArray(array $params) { |
| 70 | - $member= new Member(); |
|
| 71 | - foreach($params as $key => $value) { |
|
| 70 | + $member = new Member(); |
|
| 71 | + foreach ($params as $key => $value) { |
|
| 72 | 72 | if (property_exists($member, $key)) { |
| 73 | 73 | $member->{$key} = $value; |
| 74 | 74 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | 'url' => self::$apiUrlDevice, |
| 120 | 120 | 'method' => 'POST', |
| 121 | 121 | 'body' => array( |
| 122 | - 'device_id' => isset($body->device_id) ? $body->device_id: null, |
|
| 122 | + 'device_id' => isset($body->device_id) ? $body->device_id : null, |
|
| 123 | 123 | 'device_type' => isset($body->device_type) ? $body->device_type : null, |
| 124 | 124 | 'format' => isset($body->format) ? $body->format : null |
| 125 | 125 | ) |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | 'url' => self::$apiUrl, |
| 135 | 135 | 'method' => 'POST', |
| 136 | 136 | 'body' => array( |
| 137 | - 'HIDE_ROUTED_ADDRESSES' => isset($body->HIDE_ROUTED_ADDRESSES) ? $body->HIDE_ROUTED_ADDRESSES: null, |
|
| 137 | + 'HIDE_ROUTED_ADDRESSES' => isset($body->HIDE_ROUTED_ADDRESSES) ? $body->HIDE_ROUTED_ADDRESSES : null, |
|
| 138 | 138 | 'member_phone' => isset($body->member_phone) ? $body->member_phone : null, |
| 139 | 139 | 'member_zipcode' => isset($body->member_zipcode) ? $body->member_zipcode : null, |
| 140 | 140 | 'route_count' => isset($body->route_count) ? $body->route_count : null, |
@@ -160,9 +160,9 @@ discard block |
||
| 160 | 160 | 'url' => self::$apiUrl, |
| 161 | 161 | 'method' => 'PUT', |
| 162 | 162 | 'body' => array( |
| 163 | - 'member_id' => isset($body->member_id) ? $body->member_id: null, |
|
| 163 | + 'member_id' => isset($body->member_id) ? $body->member_id : null, |
|
| 164 | 164 | 'member_phone' => isset($body->member_phone) ? $body->member_phone : null, |
| 165 | - 'HIDE_ROUTED_ADDRESSES' => isset($body->HIDE_ROUTED_ADDRESSES) ? $body->HIDE_ROUTED_ADDRESSES: null, |
|
| 165 | + 'HIDE_ROUTED_ADDRESSES' => isset($body->HIDE_ROUTED_ADDRESSES) ? $body->HIDE_ROUTED_ADDRESSES : null, |
|
| 166 | 166 | 'member_zipcode' => isset($body->member_zipcode) ? $body->member_zipcode : null, |
| 167 | 167 | 'route_count' => isset($body->route_count) ? $body->route_count : null, |
| 168 | 168 | 'member_email' => isset($body->member_email) ? $body->member_email : null, |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | 'url' => self::$apiUrl, |
| 188 | 188 | 'method' => 'DELETE', |
| 189 | 189 | 'body' => array( |
| 190 | - 'member_id' => isset($body->member_id) ? $body->member_id: null |
|
| 190 | + 'member_id' => isset($body->member_id) ? $body->member_id : null |
|
| 191 | 191 | ) |
| 192 | 192 | |
| 193 | 193 | )); |
@@ -200,17 +200,17 @@ discard block |
||
| 200 | 200 | 'url' => self::$apiUrlRegistr, |
| 201 | 201 | 'method' => 'POST', |
| 202 | 202 | 'body' => array( |
| 203 | - 'strEmail' => isset($body->strEmail) ? $body->strEmail: null, |
|
| 203 | + 'strEmail' => isset($body->strEmail) ? $body->strEmail : null, |
|
| 204 | 204 | 'strPassword_1' => isset($body->strPassword_1) ? $body->strPassword_1 : null, |
| 205 | 205 | 'strPassword_2' => isset($body->strPassword_2) ? $body->strPassword_2 : null, |
| 206 | - 'strFirstName' => isset($body->strFirstName) ? $body->strFirstName: null, |
|
| 207 | - 'strLastName' => isset($body->strLastName) ? $body->strLastName: null, |
|
| 208 | - 'strIndustry' => isset($body->strIndustry) ? $body->strIndustry: null, |
|
| 209 | - 'chkTerms' => isset($body->chkTerms) ? $body->chkTerms: null, |
|
| 210 | - 'plan' => isset($body->plan) ? $body->plan: null, |
|
| 211 | - 'strSubAccountType' => isset($body->strSubAccountType) ? $body->strSubAccountType: null, |
|
| 212 | - 'blDisableMarketing' => isset($body->blDisableMarketing) ? $body->blDisableMarketing: false, |
|
| 213 | - 'blDisableAccountActivationEmail' => isset($body->blDisableAccountActivationEmail) ? $body->blDisableAccountActivationEmail: false |
|
| 206 | + 'strFirstName' => isset($body->strFirstName) ? $body->strFirstName : null, |
|
| 207 | + 'strLastName' => isset($body->strLastName) ? $body->strLastName : null, |
|
| 208 | + 'strIndustry' => isset($body->strIndustry) ? $body->strIndustry : null, |
|
| 209 | + 'chkTerms' => isset($body->chkTerms) ? $body->chkTerms : null, |
|
| 210 | + 'plan' => isset($body->plan) ? $body->plan : null, |
|
| 211 | + 'strSubAccountType' => isset($body->strSubAccountType) ? $body->strSubAccountType : null, |
|
| 212 | + 'blDisableMarketing' => isset($body->blDisableMarketing) ? $body->blDisableMarketing : false, |
|
| 213 | + 'blDisableAccountActivationEmail' => isset($body->blDisableAccountActivationEmail) ? $body->blDisableAccountActivationEmail : false |
|
| 214 | 214 | ) |
| 215 | 215 | )); |
| 216 | 216 | return $response; |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | 'url' => self::$apiUrlSessValid, |
| 223 | 223 | 'method' => 'GET', |
| 224 | 224 | 'query' => array( |
| 225 | - 'session_guid' => isset($params->session_guid) ? $params->session_guid: null, |
|
| 225 | + 'session_guid' => isset($params->session_guid) ? $params->session_guid : null, |
|
| 226 | 226 | 'member_id' => isset($params->member_id) ? $params->member_id : null, |
| 227 | 227 | 'format' => isset($params->format) ? $params->format : null |
| 228 | 228 | ) |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | 'url' => self::$apiUrlAuthen, |
| 237 | 237 | 'method' => 'POST', |
| 238 | 238 | 'body' => array( |
| 239 | - 'strEmail' => isset($body->strEmail) ? $body->strEmail: null, |
|
| 239 | + 'strEmail' => isset($body->strEmail) ? $body->strEmail : null, |
|
| 240 | 240 | 'strPassword' => isset($body->strPassword) ? $body->strPassword : null, |
| 241 | 241 | 'format' => isset($body->format) ? $body->format : null |
| 242 | 242 | ) |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | 'url' => self::$apiUrlWebinar, |
| 252 | 252 | 'method' => 'POST', |
| 253 | 253 | 'body' => array( |
| 254 | - 'email_address' => isset($body->email_address) ? $body->email_address: null, |
|
| 254 | + 'email_address' => isset($body->email_address) ? $body->email_address : null, |
|
| 255 | 255 | 'first_name' => isset($body->first_name) ? $body->first_name : null, |
| 256 | 256 | 'last_name' => isset($body->last_name) ? $body->last_name : null, |
| 257 | 257 | 'phone_number' => isset($body->phone_number) ? $body->phone_number : null, |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | 'url' => self::$apiUrlLicense, |
| 271 | 271 | 'method' => 'POST', |
| 272 | 272 | 'body' => array( |
| 273 | - 'member_id' => isset($body->member_id) ? $body->member_id: null, |
|
| 273 | + 'member_id' => isset($body->member_id) ? $body->member_id : null, |
|
| 274 | 274 | 'session_guid' => isset($body->session_guid) ? $body->session_guid : null, |
| 275 | 275 | 'device_id' => isset($body->device_id) ? $body->device_id : null, |
| 276 | 276 | 'device_type' => isset($body->device_type) ? $body->device_type : null, |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | 'url' => self::$apiMemberConfig, |
| 291 | 291 | 'method' => 'POST', |
| 292 | 292 | 'body' => array( |
| 293 | - 'config_key' => isset($body->config_key) ? $body->config_key: null, |
|
| 293 | + 'config_key' => isset($body->config_key) ? $body->config_key : null, |
|
| 294 | 294 | 'config_value' => isset($body->config_value) ? $body->config_value : null |
| 295 | 295 | ) |
| 296 | 296 | )); |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | 'url' => self::$apiMemberConfig, |
| 304 | 304 | 'method' => 'DELETE', |
| 305 | 305 | 'body' => array( |
| 306 | - 'config_key' => isset($body->config_key) ? $body->config_key: null |
|
| 306 | + 'config_key' => isset($body->config_key) ? $body->config_key : null |
|
| 307 | 307 | ) |
| 308 | 308 | )); |
| 309 | 309 | return $response; |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | 'url' => self::$apiMemberConfig, |
| 316 | 316 | 'method' => 'GET', |
| 317 | 317 | 'query' => array( |
| 318 | - 'config_key' => isset($body->config_key) ? $body->config_key: null |
|
| 318 | + 'config_key' => isset($body->config_key) ? $body->config_key : null |
|
| 319 | 319 | ) |
| 320 | 320 | )); |
| 321 | 321 | return $response; |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | 'url' => self::$apiMemberConfig, |
| 328 | 328 | 'method' => 'PUT', |
| 329 | 329 | 'body' => array( |
| 330 | - 'config_key' => isset($body->config_key) ? $body->config_key: null, |
|
| 330 | + 'config_key' => isset($body->config_key) ? $body->config_key : null, |
|
| 331 | 331 | 'config_value' => isset($body->config_value) ? $body->config_value : null |
| 332 | 332 | ) |
| 333 | 333 | )); |