This commit is contained in:
2020-12-17 14:12:44 +08:00
parent 9516baef92
commit 33e5416dda
38 changed files with 100 additions and 101 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ namespace Snowflake;
use Exception;
use HttpServer\IInterface\Task;
use JetBrains\PhpStorm\Pure;
use ReflectionException;
use Snowflake\Abstracts\Config;
use Snowflake\Core\JSON;
@@ -222,7 +222,7 @@ class Snowflake
* @return Server|null
* @throws
*/
#[Pure] public static function getWebSocket(): ?Server
public static function getWebSocket(): ?Server
{
$server = static::app()->server->getServer();
if (!($server instanceof Server)) {
@@ -319,7 +319,7 @@ class Snowflake
/**
* @return bool
*/
#[Pure] public static function isMac(): bool
public static function isMac(): bool
{
$output = strtolower(PHP_OS | PHP_OS_FAMILY);
if (str_contains('mac', $output)) {
@@ -334,7 +334,7 @@ class Snowflake
/**
* @return bool
*/
#[Pure] public static function isLinux(): bool
public static function isLinux(): bool
{
if (!static::isMac()) {
return true;