GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RootController::devAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 8
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace App\Http\Controllers\Root;
4
5
use App\Http\Controllers\Controller;
6
use Illuminate\Http\Request;
7
use App\Http\Services\Root\ImportJSService;
8
9
/**
10
 * RootController.
11
 *
12
 * タブバーやサイドメニューなど動線管理を行う
13
 */
14
class RootController extends Controller
15
{
16
    /**
17
     * Create a new docs controller instance.
18
     */
19
    public function __construct()
20
    {
21
    }
22
23
    /**
24
     * topアクション.
25
     *
26
     * @param Requeat $request リクエスト
27
     *
28
     * @return view root_topテンプレート
29
     */
30
    public function topAction(Request $request)
31
    {
32
        // リクエストパラメータを取得する
33
        $requestParams = $request->getQueryString();
34
        $tabbarStatus = 'home';
35
36
        return view('root/root_top', compact('requestParams', 'tabbarStatus'));
37
    }
38
39
    /**
40
     * homeアクション.
41
     *
42
     * @param Requeat $request リクエスト
43
     *
44
     * @return view root_homeテンプレート
45
     */
46 View Code Duplication
    public function homeAction(Request $request)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
47
    {
48
        // リクエストパラメータを取得する
49
        $requestParams = $request->getQueryString();
50
        $tabbarStatus = 'home';
51
52
        return view('root/root_home', compact('requestParams', 'tabbarStatus'));
53
    }
54
55
    /**
56
     * contentsアクション.
57
     * 
58
     * @param Requeat $request リクエスト
59
     *
60
     * @return view root_contentsテンプレート
61
     */
62
    public function contentsAction(Request $request)
63
    {
64
        // リクエストパラメータを取得する
65
        $requestParams = $request->getQueryString();
66
        $tabbarStatus = 'contents';
67
        $importJSService = new ImportJSService();
68
        $contentsImportJS = $importJSService->getConttentsJS($requestParams);
69
        return view('root/root_contents', compact('requestParams', 'tabbarStatus', 'contentsImportJS'));
70
    }
71
72
    /**
73
     * docsアクション.
74
     * 
75
     * @param Requeat $request リクエスト
76
     *
77
     * @return view root_docsテンプレート
78
     */
79 View Code Duplication
    public function docsAction(Request $request)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
80
    {
81
        // リクエストパラメータを取得する
82
        $requestParams = $request->getQueryString();
83
        $tabbarStatus = 'docs';
84
85
        return view('root/root_docs', compact('requestParams', 'tabbarStatus'));
86
    }
87
88
    /**
89
     * devアクション.
90
     * 
91
     * @param Requeat $request リクエスト
92
     *
93
     * @return view root_devテンプレート
94
     */
95 View Code Duplication
    public function devAction(Request $request)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
96
    {
97
        // リクエストパラメータを取得する
98
        $requestParams = $request->getQueryString();
99
        $tabbarStatus = 'dev';
100
101
        return view('root/root_dev', compact('requestParams', 'tabbarStatus'));
102
    }
103
}
104