mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-14 07:28:41 +00:00
fix formatting
This commit is contained in:
parent
580460dc11
commit
f44d1c7983
|
|
@ -406,7 +406,8 @@ class PermissionAbstract implements \JsonSerializable
|
||||||
int $type = null,
|
int $type = null,
|
||||||
int $element = null,
|
int $element = null,
|
||||||
int $component = null
|
int $component = null
|
||||||
) : bool {
|
) : bool
|
||||||
|
{
|
||||||
return $permission === PermissionType::NONE ||
|
return $permission === PermissionType::NONE ||
|
||||||
(($unit === null || $this->unit === null || $this->unit === $unit)
|
(($unit === null || $this->unit === null || $this->unit === $unit)
|
||||||
&& ($app === null || $this->app === null || $this->app === $app)
|
&& ($app === null || $this->app === null || $this->app === $app)
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,8 @@ trait PermissionHandlingTrait
|
||||||
int $type = null,
|
int $type = null,
|
||||||
int $element = null,
|
int $element = null,
|
||||||
int $component = null
|
int $component = null
|
||||||
) : bool {
|
) : bool
|
||||||
|
{
|
||||||
$app = $app !== null ? \strtolower($app) : $app;
|
$app = $app !== null ? \strtolower($app) : $app;
|
||||||
|
|
||||||
foreach ($this->permissions as $p) {
|
foreach ($this->permissions as $p) {
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ final class AStar implements PathFinderInterface
|
||||||
int $endX, int $endY,
|
int $endX, int $endY,
|
||||||
Grid $grid,
|
Grid $grid,
|
||||||
int $heuristic, int $movement
|
int $heuristic, int $movement
|
||||||
) : Path {
|
) : Path
|
||||||
|
{
|
||||||
/** @var null|AStarNode $startNode */
|
/** @var null|AStarNode $startNode */
|
||||||
$startNode = $grid->getNode($startX, $startY);
|
$startNode = $grid->getNode($startX, $startY);
|
||||||
/** @var null|AStarNode $endNode */
|
/** @var null|AStarNode $endNode */
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ final class JumpPointSearch implements PathFinderInterface
|
||||||
int $endX, int $endY,
|
int $endX, int $endY,
|
||||||
Grid $grid,
|
Grid $grid,
|
||||||
int $heuristic, int $movement
|
int $heuristic, int $movement
|
||||||
) : Path {
|
) : Path
|
||||||
|
{
|
||||||
/** @var null|JumpPointNode $startNode */
|
/** @var null|JumpPointNode $startNode */
|
||||||
$startNode = $grid->getNode($startX, $startY);
|
$startNode = $grid->getNode($startX, $startY);
|
||||||
/** @var null|JumpPointNode $endNode */
|
/** @var null|JumpPointNode $endNode */
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,8 @@ final class Metrics
|
||||||
float $marketingCosts,
|
float $marketingCosts,
|
||||||
float $discountRate,
|
float $discountRate,
|
||||||
float $retentionRate
|
float $retentionRate
|
||||||
) : float {
|
) : float
|
||||||
|
{
|
||||||
return $customers * ($revenue - $cogs) * ((1 + $discountRate) / (1 + $discountRate - $retentionRate))
|
return $customers * ($revenue - $cogs) * ((1 + $discountRate) / (1 + $discountRate - $retentionRate))
|
||||||
- $customers * $marketingCosts * ((1 + $discountRate) / (1 + $discountRate - $retentionRate))
|
- $customers * $marketingCosts * ((1 + $discountRate) / (1 + $discountRate - $retentionRate))
|
||||||
- $customers * $acquistionCost;
|
- $customers * $acquistionCost;
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,8 @@ class Smtp
|
||||||
string $password,
|
string $password,
|
||||||
string $authtype = '',
|
string $authtype = '',
|
||||||
mixed $oauth = null
|
mixed $oauth = null
|
||||||
) : bool {
|
) : bool
|
||||||
|
{
|
||||||
if (empty($this->serverCaps)) {
|
if (empty($this->serverCaps)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,8 @@ final class SocketRouter implements RouterInterface
|
||||||
mixed $destination,
|
mixed $destination,
|
||||||
array $validation = [],
|
array $validation = [],
|
||||||
string $dataPattern = ''
|
string $dataPattern = ''
|
||||||
) : void {
|
) : void
|
||||||
|
{
|
||||||
if (!isset($this->routes[$route])) {
|
if (!isset($this->routes[$route])) {
|
||||||
$this->routes[$route] = [];
|
$this->routes[$route] = [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,8 @@ final class WebRouter implements RouterInterface
|
||||||
int $verb = RouteVerb::GET,
|
int $verb = RouteVerb::GET,
|
||||||
bool $csrf = false, array $validation = [],
|
bool $csrf = false, array $validation = [],
|
||||||
string $dataPattern = ''
|
string $dataPattern = ''
|
||||||
) : void {
|
) : void
|
||||||
|
{
|
||||||
if (!isset($this->routes[$route])) {
|
if (!isset($this->routes[$route])) {
|
||||||
$this->routes[$route] = [];
|
$this->routes[$route] = [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,8 @@ class Graph
|
||||||
array &$parent,
|
array &$parent,
|
||||||
int &$index,
|
int &$index,
|
||||||
array &$bridges
|
array &$bridges
|
||||||
) : void {
|
) : void
|
||||||
|
{
|
||||||
$id = $node->getId();
|
$id = $node->getId();
|
||||||
$visited[$id] = true;
|
$visited[$id] = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user