SidebarComposer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Xetaravel\View\Composers\Discuss;
6
7
use Illuminate\View\View;
8
use Xetaravel\Models\Repositories\DiscussCategoryRepository;
9
10
class SidebarComposer
11
{
12
    /**
13
     * Bind data to the view.
14
     *
15
     * @param View $view
16
     *
17
     * @return void
18
     */
19
    public function compose(View $view): void
20
    {
21
        $categories = DiscussCategoryRepository::sidebar();
22
23
        $view->with(['categories' => $categories]);
24
    }
25
}
26