public static function fillMissingZeros($number, $length, $before = true)
    {
        /*
         * It's not a number? Empty string is not a number too.
         * Nothing to do
         */
        if (!is_numeric($number)) {
            return '';
        }

        $text = trim($number);
        $textLength = mb_strlen($text);

        if ($length <= $textLength) {
            return $text;
        }

        for ($i = ($length - $textLength); 0 < $i; --$i) {
            if ($before) {
                $text = '0' . $text;

                continue;
            }

            $text .= '0';
        }

        return $text;
    }