Completed
Pull Request — master (#28)
by Marcos
02:40
created

RepositoriesController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 8 1
1
<?php
2
/**
3
 * GitScrum v0.1.
4
 *
5
 * @author  Renato Marinho <[email protected]>
6
 * @license http://opensource.org/licenses/GPL-3.0 GPLv3
7
 */
8
namespace GitScrum\Http\Controllers;
9
10
use GitScrum\Classes\Github;
11
12
class RepositoriesController extends Controller
13
{
14
    public function update()
15
    {
16
        $github = new Github();
17
        $github->repositories();
18
19
        return redirect()->route('user.dashboard')
20
            ->with('success', _('Updated successfully'));
21
    }
22
}
23