__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/
namespace ScssPhp\ScssPhp;
final class Warn
{
/**
* @var callable|null
* @phpstan-var (callable(string, bool): void)|null
*/
private static $callback;
/**
* Prints a warning message associated with the current `@import` or function call.
*
* This may only be called within a custom function or importer callback.
*
* @param string $message
*
* @return void
*/
public static function warning($message)
{
self::reportWarning($message, false);
}
/**
* Prints a deprecation warning message associated with the current `@import` or function call.
*
* This may only be called within a custom function or importer callback.
*
* @param string $message
*
* @return void
*/
public static function deprecation($message)
{
self::reportWarning($message, true);
}
/**
* @param callable|null $callback
*
* @return callable|null The previous warn callback
*
* @phpstan-param (callable(string, bool): void)|null $callback
*
* @phpstan-return (callable(string, bool): void)|null
*
* @internal
*/
public static function setCallback(callable $callback = null)
{
$previousCallback = self::$callback;
self::$callback = $callback;
return $previousCallback;
}
/**
* @param string $message
* @param bool $deprecation
*
* @return void
*/
private static function reportWarning($message, $deprecation)
{
if (self::$callback === null) {
throw new \BadMethodCallException('The warning Reporter may only be called within a custom function or importer callback.');
}
\call_user_func(self::$callback, $message, $deprecation);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Base | Folder | 0777 |
|
|
| Block | Folder | 0777 |
|
|
| Compiler | Folder | 0777 |
|
|
| Exception | Folder | 0777 |
|
|
| Formatter | Folder | 0777 |
|
|
| Logger | Folder | 0777 |
|
|
| Node | Folder | 0777 |
|
|
| SourceMap | Folder | 0777 |
|
|
| Util | Folder | 0777 |
|
|
| Block.php | File | 887 B | 0777 |
|
| Cache.php | File | 6.68 KB | 0777 |
|
| Colors.php | File | 7.63 KB | 0777 |
|
| CompilationResult.php | File | 1.11 KB | 0777 |
|
| Compiler.php | File | 307.08 KB | 0777 |
|
| Formatter.php | File | 8.55 KB | 0777 |
|
| LICENSE.md | File | 1.07 KB | 0777 |
|
| Node.php | File | 543 B | 0777 |
|
| OutputStyle.php | File | 1.49 KB | 0777 |
|
| Parser.php | File | 112.79 KB | 0777 |
|
| Type.php | File | 3.38 KB | 0777 |
|
| Util.php | File | 5.02 KB | 0777 |
|
| ValueConverter.php | File | 2.28 KB | 0777 |
|
| Version.php | File | 317 B | 0777 |
|
| Warn.php | File | 1.94 KB | 0777 |
|
| readme_moodle.txt | File | 474 B | 0777 |
|