Completed
Push — master ( 9b3fc3...96b827 )
by ARCANEDEV
06:21
created

FooterWidgetComposer::compose()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
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
    const VIEW = 'seo::public._composers.widgets.footer-widget';
20
21
    /* -----------------------------------------------------------------
22
     |  Main Methods
23
     | -----------------------------------------------------------------
24
     */
25
    /**
26
     * Compose the view.
27
     *
28
     * @param  \Illuminate\Contracts\View\View  $view
29
     */
30
    public function compose(View $view)
31
    {
32
        $this->view = $view;
33
34
        $this->view->with('seoFooters', Footer::all());
35
    }
36
}
37