@@ -16,7 +16,7 @@ |
||
| 16 | 16 | static $name = 'PickPoint - курьерская служба'; |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @param \Ecommerce\Cart $cart |
|
| 19 | + * @param string $URL |
|
| 20 | 20 | * @return \Money\Sums |
| 21 | 21 | */ |
| 22 | 22 | static function curl_get_file_contents($URL, $data) { |
@@ -35,8 +35,11 @@ |
||
| 35 | 35 | $contents = curl_exec($c); |
| 36 | 36 | curl_close($c); |
| 37 | 37 | |
| 38 | - if ($contents) return $contents; |
|
| 39 | - else return FALSE; |
|
| 38 | + if ($contents) { |
|
| 39 | + return $contents; |
|
| 40 | + } else { |
|
| 41 | + return FALSE; |
|
| 42 | + } |
|
| 40 | 43 | } |
| 41 | 44 | |
| 42 | 45 | static function calcPrice($cart) { |