PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

BasicException.php
wget 'https://lists2.roe3.org/hesk/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php'
View Content
<?php

/**
 * Basic exception.
 *
 * Please report bugs on https://github.com/matthiasmullie/minify/issues
 *
 * @author Matthias Mullie <minify@mullie.eu>
 * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved
 * @license MIT License
 */

namespace MatthiasMullie\Minify\Exceptions;

use MatthiasMullie\Minify\Exception;

/**
 * Basic Exception Class.
 *
 * @author Matthias Mullie <minify@mullie.eu>
 */
abstract class BasicException extends Exception {}
FileImportException.php
wget 'https://lists2.roe3.org/hesk/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php'
View Content
<?php

/**
 * File Import Exception.
 *
 * Please report bugs on https://github.com/matthiasmullie/minify/issues
 *
 * @author Matthias Mullie <minify@mullie.eu>
 * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved
 * @license MIT License
 */

namespace MatthiasMullie\Minify\Exceptions;

/**
 * File Import Exception Class.
 *
 * @author Matthias Mullie <minify@mullie.eu>
 */
class FileImportException extends BasicException {}
IOException.php
wget 'https://lists2.roe3.org/hesk/vendor/matthiasmullie/minify/src/Exceptions/IOException.php'
View Content
<?php

/**
 * IO Exception.
 *
 * Please report bugs on https://github.com/matthiasmullie/minify/issues
 *
 * @author Matthias Mullie <minify@mullie.eu>
 * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved
 * @license MIT License
 */

namespace MatthiasMullie\Minify\Exceptions;

/**
 * IO Exception Class.
 *
 * @author Matthias Mullie <minify@mullie.eu>
 */
class IOException extends BasicException {}
PatternMatchException.php
wget 'https://lists2.roe3.org/hesk/vendor/matthiasmullie/minify/src/Exceptions/PatternMatchException.php'
View Content
<?php

/**
 * Pattern match exception.
 *
 * Please report bugs on https://github.com/matthiasmullie/minify/issues
 *
 * @author Ere Maijala <ere.maijala@helsinki.fi>
 * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved
 * @license MIT License
 */

namespace MatthiasMullie\Minify\Exceptions;

/**
 * Pattern Match Exception Class.
 *
 * @author Ere Maijala <ere.maijala@helsinki.fi>
 */
class PatternMatchException extends BasicException
{
    /**
     * Create an exception from preg_last_error.
     *
     * @param string $msg Error message
     */
    public static function fromLastError($msg)
    {
        $msg .= ': Error ' . preg_last_error();
        if (PHP_MAJOR_VERSION >= 8) {
            $msg .= ' - ' . preg_last_error_msg();
        }

        return new PatternMatchException($msg);
    }
}