Formatter/YamlFormatter.php
public function clean(SplFileInfo $file)
    {
        $array = file($file->getRealPath());

        if (count($array)) {
            // Crowdin adds --- on the beginning of every Yaml during the export.
            if (1 === preg_match("/^---/", $array[0])) {
                unset($array[0]);
            }

            file_put_contents($file->getRealPath(), $array);
        }
    }
public function clean(SplFileInfo $file)
    {
        $array = file($file->getRealPath());

        if (count($array)) {
            // Crowdin adds --- on the beginning of every Yaml during the export.
            if (1 === preg_match("/^---/", $array[0])) {
                unset($array[0]);
            }

            file_put_contents($file->getRealPath(), $array);
        }
    }
{@inheritdoc}