@@ -25,8 +25,7 @@ |
||
| 25 | 25 | if (is_array($value)) |
| 26 | 26 | { |
| 27 | 27 | Route4Me::simplePrint($value); |
| 28 | - } |
|
| 29 | - else |
|
| 28 | + } else |
|
| 30 | 29 | { |
| 31 | 30 | echo "$key => $value <br>"; |
| 32 | 31 | } |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | if (is_string($value)) |
| 52 | 52 | { |
| 53 | 53 | echo $key." --> ".$value."<br>"; |
| 54 | - } |
|
| 55 | - else |
|
| 54 | + } else |
|
| 56 | 55 | { |
| 57 | 56 | echo "************ $key ************* <br>"; |
| 58 | 57 | Route4Me::simplePrint((array)$value); |
@@ -25,8 +25,7 @@ |
||
| 25 | 25 | if (is_array($value)) |
| 26 | 26 | { |
| 27 | 27 | Route4Me::simplePrint($value); |
| 28 | - } |
|
| 29 | - else |
|
| 28 | + } else |
|
| 30 | 29 | { |
| 31 | 30 | echo "$key => $value <br>"; |
| 32 | 31 | } |
@@ -33,13 +33,17 @@ discard block |
||
| 33 | 33 | $query = isset($options['query']) ? |
| 34 | 34 | array_filter($options['query']) : array(); |
| 35 | 35 | |
| 36 | - if (sizeof($query)==0) return null; |
|
| 36 | + if (sizeof($query)==0) { |
|
| 37 | + return null; |
|
| 38 | + } |
|
| 37 | 39 | |
| 38 | 40 | $body = isset($options['body']) ? |
| 39 | 41 | array_filter($options['body']) : null; |
| 40 | 42 | |
| 41 | 43 | $fname = isset($body['strFilename']) ? $body['strFilename'] : ''; |
| 42 | - if ($fname=='') return null; |
|
| 44 | + if ($fname=='') { |
|
| 45 | + return null; |
|
| 46 | + } |
|
| 43 | 47 | |
| 44 | 48 | $rpath = realpath($fname); |
| 45 | 49 | |
@@ -106,7 +110,9 @@ discard block |
||
| 106 | 110 | } |
| 107 | 111 | |
| 108 | 112 | if (isset($options['HTTPHEADERS'])) { |
| 109 | - foreach ($options['HTTPHEADERS'] As $header) $headers[]=$header; |
|
| 113 | + foreach ($options['HTTPHEADERS'] As $header) { |
|
| 114 | + $headers[]=$header; |
|
| 115 | + } |
|
| 110 | 116 | } |
| 111 | 117 | //self::simplePrint($headers); die(""); |
| 112 | 118 | $ch = curl_init(); |
@@ -119,7 +125,9 @@ discard block |
||
| 119 | 125 | //self::simplePrint($headers); die(""); |
| 120 | 126 | $baseUrl=self::getBaseUrl(); |
| 121 | 127 | |
| 122 | - if (strpos($url,'move_route_destination')>0) $baseUrl='https://www.route4me.com'; |
|
| 128 | + if (strpos($url,'move_route_destination')>0) { |
|
| 129 | + $baseUrl='https://www.route4me.com'; |
|
| 130 | + } |
|
| 123 | 131 | $curlOpts = arraY( |
| 124 | 132 | CURLOPT_URL => $baseUrl. $url, |
| 125 | 133 | CURLOPT_RETURNTRANSFER => true, |
@@ -193,7 +201,9 @@ discard block |
||
| 193 | 201 | |
| 194 | 202 | if ($isxml) { |
| 195 | 203 | $json = $jxml; |
| 196 | - } else $json = json_decode($result, true); |
|
| 204 | + } else { |
|
| 205 | + $json = json_decode($result, true); |
|
| 206 | + } |
|
| 197 | 207 | //var_dump($json); die(""); |
| 198 | 208 | if (200 == $code) { |
| 199 | 209 | return $json; |
@@ -278,7 +288,9 @@ discard block |
||
| 278 | 288 | |
| 279 | 289 | if ($isxml) { |
| 280 | 290 | $json = $jxml; |
| 281 | - } else $json = json_decode($result, true); |
|
| 291 | + } else { |
|
| 292 | + $json = json_decode($result, true); |
|
| 293 | + } |
|
| 282 | 294 | |
| 283 | 295 | |
| 284 | 296 | if (200 == $code) { |