Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function terms(): View |
||
13 | { |
||
14 | $title = 'Terms and Conditions'; |
||
15 | $meta_title = config('app.name').' - Terms and conditions'; |
||
16 | $meta_keywords = 'terms,conditions'; |
||
17 | $meta_description = 'Terms and Conditions for '.config('app.name'); |
||
18 | |||
19 | // Get terms content from settings |
||
20 | $terms_content = $this->settings->tandc ?? '<p>No terms and conditions have been set yet.</p>'; |
||
|
|||
21 | |||
22 | return view('terms', compact('title', 'meta_title', 'meta_keywords', 'meta_description', 'terms_content')); |
||
23 | } |
||
25 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.