Completed
Pull Request — master (#91)
by Glenn
03:01
created

ProductsController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A index() 0 4 1
A categories() 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