src/Testing/SpecterTestTrait.php
Showing 3 of 3 total issues
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 using static access to class '\Faker\Factory' in method 'assertResponseContent'. Open
Open
self::$faker = Faker\Factory::create();
- Read upRead up
- Exclude checks