SnippetsController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of Gitamin.
5
 *
6
 * Copyright (C) 2015-2016 The Gitamin Team
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Gitamin\Http\Controllers\Dashboard;
13
14
use Gitamin\Http\Controllers\Controller;
15
use Illuminate\Support\Facades\View;
16
17
class SnippetsController extends Controller
18
{
19
    /**
20
     * Display a listing of the snippets.
21
     *
22
     * @return \Illuminate\Http\Response
23
     */
24
    public function indexAction()
25
    {
26
        $snippets = [];
27
28
        return View::make('dashboard.snippets.index')
29
            ->withPageTitle(trans('dashboard.snippets.snippets'))
30
            ->withSnippets($snippets);
31
    }
32
}
33