Showing 5 of 5 total issues
Function substituteMockData
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. 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
public function substituteMockData(array $fixture) { foreach ($fixture as $jsonKey => $jsonValue) { // Recurse into a json structure. if (is_array($jsonValue)) {
The method substituteMockData() has an NPath complexity of 217. The configured NPath complexity threshold is 200. Open
public function substituteMockData(array $fixture) { foreach ($fixture as $jsonKey => $jsonValue) { // Recurse into a json structure. if (is_array($jsonValue)) {
- Read upRead up
- Exclude checks
The method substituteMockData() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. Open
public function substituteMockData(array $fixture) { foreach ($fixture as $jsonKey => $jsonValue) { // Recurse into a json structure. if (is_array($jsonValue)) {
- Read upRead up
- Exclude checks
Avoid using static access to class '\Faker\Factory' in method '__construct'. Open
$this->faker = Faker\Factory::create();
- Read upRead up
- Exclude checks