@@ -52,16 +52,16 @@ |
||
| 52 | 52 | |
| 53 | 53 | public static function cachingSubDistrict() |
| 54 | 54 | { |
| 55 | - if(strtolower(config('irfa.rajaongkir.account_type')) == "starter") |
|
| 55 | + if (strtolower(config('irfa.rajaongkir.account_type')) == "starter") |
|
| 56 | 56 | { |
| 57 | 57 | echo "Tidak dapat mengambil SubDistrict dikarenakan akun yg anda pakai tipe starter."; |
| 58 | 58 | return true; |
| 59 | 59 | } |
| 60 | 60 | $get = self::cityData(); |
| 61 | 61 | $count = count($get); |
| 62 | - $i=0; |
|
| 62 | + $i = 0; |
|
| 63 | 63 | echo PHP_EOL."\033[42mThis may take longer, please wait.\033[0m"; |
| 64 | - foreach($get as $city){ |
|
| 64 | + foreach ($get as $city) { |
|
| 65 | 65 | $i++; |
| 66 | 66 | echo PHP_EOL."Remaining City\033[96m ".$i."/".$count."\033[0m"; |
| 67 | 67 | echo PHP_EOL."Get Subdistrict\033[96m ".$city->city_name."...\033[0m".PHP_EOL; |