Completed
Push — master ( e24ad8...1f44f2 )
by Ron
02:42
created

GalaxyTypeResource   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 7 1
1
<?php
2
3
namespace App\Http\Resources;
4
5
use Illuminate\Http\Resources\Json\Resource;
6
7
class GalaxyTypeResource extends Resource
8
{
9
    public function toArray($request)
10
    {
11
        return [
12
          'id' => $this->id,
0 ignored issues
show
Bug Best Practice introduced by
The property id does not exist on App\Http\Resources\GalaxyTypeResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
13
          'name' => $this->name,
0 ignored issues
show
Bug Best Practice introduced by
The property name does not exist on App\Http\Resources\GalaxyTypeResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
14
          'display_name' => $this->display_name,
0 ignored issues
show
Bug Best Practice introduced by
The property display_name does not exist on App\Http\Resources\GalaxyTypeResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
15
          'updated_at' => $this->updated_at->format('Y-m-d H:i:s'),
0 ignored issues
show
Bug Best Practice introduced by
The property updated_at does not exist on App\Http\Resources\GalaxyTypeResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
16
        ];
17
    }
18
}