| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function register() |
||
| 38 | { |
||
| 39 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'vouchers'); |
||
| 40 | |||
| 41 | $this->app->singleton('vouchers', function ($app) { |
||
|
|
|||
| 42 | $generator = new VoucherGenerator(config('vouchers.characters'), config('vouchers.mask')); |
||
| 43 | $generator->setPrefix(config('vouchers.prefix')); |
||
| 44 | $generator->setSuffix(config('vouchers.suffix')); |
||
| 45 | $generator->setSeparator(config('vouchers.separator')); |
||
| 46 | return new Vouchers($generator); |
||
| 47 | }); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.