DefaultComposer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A compose() 0 3 1
1
<?php
2
3
namespace App\Http\ViewComposers;
4
5
use Illuminate\View\View;
6
7
class DefaultComposer
8
{
9
    private $test;
10
11
    public function __construct()
12
    {
13
        $this->test = 'test';
14
    }
15
16
    public function compose(View $view)
17
    {
18
        $view->with('test', $this->test);
19
    }
20
}
21