PrivacyPolicyController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
eloc 7
c 2
b 1
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A privacyPolicy() 0 10 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\View\View;
6
7
class PrivacyPolicyController extends BasePageController
8
{
9
    /**
10
     * Display the privacy policy page.
11
     */
12
    public function privacyPolicy(): View
13
    {
14
        $title = 'Privacy Policy';
15
        $meta_title = config('app.name').' - Privacy Policy';
16
        $meta_keywords = 'privacy,policy,data protection';
17
        $meta_description = 'Privacy Policy for '.config('app.name');
18
        // Get privacy policy content from settings (if available)
19
        $privacy_content = $this->settings->privacy_policy ?? null;
0 ignored issues
show
Bug introduced by
The property privacy_policy does not seem to exist on App\Models\Settings. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
20
21
        return view('privacy-policy', compact('title', 'meta_title', 'meta_keywords', 'meta_description', 'privacy_content'));
22
    }
23
}
24