| Total Complexity | 3 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class LaravelCryptoStatsProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Indicates if loading of the provider is deferred. |
||
| 13 | * |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | protected $defer = true; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Bootstrap services. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function boot() |
||
| 24 | { |
||
| 25 | $this->publishes([ |
||
| 26 | __DIR__.'/../config/laravel_crypto_stats.php' => config_path('laravel_crypto_stats.php'), |
||
| 27 | ]); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Register services. |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function register() |
||
| 36 | { |
||
| 37 | $this->app->bind('laravel-crypto-stats', function () { |
||
| 38 | return new LaravelCryptoStats(); |
||
| 39 | }); |
||
| 40 | |||
| 41 | $this->app->bind('chainso', function () { |
||
| 42 | return new ChainsoConnector(); |
||
| 43 | }); |
||
| 44 | |||
| 45 | $this->app->bind('etherscan', function () { |
||
| 46 | return new EtherscanConnector(); |
||
| 47 | }); |
||
| 48 | |||
| 49 | $this->app->tag(['chainso', 'etherscan'], 'laravel-crypto-stats.connectors'); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the services provided by the provider. |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function provides() |
||
| 60 | } |
||
| 61 | } |
||
| 62 |
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