chore: code styling via pint
This commit is contained in:
@@ -4,17 +4,22 @@ namespace App\Livewire;
|
||||
|
||||
use App\Models\ZEmail;
|
||||
use Livewire\Component;
|
||||
use Request;
|
||||
use Session;
|
||||
|
||||
class AddOn extends Component
|
||||
{
|
||||
public $title = "";
|
||||
public $description = "";
|
||||
public $keywords = "";
|
||||
public $route = "";
|
||||
public $title = '';
|
||||
|
||||
public $description = '';
|
||||
|
||||
public $keywords = '';
|
||||
|
||||
public $route = '';
|
||||
|
||||
public $faqs = [];
|
||||
|
||||
public $faqSchema;
|
||||
|
||||
protected $listeners = ['fetchMessages' => 'checkIfAnyMessage'];
|
||||
|
||||
public function checkIfAnyMessage()
|
||||
@@ -38,18 +43,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
} elseif ($route == 'disposable-gmail') {
|
||||
$this->title = 'Disposable Gmail Email | Free Temporary Gmail Inbox Online';
|
||||
@@ -58,18 +63,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
|
||||
} elseif ($route == 'disposable-outlook') {
|
||||
@@ -79,18 +84,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
} elseif ($route == 'disposable-yahoo') {
|
||||
$this->title = 'Disposable Yahoo Mail | Free Temporary Yahoo Inbox';
|
||||
@@ -99,18 +104,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
} elseif ($route == 'gmailnator') {
|
||||
$this->title = 'Gmailnator - Free Temporary Gmail Email Address Generator';
|
||||
@@ -119,18 +124,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
} elseif ($route == 'emailnator') {
|
||||
$this->title = 'Emailnator - Free Disposable Temporary Email Service';
|
||||
@@ -139,18 +144,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
} elseif ($route == 'temp-gmail') {
|
||||
$this->title = 'Temp Gmail | Free Temporary Gmail Inbox for Instant Use';
|
||||
@@ -159,18 +164,18 @@ class AddOn extends Component
|
||||
$this->route = $route;
|
||||
$this->faqs = $this->faqs[$route];
|
||||
$this->faqSchema = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "FAQPage",
|
||||
"mainEntity" => collect($this->faqs)->map(function ($faq) {
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => collect($this->faqs)->map(function ($faq) {
|
||||
return [
|
||||
"@type" => "Question",
|
||||
"name" => $faq['title'],
|
||||
"acceptedAnswer" => [
|
||||
"@type" => "Answer",
|
||||
"text" => $faq['content']
|
||||
]
|
||||
'@type' => 'Question',
|
||||
'name' => $faq['title'],
|
||||
'acceptedAnswer' => [
|
||||
'@type' => 'Answer',
|
||||
'text' => $faq['content'],
|
||||
],
|
||||
];
|
||||
})->toArray()
|
||||
})->toArray(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user