| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 14 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 32 | protected function writeConfig(  | 
            ||
| 33 | string $key,  | 
            ||
| 34 | ?string $value = null,  | 
            ||
| 35 | string $config = 'airtel-money'  | 
            ||
| 36 |     ): ?string { | 
            ||
| 37 |         $configKey = "{$config}.{$key}"; | 
            ||
| 38 | |||
| 39 |         $oldValue = $value ?? $this->laravel->make('config')->get($configKey); | 
            ||
| 40 | |||
| 41 | $newValue = $this->ask($key, $oldValue);  | 
            ||
| 42 | |||
| 43 | $this->persistConfig($configKey, $newValue);  | 
            ||
| 44 | |||
| 45 | return $newValue;  | 
            ||
| 46 | }  | 
            ||
| 48 |