Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public static function add_ajax_events() |
||
24 | { |
||
25 | $ajax_events = array('pagantis_checkout'); |
||
26 | foreach ($ajax_events as $ajax_event => $nopriv) { |
||
27 | add_action('wp_ajax_woocommerce_' . $ajax_event, array(__CLASS__, $ajax_event)); |
||
28 | if ($nopriv) { |
||
29 | add_action( |
||
30 | 'wp_ajax_nopriv_woocommerce_' . $ajax_event, |
||
31 | array(__CLASS__, $ajax_event) |
||
32 | ); |
||
33 | // WC AJAX can be used for frontend ajax requests. |
||
34 | add_action('wc_ajax_' . $ajax_event, array(__CLASS__, $ajax_event)); |
||
35 | } |
||
49 |
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