Completed
Push — master ( ddae74...2d3481 )
by PROSPER
7s
created

PageController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A home() 0 5 1
A api() 0 5 1
A contact() 0 5 1
1
<?php
2
3
    namespace App\Http\Controllers;
4
5
    class PageController extends Controller
6
    {
7
        
8
        /**
9
         * Return the homepage view
10
         * @return mixed
11
         */   
12
        public function home()
13
        {
14
            return view('welcome');
15
16
        } 
17
18
        /**
19
         * Return the api dashboard view listing available apis
20
         * @return mixed
21
         */ 
22
        public function api()
23
        {
24
            return view('apidashboard');
25
26
        }    
27
28
        /**
29
         * Return the contact page view
30
         * @return mixed
31
         */ 
32
        public function contact()
33
        {
34
            return view('contact');
35
36
        }
37
    }
38