|
|
|
@ -2842,6 +2842,8 @@ |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null) |
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner) |
|
|
|
|
* @see \Illuminate\Cache\CacheManager |
|
|
|
|
* @see \Illuminate\Cache\Repository |
|
|
|
|
*/ |
|
|
|
@ -3397,33 +3399,6 @@ |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\Repository $instance */ |
|
|
|
|
return $instance->macroCall($method, $parameters); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Get a lock instance. |
|
|
|
|
* |
|
|
|
|
* @param string $name |
|
|
|
|
* @param int $seconds |
|
|
|
|
* @param string|null $owner |
|
|
|
|
* @return \Illuminate\Contracts\Cache\Lock |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function lock($name, $seconds = 0, $owner = null) |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
return $instance->lock($name, $seconds, $owner); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Restore a lock instance using the owner identifier. |
|
|
|
|
* |
|
|
|
|
* @param string $name |
|
|
|
|
* @param string $owner |
|
|
|
|
* @return \Illuminate\Contracts\Cache\Lock |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function restoreLock($name, $owner) |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
return $instance->restoreLock($name, $owner); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Remove all items from the cache. |
|
|
|
@ -3433,42 +3408,30 @@ |
|
|
|
|
*/ |
|
|
|
|
public static function flush() |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
/** @var \Illuminate\Cache\FileStore $instance */ |
|
|
|
|
return $instance->flush(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Get the Redis connection instance. |
|
|
|
|
* |
|
|
|
|
* @return \Illuminate\Redis\Connections\Connection |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function connection() |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
return $instance->connection(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Set the connection name to be used. |
|
|
|
|
* Get the Filesystem instance. |
|
|
|
|
* |
|
|
|
|
* @param string $connection |
|
|
|
|
* @return void |
|
|
|
|
* @return \Illuminate\Filesystem\Filesystem |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function setConnection($connection) |
|
|
|
|
public static function getFilesystem() |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
$instance->setConnection($connection); |
|
|
|
|
/** @var \Illuminate\Cache\FileStore $instance */ |
|
|
|
|
return $instance->getFilesystem(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Get the Redis database instance. |
|
|
|
|
* Get the working directory of the cache. |
|
|
|
|
* |
|
|
|
|
* @return \Illuminate\Contracts\Redis\Factory |
|
|
|
|
* @return string |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getRedis() |
|
|
|
|
public static function getDirectory() |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
return $instance->getRedis(); |
|
|
|
|
/** @var \Illuminate\Cache\FileStore $instance */ |
|
|
|
|
return $instance->getDirectory(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Get the cache key prefix. |
|
|
|
@ -3478,20 +3441,8 @@ |
|
|
|
|
*/ |
|
|
|
|
public static function getPrefix() |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
/** @var \Illuminate\Cache\FileStore $instance */ |
|
|
|
|
return $instance->getPrefix(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Set the cache key prefix. |
|
|
|
|
* |
|
|
|
|
* @param string $prefix |
|
|
|
|
* @return void |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function setPrefix($prefix) |
|
|
|
|
{ |
|
|
|
|
/** @var \Illuminate\Cache\RedisStore $instance */ |
|
|
|
|
$instance->setPrefix($prefix); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -15781,6 +15732,311 @@ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
namespace SimpleSoftwareIO\QrCode\Facades { |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
class QrCode { |
|
|
|
|
/** |
|
|
|
|
* Generates the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param string $text |
|
|
|
|
* @param string|null $filename |
|
|
|
|
* @return void|\Illuminate\Support\HtmlString|string |
|
|
|
|
* @throws WriterException |
|
|
|
|
* @throws InvalidArgumentException |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function generate($text, $filename = null) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->generate($text, $filename); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Merges an image over the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param string $filepath |
|
|
|
|
* @param float $percentage |
|
|
|
|
* @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function merge($filepath, $percentage = 0.2, $absolute = false) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->merge($filepath, $percentage, $absolute); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Merges an image string with the center of the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param string $content |
|
|
|
|
* @param float $percentage |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function mergeString($content, $percentage = 0.2) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->mergeString($content, $percentage); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the size of the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param int $pixels |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function size($pixels) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->size($pixels); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the format of the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param string $format |
|
|
|
|
* @return \Generator |
|
|
|
|
* @throws InvalidArgumentException |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function format($format) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->format($format); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the foreground color of the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param int $red |
|
|
|
|
* @param int $green |
|
|
|
|
* @param int $blue |
|
|
|
|
* @param null|int $alpha |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function color($red, $green, $blue, $alpha = null) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->color($red, $green, $blue, $alpha); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the background color of the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param int $red |
|
|
|
|
* @param int $green |
|
|
|
|
* @param int $blue |
|
|
|
|
* @param null|int $alpha |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function backgroundColor($red, $green, $blue, $alpha = null) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->backgroundColor($red, $green, $blue, $alpha); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the eye color for the provided eye index. |
|
|
|
|
* |
|
|
|
|
* @param int $eyeNumber |
|
|
|
|
* @param int $innerRed |
|
|
|
|
* @param int $innerGreen |
|
|
|
|
* @param int $innerBlue |
|
|
|
|
* @param int $outterRed |
|
|
|
|
* @param int $outterGreen |
|
|
|
|
* @param int $outterBlue |
|
|
|
|
* @return \Generator |
|
|
|
|
* @throws InvalidArgumentException |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the eye style. |
|
|
|
|
* |
|
|
|
|
* @param string $style |
|
|
|
|
* @return \Generator |
|
|
|
|
* @throws InvalidArgumentException |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function eye($style) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->eye($style); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the style of the blocks for the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param string $style |
|
|
|
|
* @param float $size |
|
|
|
|
* @return \Generator |
|
|
|
|
* @throws InvalidArgumentException |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function style($style, $size = 0.5) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->style($style, $size); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the encoding for the QrCode. |
|
|
|
|
* |
|
|
|
|
* Possible values are |
|
|
|
|
* ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, |
|
|
|
|
* ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11, |
|
|
|
|
* ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, |
|
|
|
|
* SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256, |
|
|
|
|
* UTF-16BE, UTF-8, ASCII, GBK, EUC-KR. |
|
|
|
|
* |
|
|
|
|
* @param string $encoding |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function encoding($encoding) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->encoding($encoding); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the error correction for the QrCode. |
|
|
|
|
* |
|
|
|
|
* L: 7% loss. |
|
|
|
|
* M: 15% loss. |
|
|
|
|
* Q: 25% loss. |
|
|
|
|
* H: 30% loss. |
|
|
|
|
* |
|
|
|
|
* @param string $errorCorrection |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function errorCorrection($errorCorrection) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->errorCorrection($errorCorrection); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Sets the margin of the QrCode. |
|
|
|
|
* |
|
|
|
|
* @param int $margin |
|
|
|
|
* @return \Generator |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function margin($margin) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->margin($margin); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Fetches the Writer. |
|
|
|
|
* |
|
|
|
|
* @param \SimpleSoftwareIO\QrCode\ImageRenderer $renderer |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\Writer |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getWriter($renderer) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getWriter($renderer); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Fetches the Image Renderer. |
|
|
|
|
* |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\ImageRenderer |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getRenderer() |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getRenderer(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Returns the Renderer Style. |
|
|
|
|
* |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\RendererStyle |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getRendererStyle() |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getRendererStyle(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Fetches the formatter. |
|
|
|
|
* |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\ImageBackEndInterface |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getFormatter() |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getFormatter(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Fetches the module. |
|
|
|
|
* |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\ModuleInterface |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getModule() |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getModule(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Fetches the eye style. |
|
|
|
|
* |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\EyeInterface |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getEye() |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getEye(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Fetches the color fill. |
|
|
|
|
* |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\Fill |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function getFill() |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->getFill(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* Creates a RGB or Alpha channel color. |
|
|
|
|
* |
|
|
|
|
* @param int $red |
|
|
|
|
* @param int $green |
|
|
|
|
* @param int $blue |
|
|
|
|
* @param null|int $alpha |
|
|
|
|
* @return \SimpleSoftwareIO\QrCode\ColorInterface |
|
|
|
|
* @static |
|
|
|
|
*/ |
|
|
|
|
public static function createColor($red, $green, $blue, $alpha = null) |
|
|
|
|
{ |
|
|
|
|
/** @var \SimpleSoftwareIO\QrCode\Generator $instance */ |
|
|
|
|
return $instance->createColor($red, $green, $blue, $alpha); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -18768,6 +19024,7 @@ namespace { |
|
|
|
|
class Feed extends \Laravelium\Feed\Feed {} |
|
|
|
|
class Purifier extends \Mews\Purifier\Facades\Purifier {} |
|
|
|
|
class Sentry extends \Sentry\Laravel\Facade {} |
|
|
|
|
class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|