| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 36 | private static function spacingParametersYml(CommandEvent $event) | ||
| 37 |     { | ||
| 38 |         if (!file_exists($file = 'vendor/incenteev/composer-parameter-handler/Processor.php')) { | ||
| 39 | return; | ||
| 40 | } | ||
| 41 | |||
| 42 | $content = file_get_contents($file); | ||
| 43 | $matches = 0; | ||
| 44 |         $content = str_replace('Yaml::dump($actualValues, 99)', 'Yaml::dump($actualValues, 99, 2)', $content, $matches); | ||
| 45 |         if ($matches) { | ||
| 46 | file_put_contents($file, $content, LOCK_EX); | ||
| 47 |             $event->getIO()->write('Updated spacing for incenteev parameters'); | ||
| 48 | } | ||
| 49 | } | ||
| 50 | } | ||
| 51 | 
If you suppress an error, we recommend checking for the error condition explicitly: