Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public static function createWith($filenameOrText) |
|
38 | { |
||
39 | 1 | $provider = file_exists($filenameOrText) ? new File($filenameOrText) : new Text($filenameOrText); |
|
40 | |||
41 | 1 | $jq = new JsonQuery(new ProcessBuilder(), new DataTypeMapper()); |
|
42 | 1 | $jq->setDataProvider($provider); |
|
43 | |||
44 | 1 | return $jq; |
|
45 | } |
||
46 | } |
||
47 |