mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +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:
|
||||
$this->hasPermission = true;
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -523,15 +523,15 @@ class PermissionAbstract implements \JsonSerializable
|
|||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'unit' => $this->unit,
|
||||
'app' => $this->app,
|
||||
'module' => $this->module,
|
||||
'from' => $this->from,
|
||||
'id' => $this->id,
|
||||
'unit' => $this->unit,
|
||||
'app' => $this->app,
|
||||
'module' => $this->module,
|
||||
'from' => $this->from,
|
||||
'category' => $this->category,
|
||||
'element' => $this->element,
|
||||
'component' => $this->component,
|
||||
'permission' => $this->getPermission(),
|
||||
'element' => $this->element,
|
||||
'component' => $this->component,
|
||||
'permission' => $this->getPermission(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace phpOMS\Application;
|
||||
|
||||
use phpOMS\DataStorage\Database\DatabasePool;
|
||||
use phpOMS\System\File\PathException;
|
||||
use phpOMS\System\File\PermissionException;
|
||||
use phpOMS\Utils\Parser\Php\ArrayParser;
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ final class ReadMapper extends DataMapperAbstract
|
|||
$results = $sth->fetchAll(\PDO::FETCH_ASSOC);
|
||||
}
|
||||
} catch (\Throwable $t) {
|
||||
$results = false;
|
||||
$results = false;
|
||||
\var_dump($q = $query->toSql());
|
||||
\var_dump($t->getMessage());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ final class Skew
|
|||
$bestScore = 0;
|
||||
$bestDegree = 0;
|
||||
|
||||
for ($i = -$maxDegree; $i < $maxDegree; $i += 1) {
|
||||
for ($i = -$maxDegree; $i < $maxDegree; ++$i) {
|
||||
if ($i === 0) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
use phpOMS\Application\ApplicationInfo;
|
||||
use phpOMS\Autoloader;
|
||||
use phpOMS\DataStorage\Database\Query\Builder;
|
||||
use phpOMS\Message\Http\HttpRequest;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Module\Exception\InvalidModuleException;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ use phpOMS\System\File\Local\LocalStorage;
|
|||
use phpOMS\System\File\PathException;
|
||||
use phpOMS\System\OperatingSystem;
|
||||
use phpOMS\System\SystemType;
|
||||
use phpOMS\System\SystemUtils;
|
||||
use phpOMS\Utils\IO\Zip\Zip;
|
||||
use phpOMS\Utils\StringUtils;
|
||||
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ class Server extends SocketAbstract
|
|||
$this->app->logger->debug('Connecting client...');
|
||||
$this->app->accountManager->add(new NullAccount(1));
|
||||
$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.');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class BaseModel
|
|||
$this->belongsToOne = new BelongsToModel();
|
||||
|
||||
$this->serializable = new class() implements SerializableInterface {
|
||||
public $value = '';
|
||||
public $value = '';
|
||||
|
||||
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_json' => ['name' => 'test_base_json', 'type' => 'Json', 'internal' => 'json'],
|
||||
'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_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'],
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
|
||||
use Model\CoreSettings;
|
||||
use phpOMS\Application\ApplicationAbstract;
|
||||
use phpOMS\DataStorage\Database\DatabasePool;
|
||||
use phpOMS\Module\InstallerAbstract;
|
||||
use phpOMS\Module\ModuleInfo;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user