src/transformer/repos/TestRepository.php
Showing 1 of 1 total issue
Function read_records
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
public function read_records(string $type, array $query, string $sort = '') { $records = $this->testdata->$type; $matchingrecords = []; foreach ($records as $record) {
- Read upRead up
- Create a ticketCreate a ticket