Test Setup Failed
Push — main ( 9553a4...d149ac )
by Davide
08:15
created

StaticPageController::aboutMe()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Models\Post;
6
use App\Services\Snippets\GalleryMasonryService;
7
use App\Services\StaticPageService;
8
use Illuminate\Http\Request;
9
10
class StaticPageController extends Controller
11
{
12
    private StaticPageService $staticPageService;
13
14
    public function __construct(
15
        StaticPageService $staticPageService
16
    ) {
17
        $this->staticPageService = $staticPageService;
18
    }
19
20
    /**
21
     * Show the about me page.
22
     *
23
     * @return \Illuminate\Contracts\Support\Renderable
24
     */
25
    public function aboutMe()
26
    {
27
      return view('pages.aboutMe');
28
    }
29
30
    /**
31
     * Show the treatments page.
32
     *
33
     * @return \Illuminate\Contracts\Support\Renderable
34
     */
35
    public function treatments()
36
    {
37
        return view('pages.treatments');
38
    }
39
40
    /**
41
     * Show the Contact Improvisation page.
42
     *
43
     * @return \Illuminate\Contracts\Support\Renderable
44
     * @throws \Spatie\ModelStatus\Exceptions\InvalidStatus
45
     */
46
    public function contactImprovisation()
47
    {
48
        $gallery1Html = $this->staticPageService->getStaticGalleryHtml('contact improvisation', true);
49
50
        return view('pages.contactImprovisation', [
51
            'gallery1Html' => $gallery1Html,
52
        ]);
53
    }
54
}
55