FooterWidgetComposer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

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

1 Method

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