Completed
Pull Request — master (#91)
by Tim
02:39
created

ProductsController   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A index() 0 4 1
A categories() 0 4 1
A store() 0 4 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Http\Requests;
8
9
class ProductsController extends Controller
10
{
11
    /**
12
     * ProductsController constructor.
13
     */
14
    public function __construct()
15
    {
16
        $this->middleware('auth');
17
        $this->middleware('lang');
18
    }
19
20
    public function index()
21
    {
22
        return view('products.index');
23
    }
24
25
    public function categories()
26
    {
27
        return view('products.categories');
28
    }
29
30
    public function store()
31
    {
32
33
    }
34
}
35