formater count
This commit is contained in:
@@ -294,6 +294,7 @@ class ResultFormatter extends Model
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$int_c = 'interest_count_'.$out["offer_code_${key}"];
|
||||
$res["result_list"][] = array(
|
||||
"title" => $out["title_${key}"],
|
||||
"description" => $out["description_${key}"],
|
||||
@@ -322,6 +323,7 @@ class ResultFormatter extends Model
|
||||
'job_country' => $out["job_country_${key}"],
|
||||
'currency' => 'Naira',
|
||||
'currency_code' => 'NGN',
|
||||
'interest_count' => $out["${$int_c}"] ?? 0,
|
||||
'category' => $this->dummyGetCategory()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -244,6 +244,7 @@ function processOutJson($in, $out) {
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$int_c = 'interest_count_'.$out["offer_code_${key}"];
|
||||
$res["result_list"][] = array(
|
||||
"title" => $out["title_${key}"],
|
||||
"description" => $out["description_${key}"],
|
||||
@@ -264,6 +265,7 @@ function processOutJson($in, $out) {
|
||||
'job_country' => $out["job_country_${key}"],
|
||||
'currency' => 'Naira',
|
||||
'currency_code' => 'NGN',
|
||||
'interest_count' => $out["${$int_c}"] ?? 0,
|
||||
'category' => dummyGetCategory()
|
||||
);
|
||||
}
|
||||
@@ -332,6 +334,7 @@ function processOutJson($in, $out) {
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$int_c = 'interest_count_'.$out["offer_code_${key}"];
|
||||
$res["result_list"][] = array(
|
||||
"title" => $out["title_${key}"],
|
||||
"description" => $out["description_${key}"],
|
||||
@@ -360,6 +363,7 @@ function processOutJson($in, $out) {
|
||||
'job_country' => $out["job_country_${key}"],
|
||||
'currency' => 'Naira',
|
||||
'currency_code' => 'NGN',
|
||||
'interest_count' => $out["${$int_c}"] ?? 0,
|
||||
'category' => dummyGetCategory()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user