1 | <?PHP |
||
2 | |||
3 | require __DIR__ . '/vendor/autoload.php'; |
||
4 | |||
5 | use JasperPHP\JasperPHP; |
||
0 ignored issues
–
show
|
|||
6 | /* |
||
7 | $input = __DIR__ . '/examples/hello_world_xml.jrxml'; |
||
8 | $output = __DIR__ . '/'; |
||
9 | |||
10 | $jasper = new JasperPHP; |
||
11 | |||
12 | $jasper->process( |
||
13 | $input, |
||
14 | $output, |
||
15 | array('pdf'), |
||
16 | array(), |
||
17 | array( |
||
18 | 'data_file' => __DIR__ . '/examples/xmlExample.xml', |
||
19 | 'driver' => 'xml', |
||
20 | 'xml_xpath' => '/CancelResponse/CancelResult/ID' |
||
21 | ) |
||
22 | )->execute();*/ |
||
23 | |||
24 | $input = __DIR__ . '/examples/hello_world_json.jrxml'; |
||
25 | $output = __DIR__ . '/'; |
||
26 | |||
27 | $jasper = new JasperPHP; |
||
28 | |||
29 | $jasper->process( |
||
30 | $input, |
||
31 | $output, |
||
32 | array('pdf'), |
||
33 | array(), |
||
34 | array( |
||
35 | 'driver' => 'json', |
||
36 | 'json_query' => 'contacts.person', |
||
37 | 'data_file' => __DIR__ . '/examples/jsonExample.json' |
||
38 | ) |
||
39 | )->execute(); |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths