| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Cornford\Googlitics; |
||
| 38 | public function register() |
||
| 39 | { |
||
| 40 | $configPath = __DIR__ . '/../../config/config.php'; |
||
| 41 | $this->mergeConfigFrom($configPath, 'googlitics'); |
||
| 42 | |||
| 43 | $this->app->singleton('analytics', function($app) |
||
| 44 | { |
||
| 45 | return new Analytics( |
||
| 46 | $this->app->make('Illuminate\Foundation\Application'), |
||
| 47 | $this->app->view, |
||
|
|
|||
| 48 | $app['config']->get('googlitics') |
||
| 49 | ); |
||
| 50 | }); |
||
| 51 | } |
||
| 52 | |||
| 64 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: