| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 2 | public static function updateRecords(string $tableName, array $records, string $type): Request |
|
| 45 | { |
||
| 46 | 2 | Assert::thatAll($records) |
|
| 47 | 2 | ->keyExists('fields'); |
|
| 48 | |||
| 49 | 2 | return new self( |
|
| 50 | 2 | $type, |
|
| 51 | $tableName, |
||
| 52 | [ |
||
| 53 | 2 | 'Content-Type' => 'application/json', |
|
| 54 | ], |
||
| 55 | 2 | json_encode( |
|
| 56 | [ |
||
| 57 | 2 | 'records' => $records |
|
| 58 | ] |
||
| 63 |