Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
16 | class ScheduleTransformer extends Transformer |
||
17 | { |
||
18 | public $available = [ |
||
19 | 'user' => UserTransformer::class, |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * Transform the resource into an array. |
||
24 | * |
||
25 | * @throws Exception |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function transformResource(Schedule $schedule) |
||
42 | ]; |
||
43 | } |
||
44 | |||
45 | public function buildTimes($weekDays): array |
||
50 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.