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.
Completed
Pull Request — master (#69)
by Syo
03:14
created

RootController::devAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
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
8
/**
9
 * RootController.
10
 *
11
 * タブバーやサイドメニューなど動線管理を行う
12
 */
13
class RootController extends Controller
14
{
15
    /**
16
     * Create a new docs controller instance.
17
     */
18
    public function __construct()
19
    {
20
    }
21
22
    /**
23
     * topアクション.
24
     *
25
     * @param Requeat $request リクエスト
26
     *
27
     * @return view root_topテンプレート
28
     */
29
    public function topAction(Request $request)
30
    {
31
        // リクエストパラメータを取得する
32
        $requestParams = $request->getQueryString();
33
        $tabbarStatus = 'home';
34
35
        return view('root/root_top', compact('requestParams', 'tabbarStatus'));
36
    }
37
38
    /**
39
     * homeアクション.
40
     *
41
     * @param Requeat $request リクエスト
42
     *
43
     * @return view root_homeテンプレート
44
     */
45 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...
46
    {
47
        // リクエストパラメータを取得する
48
        $requestParams = $request->getQueryString();
49
        $tabbarStatus = 'home';
50
51
        return view('root/root_home', compact('requestParams', 'tabbarStatus'));
52
    }
53
54
    /**
55
     * contentsアクション.
56
     * 
57
     * @param Requeat $request リクエスト
58
     *
59
     * @return view root_contentsテンプレート
60
     */
61 View Code Duplication
    public function contentsAction(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...
62
    {
63
        // リクエストパラメータを取得する
64
        $requestParams = $request->getQueryString();
65
        $tabbarStatus = 'contents';
66
67
        return view('root/root_contents', compact('requestParams', 'tabbarStatus'));
68
    }
69
70
    /**
71
     * docsアクション.
72
     * 
73
     * @param Requeat $request リクエスト
74
     *
75
     * @return view root_docsテンプレート
76
     */
77 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...
78
    {
79
        // リクエストパラメータを取得する
80
        $requestParams = $request->getQueryString();
81
        $tabbarStatus = 'docs';
82
83
        return view('root/root_docs', compact('requestParams', 'tabbarStatus'));
84
    }
85
86
    /**
87
     * devアクション.
88
     * 
89
     * @param Requeat $request リクエスト
90
     *
91
     * @return view root_devテンプレート
92
     */
93 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...
94
    {
95
        // リクエストパラメータを取得する
96
        $requestParams = $request->getQueryString();
97
        $tabbarStatus = 'dev';
98
99
        return view('root/root_dev', compact('requestParams', 'tabbarStatus'));
100
    }
101
}
102