| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 5 | protected function getRequiredFields(string $buildType = self::BUILD_FOR_CREATE): array |
|
| 54 | { |
||
| 55 | switch ($buildType) { |
||
| 56 | 5 | case self::BUILD_FOR_CREATE: |
|
| 57 | return [ |
||
| 58 | 3 | 'team_id', |
|
| 59 | 'name', |
||
| 60 | 'display_name', |
||
| 61 | 'type', |
||
| 62 | ]; |
||
| 63 | |||
| 64 | 2 | case self::BUILD_FOR_PATCH: |
|
| 65 | 1 | return ['id']; |
|
| 66 | 1 | case self::BUILD_FOR_UPDATE: |
|
| 67 | default: |
||
| 68 | 1 | return []; |
|
| 69 | } |
||
| 72 |