mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +00:00
Automated formatting changes
This commit is contained in:
parent
4da3c35cbf
commit
bc8c30052c
|
|
@ -443,7 +443,7 @@ class PermissionAbstract implements \JsonSerializable
|
||||||
case PermissionType::PERMISSION:
|
case PermissionType::PERMISSION:
|
||||||
$this->hasPermission = true;
|
$this->hasPermission = true;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -523,15 +523,15 @@ class PermissionAbstract implements \JsonSerializable
|
||||||
public function jsonSerialize() : mixed
|
public function jsonSerialize() : mixed
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'unit' => $this->unit,
|
'unit' => $this->unit,
|
||||||
'app' => $this->app,
|
'app' => $this->app,
|
||||||
'module' => $this->module,
|
'module' => $this->module,
|
||||||
'from' => $this->from,
|
'from' => $this->from,
|
||||||
'category' => $this->category,
|
'category' => $this->category,
|
||||||
'element' => $this->element,
|
'element' => $this->element,
|
||||||
'component' => $this->component,
|
'component' => $this->component,
|
||||||
'permission' => $this->getPermission(),
|
'permission' => $this->getPermission(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpOMS\Application;
|
namespace phpOMS\Application;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\System\File\PathException;
|
use phpOMS\System\File\PathException;
|
||||||
use phpOMS\System\File\PermissionException;
|
use phpOMS\System\File\PermissionException;
|
||||||
use phpOMS\Utils\Parser\Php\ArrayParser;
|
use phpOMS\Utils\Parser\Php\ArrayParser;
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ final class ReadMapper extends DataMapperAbstract
|
||||||
$results = $sth->fetchAll(\PDO::FETCH_ASSOC);
|
$results = $sth->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
}
|
}
|
||||||
} catch (\Throwable $t) {
|
} catch (\Throwable $t) {
|
||||||
$results = false;
|
$results = false;
|
||||||
\var_dump($q = $query->toSql());
|
\var_dump($q = $query->toSql());
|
||||||
\var_dump($t->getMessage());
|
\var_dump($t->getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ final class Skew
|
||||||
$bestScore = 0;
|
$bestScore = 0;
|
||||||
$bestDegree = 0;
|
$bestDegree = 0;
|
||||||
|
|
||||||
for ($i = -$maxDegree; $i < $maxDegree; $i += 1) {
|
for ($i = -$maxDegree; $i < $maxDegree; ++$i) {
|
||||||
if ($i === 0) {
|
if ($i === 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ use phpOMS\Application\ApplicationAbstract;
|
||||||
use phpOMS\Application\ApplicationInfo;
|
use phpOMS\Application\ApplicationInfo;
|
||||||
use phpOMS\Autoloader;
|
use phpOMS\Autoloader;
|
||||||
use phpOMS\DataStorage\Database\Query\Builder;
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
use phpOMS\Message\Http\HttpRequest;
|
|
||||||
use phpOMS\Message\RequestAbstract;
|
use phpOMS\Message\RequestAbstract;
|
||||||
use phpOMS\Module\Exception\InvalidModuleException;
|
use phpOMS\Module\Exception\InvalidModuleException;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ use phpOMS\System\File\Local\LocalStorage;
|
||||||
use phpOMS\System\File\PathException;
|
use phpOMS\System\File\PathException;
|
||||||
use phpOMS\System\OperatingSystem;
|
use phpOMS\System\OperatingSystem;
|
||||||
use phpOMS\System\SystemType;
|
use phpOMS\System\SystemType;
|
||||||
use phpOMS\System\SystemUtils;
|
|
||||||
use phpOMS\Utils\IO\Zip\Zip;
|
use phpOMS\Utils\IO\Zip\Zip;
|
||||||
use phpOMS\Utils\StringUtils;
|
use phpOMS\Utils\StringUtils;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -272,7 +272,7 @@ class Server extends SocketAbstract
|
||||||
$this->app->logger->debug('Connecting client...');
|
$this->app->logger->debug('Connecting client...');
|
||||||
$this->app->accountManager->add(new NullAccount(1));
|
$this->app->accountManager->add(new NullAccount(1));
|
||||||
$this->clientManager->add($client = new ClientConnection(new NullAccount(1), $socket));
|
$this->clientManager->add($client = new ClientConnection(new NullAccount(1), $socket));
|
||||||
$this->conn[$client->getId()] = $socket;
|
$this->conn[$client->getId()] = $socket;
|
||||||
$this->app->logger->debug('Connected client.');
|
$this->app->logger->debug('Connected client.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ class BaseModel
|
||||||
$this->belongsToOne = new BelongsToModel();
|
$this->belongsToOne = new BelongsToModel();
|
||||||
|
|
||||||
$this->serializable = new class() implements SerializableInterface {
|
$this->serializable = new class() implements SerializableInterface {
|
||||||
public $value = '';
|
public $value = '';
|
||||||
|
|
||||||
public function serialize() : string
|
public function serialize() : string
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class BaseModelMapper extends DataMapperFactory
|
||||||
'test_base_float' => ['name' => 'test_base_float', 'type' => 'float', 'internal' => 'float'],
|
'test_base_float' => ['name' => 'test_base_float', 'type' => 'float', 'internal' => 'float'],
|
||||||
'test_base_json' => ['name' => 'test_base_json', 'type' => 'Json', 'internal' => 'json'],
|
'test_base_json' => ['name' => 'test_base_json', 'type' => 'Json', 'internal' => 'json'],
|
||||||
'test_base_json_serializable' => ['name' => 'test_base_json_serializable', 'type' => 'Json', 'internal' => 'jsonSerializable'],
|
'test_base_json_serializable' => ['name' => 'test_base_json_serializable', 'type' => 'Json', 'internal' => 'jsonSerializable'],
|
||||||
'test_base_serializable' => ['name' => 'test_base_serializable', 'type' => 'Serializable', 'internal' => 'serializable'],
|
'test_base_serializable' => ['name' => 'test_base_serializable', 'type' => 'Serializable', 'internal' => 'serializable'],
|
||||||
'test_base_datetime' => ['name' => 'test_base_datetime', 'type' => 'DateTime', 'internal' => 'datetime'],
|
'test_base_datetime' => ['name' => 'test_base_datetime', 'type' => 'DateTime', 'internal' => 'datetime'],
|
||||||
'test_base_datetime_null' => ['name' => 'test_base_datetime_null', 'type' => 'DateTime', 'internal' => 'datetime_null'],
|
'test_base_datetime_null' => ['name' => 'test_base_datetime_null', 'type' => 'DateTime', 'internal' => 'datetime_null'],
|
||||||
'test_base_owns_one_self' => ['name' => 'test_base_owns_one_self', 'type' => 'int', 'internal' => 'ownsOneSelf'],
|
'test_base_owns_one_self' => ['name' => 'test_base_owns_one_self', 'type' => 'int', 'internal' => 'ownsOneSelf'],
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ require_once __DIR__ . '/../Autoloader.php';
|
||||||
|
|
||||||
use Model\CoreSettings;
|
use Model\CoreSettings;
|
||||||
use phpOMS\Application\ApplicationAbstract;
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\Module\InstallerAbstract;
|
use phpOMS\Module\InstallerAbstract;
|
||||||
use phpOMS\Module\ModuleInfo;
|
use phpOMS\Module\ModuleInfo;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user