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

FooterWidgetComposer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 24
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 6 1
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