Showing 5 of 12 total issues
Function substituteMockData
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
Open
public function substituteMockData(array $fixture) { foreach ($fixture as $jsonKey => $jsonValue) { // Recurse into a json structure. if (is_array($jsonValue)) {
- Read upRead up
Method substituteMockData
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function substituteMockData(array $fixture) { foreach ($fixture as $jsonKey => $jsonValue) { // Recurse into a json structure. if (is_array($jsonValue)) {
Method assertResponseContent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static public function assertResponseContent( ResponseInterface $response, $filename, $mimeType = 'json' ) {
Function getMatcherFormat
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
static private function getMatcherFormat(array $spec) { foreach ($spec as $jsonKey => $jsonValue) { // Recurse into a json structure. if (is_array($jsonValue)) {
- Read upRead up
Avoid too many return
statements within this method. Open
Open
return $relatedToValue;