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

WorldController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getGalaxy() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\Worlds;
4
5
use App\Http\Controllers\Controller;
6
use Starpeace\Models\Eloquent\Common\World;
7
8
class WorldController extends Controller
9
{
10
    function getGalaxy($galaxy_id)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
11
    {
12
        return World::where('galaxy_id', $galaxy_id)->get();
13
    }
14
}