FooterWidgetComposer::compose()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
ccs 0
cts 3
cp 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php namespace Arcanesoft\Seo\ViewComposers\Front;
2
3
use Arcanesoft\Seo\Models\Footer;
4
use Arcanesoft\Seo\ViewComposers\ViewComposer;
5
use Illuminate\Contracts\View\View;
6
7
/**
8
 * Class     FooterWidgetComposer
9
 *
10
 * @package  Arcanesoft\Seo\ViewComposers\Front
11
 * @author   ARCANEDEV <[email protected]>
12
 */
13
class FooterWidgetComposer extends ViewComposer
14
{
15
    /* -----------------------------------------------------------------
16
     |  Constants
17
     | -----------------------------------------------------------------
18
     */
19
20
    const VIEW = 'seo::public._composers.widgets.footer-widget';
21
22
    /* -----------------------------------------------------------------
23
     |  Main Methods
24
     | -----------------------------------------------------------------
25
     */
26
27
    /**
28
     * Compose the view.
29
     *
30
     * @param  \Illuminate\Contracts\View\View  $view
31
     */
32
    public function compose(View $view)
33
    {
34
        $view->with('seoFooters', Footer::all());
35
    }
36
}
37