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

WorldController::getGalaxy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}