Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | public function transformResource(Schedule $schedule) |
||
30 | { |
||
31 | return [ |
||
32 | 'id' => $schedule->id, |
||
33 | 'alias' => $schedule->alias, |
||
|
|||
34 | 'timezone' => $schedule->timezone, |
||
35 | 'week_days' => $schedule->week_days, |
||
36 | 'exceptions' => $schedule->exceptions, |
||
37 | 'randomize' => $schedule->randomize, |
||
38 | 'times' => $schedule->times, //$this->buildTimes($schedule->week_days), |
||
39 | 'accounts' => [], |
||
40 | 'created_at' => $schedule->created_at, |
||
41 | 'updated_at' => $schedule->updated_at, |
||
42 | ]; |
||
50 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.