| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 12 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | View Code Duplication | protected static function configureOptionResolver(OptionsResolver $resolver) |
|
| 40 | { |
||
| 41 | $resolver->setDefaults([ |
||
| 42 | 'host' => '127.0.0.1', |
||
| 43 | 'port' => '8087', |
||
| 44 | 'type' => null, |
||
| 45 | ]); |
||
| 46 | |||
| 47 | $resolver->setAllowedTypes('host', ['string']); |
||
| 48 | $resolver->setAllowedTypes('port', ['string', 'int']); |
||
| 49 | $resolver->setAllowedTypes('type', ['string', 'null']); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This class, trait or interface has been deprecated.