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.

DocsController   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 3
c 4
b 0
f 0
lcom 0
cbo 2
dl 0
loc 37
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A topAction() 0 7 1
A screenListAction() 0 7 1
1
<?php
2
3
namespace App\Http\Controllers\Tabbar\Navigation\Docs;
4
5
use App\Http\Controllers\Controller;
6
use App\Http\Services\Docs\MarkdownService;
7
8
/**
9
 * DocsController.
10
 *
11
 * Docsタブ内で表示するコンテンツを扱う
12
 */
13
class DocsController extends Controller
14
{
15
    /**
16
     * Create a new docs controller instance.
17
     */
18
    public function __construct()
19
    {
20
    }
21
22
    /**
23
     * topアクション.
24
     *
25
     * @return view docs/docs_topテンプレート
26
     *              assign:$parseMarkdown readmeファイルをパースさせた内容
27
     */
28
    public function topAction()
29
    {
30
        $markdownFile = public_path().'/documents/screen/readme.md';
31
        $parseMarkdown = (new MarkdownService())->getHtmlFromMarkdown($markdownFile);
32
33
        return view('tabbar/navigation/docs/docs_top', compact('parseMarkdown'));
34
    }
35
36
    /**
37
     * screenListアクション.
38
     *
39
     * @return view docs/docs_topテンプレート
40
     *              assign:$parseMarkdown readmeファイルをパースさせた内容
41
     */
42
    public function screenListAction()
43
    {
44
        $markdownFile = public_path().'/documents/screen/readme.md';
45
        $parseMarkdown = (new MarkdownService())->getHtmlFromMarkdown($markdownFile);
46
47
        return view('tabbar/navigation/docs/docs_screenlist', compact('parseMarkdown'));
48
    }
49
}
50