Completed
Push — master ( bc69cb...e24ad8 )
by Ron
02:35
created

GalaxyController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getGalaxies() 0 3 1
A getTypes() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\Galaxies;
4
5
use App\Http\Controllers\Controller;
6
use App\Http\Resources\GalaxyResource;
7
use Starpeace\Models\Eloquent\Common\Galaxy;
8
use Starpeace\Models\Eloquent\Common\GalaxyType;
9
10
class GalaxyController extends Controller
11
{
12
    public function getGalaxies()
13
    {
14
        return GalaxyResource::collection(Galaxy::all());
15
    }
16
17
    public function getTypes()
18
    {
19
        return GalaxyType::all();
20
    }
21
}