| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function register() |
||
| 34 | { |
||
| 35 | $this->mergeConfigFrom(__DIR__.'/../resources/config/facebook-pixel.php', 'facebook-pixel'); |
||
| 36 | |||
| 37 | $id = !empty(config('facebook-pixel.facebook_pixel_ids')) ? config('facebook-pixel.facebook_pixel_ids') : [config('facebook-pixel.facebook_pixel_id')]; |
||
| 38 | |||
| 39 | $laravelFacebookPixel = new LaravelFacebookPixel($id); |
||
| 40 | $laravelFacebookPixel->addCspNonce(config('facebook-pixel.csp_callback')); |
||
| 41 | if (config('facebook-pixel.enabled') === false) { |
||
| 42 | $laravelFacebookPixel->disable(); |
||
| 43 | } |
||
| 44 | |||
| 45 | $this->app->instance('WebLAgence\LaravelFacebookPixel\LaravelFacebookPixel', $laravelFacebookPixel); |
||
| 46 | $this->app->alias(LaravelFacebookPixel::class, 'facebook-pixel'); |
||
| 47 | } |
||
| 48 | } |
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