@@ -84,12 +84,12 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | return new static(); |
| 86 | 86 | } |
| 87 | - private static function setupConfig(){ |
|
| 87 | + private static function setupConfig() { |
|
| 88 | 88 | self::$cacheType = strtolower(config('irfa.rajaongkir.cache_type')); |
| 89 | 89 | self::$province = config('irfa.rajaongkir.province_table'); |
| 90 | 90 | self::$city = config('irfa.rajaongkir.city_table'); |
| 91 | 91 | } |
| 92 | - private static function provinceData(){ |
|
| 92 | + private static function provinceData() { |
|
| 93 | 93 | if (function_exists('config') and function_exists('app')) { |
| 94 | 94 | self::setupConfig(); |
| 95 | 95 | $cache_type = self::$cacheType; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | return $ret; |
| 116 | 116 | } |
| 117 | - private static function cityData(){ |
|
| 117 | + private static function cityData() { |
|
| 118 | 118 | if (function_exists('config') and function_exists('app')) { |
| 119 | 119 | self::setupConfig(); |
| 120 | 120 | $cache_type = self::$cacheType; |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | return $ret; |
| 142 | 142 | } |
| 143 | - private static function exceptionCache(){ |
|
| 143 | + private static function exceptionCache() { |
|
| 144 | 144 | throw new Exception('Cache file is empty. Try php artisan raja-ongkir:cache'); |
| 145 | 145 | |
| 146 | 146 | return false; |