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