HomeController::showAggregation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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