| 1 | <?php | ||
| 14 | class ConfigServiceProvider implements ServiceProviderInterface | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * Configuration instance | ||
| 18 | * | ||
| 19 | * @var Registry | ||
| 20 | * @since 1.0 | ||
| 21 | */ | ||
| 22 | private $config; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Constructor. | ||
| 26 | * | ||
| 27 | * @param string $file Path to the config file. | ||
| 28 | * | ||
| 29 | * @since 1.0 | ||
| 30 | * @throws \RuntimeException | ||
| 31 | */ | ||
| 32 | 2 | public function __construct($file) | |
| 42 | |||
| 43 | /** | ||
| 44 | * Registers the service provider with a DI container. | ||
| 45 | * | ||
| 46 | * @param Container $container The DI container. | ||
| 47 | * | ||
| 48 | * @return void | ||
| 49 | * | ||
| 50 | * @since 1.0 | ||
| 51 | */ | ||
| 52 | 1 | public function register(Container $container) | |
| 56 | |||
| 57 | /** | ||
| 58 | * Get the `config` service | ||
| 59 | * | ||
| 60 | * @param Container $container The DI container. | ||
| 61 | * | ||
| 62 | * @return Registry | ||
| 63 | * | ||
| 64 | * @since 1.0 | ||
| 65 | */ | ||
| 66 | 1 | public function getConfigService(Container $container) | |
| 70 | } | ||
| 71 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.