Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Controller   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A index() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Mark
5
 * Date: 23/03/2016
6
 * Time: 21:36.
7
 */
8
9
namespace App\Modules\Updates;
10
11
use App\Modules\ModuleEngine;
12
use App\Classes\Repositories\UpdateRepository;
13
14
/**
15
 * Class Controller.
16
 */
17
class Controller extends ModuleEngine
18
{
19
    /**
20
     * @var UpdateRepository
21
     */
22
    private $migrations;
23
24
    /**
25
     * Controller constructor.
26
     * @param UpdateRepository $migrations
27
     */
28
    public function __construct(UpdateRepository $migrations)
29
    {
30
        $this->migrations = $migrations;
31
    }
32
33
    /**
34
     * @return mixed
35
     */
36
    public function index()
37
    {
38
        return $this->make('view')->with('updates', $this->migrations->all());
39
    }
40
}
41