HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/posscale/subdomains/xibo/vendor/gettext/gettext/src/Generators/Generator.php
<?php

namespace Gettext\Generators;

use Gettext\Translations;

abstract class Generator
{
    /**
     * Saves the translations in a file.
     *
     * @param Translations $translations
     * @param string       $file
     *
     * @return bool
     */
    public static function toFile(Translations $translations, $file)
    {
        $content = static::toString($translations);

        if (file_put_contents($file, $content) === false) {
            return false;
        }

        return true;
    }
}