HomeController   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A showAggregation() 0 3 1
A showIndex() 0 7 3
1
<?php
2
/**
3
 * Date: 2019/2/25 Time: 14:35
4
 *
5
 * @author  Eddy <[email protected]>
6
 * @version v1.0.0
7
 */
8
9
namespace App\Http\Controllers\Admin;
10
11
use App\Http\Controllers\Controller;
12
use App\Repository\Admin\EntityRepository;
13
14
class HomeController extends Controller
15
{
16
    /**
17
     * 基础功能-首页
18
     */
19
    public function showIndex()
20
    {
21
        $opcache = 'false';
22
        if (function_exists('opcache_get_status') && opcache_get_status() !== false) {
23
            $opcache = 'true';
24
        }
25
        return view('admin.home.index', ['opcache' => $opcache]);
26
    }
27
28
    /**
29
     * 内容管理-内容管理
30
     */
31
    public function showAggregation()
32
    {
33
        return view('admin.home.content', ['autoMenu' => EntityRepository::systemMenu()]);
34
    }
35
}
36