1 | <?php |
||
2 | |||
3 | namespace WebLAgence\LaravelFacebookPixel; |
||
4 | |||
5 | use Illuminate\View\View; |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | /** |
||
8 | * Class ScriptViewCreator |
||
9 | * @package WebLAgence\LaravelFacebookPixel |
||
10 | */ |
||
11 | class ScriptViewCreator |
||
12 | { |
||
13 | /** |
||
14 | * @var LaravelFacebookPixel |
||
15 | */ |
||
16 | protected $laravelFacebookPixel; |
||
17 | |||
18 | /** |
||
19 | * ScriptViewCreator constructor. |
||
20 | * @param LaravelFacebookPixel $laravelFacebookPixel |
||
21 | */ |
||
22 | public function __construct(LaravelFacebookPixel $laravelFacebookPixel) |
||
23 | { |
||
24 | $this->laravelFacebookPixel = $laravelFacebookPixel; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param View $view |
||
29 | */ |
||
30 | public function create(View $view) |
||
31 | { |
||
32 | $view->with('enabled', $this->laravelFacebookPixel->isEnabled()) |
||
33 | ->with('nonce', $this->laravelFacebookPixel->getCspNonceCallback()) |
||
34 | ->with('id', $this->laravelFacebookPixel->id()); |
||
35 | } |
||
36 | } |
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