From 9df84c384fedf0479d47755a7462c61caae9c3a2 Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Tue, 10 Jan 2023 08:46:58 -0500 Subject: [PATCH] Format text --- app/Controllers/Myfit.php | 15 ++++++++------- app/Models/myfitFaqData.php | 32 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/app/Controllers/Myfit.php b/app/Controllers/Myfit.php index 7944bfb..50d50ed 100644 --- a/app/Controllers/Myfit.php +++ b/app/Controllers/Myfit.php @@ -34,17 +34,17 @@ class Myfit extends BaseController public function contact() { $inx = array( - 'name' => $this->post('name'), - 'email' => $this->post('email'), - 'country' => $this->post('country'), - 'phone' => $this->post('phone'), - 'message' => $this->post('message') + 'name' => $this->post('name'), + 'email' => $this->post('email'), + 'country' => $this->post('country'), + 'phone' => $this->post('phone'), + 'message' => $this->post('message') ); $something = $this->request->getVar('name'); $raw_json = file_get_contents("php://input"); $raw_array = json_decode($raw_json, true); - $inx = ['olu' => rand(100, 8888). $something]; + $inx = ['olu' => rand(100, 8888) . $something]; $mBlogData = new \App\Models\myfitBlogData(); $res1 = $mBlogData->getBlogData([]); //return $this->response->setJson($res1); @@ -65,7 +65,8 @@ class Myfit extends BaseController return $this->response->setJson($mCountry->getSiteCountries([])); } - public function faq(){ + public function faq() + { $mFaq = new \App\Models\myfitFaqData(); return $this->response->setJson($mFaq->getSiteFaq([])); } diff --git a/app/Models/myfitFaqData.php b/app/Models/myfitFaqData.php index 1825511..26b30a5 100644 --- a/app/Models/myfitFaqData.php +++ b/app/Models/myfitFaqData.php @@ -15,33 +15,33 @@ class myfitFaqData extends Model public function getSiteFaq($in) { -return array - ( - [ - 'title'=>'This is the title 1', - 'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + return array + ( + [ + 'title' => 'This is the title 1 from backend', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' ], [ - 'title'=>'This is the title 2', - 'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + 'title' => 'This is the title 2', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' ], [ - 'title'=>'This is the title 3', - 'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + 'title' => 'This is the title 3', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' ], [ - 'title'=>'This is the title 4', - 'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + 'title' => 'This is the title 4', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' ], [ - 'title'=>'This is the title 5', - 'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + 'title' => 'This is the title 5', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' ], [ - 'title'=>'This is the title 6', - 'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + 'title' => 'This is the title 6', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' ] - ); + ); }