Conditions | 3 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
33 | public function extract(Context $context, Value $value, PlainExtractorDefinitionInterface $definition, ExtractorInterface $extractor) |
||
34 | { |
||
35 | try { |
||
36 | JSON::stringify($context, $value); |
||
37 | |||
38 | if (!$definition->getNext()) { |
||
39 | throw new ExtractorException("Jsonable extractor should be provided with next extractor"); |
||
40 | } |
||
41 | |||
42 | return $extractor->extract($context, $value, $definition->getNext()); |
||
43 | } catch (TryCatchException $e) { |
||
|
|||
44 | throw new ExtractorException("Failed to stringify value: " . $e->getMessage()); |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.