From f44d1c798322819848ab40756d0e142475a54f90 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 4 Jul 2021 18:25:57 +0200 Subject: [PATCH] fix formatting --- Account/PermissionAbstract.php | 3 ++- Account/PermissionHandlingTrait.php | 3 ++- Algorithm/PathFinding/AStar.php | 3 ++- Algorithm/PathFinding/JumpPointSearch.php | 3 ++- Business/Marketing/Metrics.php | 3 ++- Message/Mail/Smtp.php | 3 ++- Router/SocketRouter.php | 3 ++- Router/WebRouter.php | 3 ++- Stdlib/Graph/Graph.php | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Account/PermissionAbstract.php b/Account/PermissionAbstract.php index cd376fee4..c3d31c64f 100644 --- a/Account/PermissionAbstract.php +++ b/Account/PermissionAbstract.php @@ -406,7 +406,8 @@ class PermissionAbstract implements \JsonSerializable int $type = null, int $element = null, int $component = null - ) : bool { + ) : bool + { return $permission === PermissionType::NONE || (($unit === null || $this->unit === null || $this->unit === $unit) && ($app === null || $this->app === null || $this->app === $app) diff --git a/Account/PermissionHandlingTrait.php b/Account/PermissionHandlingTrait.php index 29caf8e98..0f32d93e7 100644 --- a/Account/PermissionHandlingTrait.php +++ b/Account/PermissionHandlingTrait.php @@ -153,7 +153,8 @@ trait PermissionHandlingTrait int $type = null, int $element = null, int $component = null - ) : bool { + ) : bool + { $app = $app !== null ? \strtolower($app) : $app; foreach ($this->permissions as $p) { diff --git a/Algorithm/PathFinding/AStar.php b/Algorithm/PathFinding/AStar.php index e6c02f5d3..41e60b53a 100644 --- a/Algorithm/PathFinding/AStar.php +++ b/Algorithm/PathFinding/AStar.php @@ -39,7 +39,8 @@ final class AStar implements PathFinderInterface int $endX, int $endY, Grid $grid, int $heuristic, int $movement - ) : Path { + ) : Path + { /** @var null|AStarNode $startNode */ $startNode = $grid->getNode($startX, $startY); /** @var null|AStarNode $endNode */ diff --git a/Algorithm/PathFinding/JumpPointSearch.php b/Algorithm/PathFinding/JumpPointSearch.php index ffc2c643a..1429d7a33 100644 --- a/Algorithm/PathFinding/JumpPointSearch.php +++ b/Algorithm/PathFinding/JumpPointSearch.php @@ -39,7 +39,8 @@ final class JumpPointSearch implements PathFinderInterface int $endX, int $endY, Grid $grid, int $heuristic, int $movement - ) : Path { + ) : Path + { /** @var null|JumpPointNode $startNode */ $startNode = $grid->getNode($startX, $startY); /** @var null|JumpPointNode $endNode */ diff --git a/Business/Marketing/Metrics.php b/Business/Marketing/Metrics.php index 136417194..4dc9dcf01 100644 --- a/Business/Marketing/Metrics.php +++ b/Business/Marketing/Metrics.php @@ -143,7 +143,8 @@ final class Metrics float $marketingCosts, float $discountRate, float $retentionRate - ) : float { + ) : float + { return $customers * ($revenue - $cogs) * ((1 + $discountRate) / (1 + $discountRate - $retentionRate)) - $customers * $marketingCosts * ((1 + $discountRate) / (1 + $discountRate - $retentionRate)) - $customers * $acquistionCost; diff --git a/Message/Mail/Smtp.php b/Message/Mail/Smtp.php index 0aad272a9..12b9e137f 100644 --- a/Message/Mail/Smtp.php +++ b/Message/Mail/Smtp.php @@ -236,7 +236,8 @@ class Smtp string $password, string $authtype = '', mixed $oauth = null - ) : bool { + ) : bool + { if (empty($this->serverCaps)) { return false; } diff --git a/Router/SocketRouter.php b/Router/SocketRouter.php index 3d07eec8a..994c395cf 100644 --- a/Router/SocketRouter.php +++ b/Router/SocketRouter.php @@ -84,7 +84,8 @@ final class SocketRouter implements RouterInterface mixed $destination, array $validation = [], string $dataPattern = '' - ) : void { + ) : void + { if (!isset($this->routes[$route])) { $this->routes[$route] = []; } diff --git a/Router/WebRouter.php b/Router/WebRouter.php index bdbdbbc5f..5a8f7ac45 100644 --- a/Router/WebRouter.php +++ b/Router/WebRouter.php @@ -91,7 +91,8 @@ final class WebRouter implements RouterInterface int $verb = RouteVerb::GET, bool $csrf = false, array $validation = [], string $dataPattern = '' - ) : void { + ) : void + { if (!isset($this->routes[$route])) { $this->routes[$route] = []; } diff --git a/Stdlib/Graph/Graph.php b/Stdlib/Graph/Graph.php index 84acf96a9..26bcc3a25 100644 --- a/Stdlib/Graph/Graph.php +++ b/Stdlib/Graph/Graph.php @@ -284,7 +284,8 @@ class Graph array &$parent, int &$index, array &$bridges - ) : void { + ) : void + { $id = $node->getId(); $visited[$id] = true;