From a49251c0bb897f5200fa06024adf41716a04204a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 26 Jan 2020 12:27:35 +0100 Subject: [PATCH] phpcs fix --- Account/Account.php | 28 +++++------ Account/AccountManager.php | 4 +- Account/Group.php | 12 ++--- Account/PermissionAbstract.php | 18 +++---- Account/PermissionHandlingTrait.php | 4 +- Algorithm/Clustering/Kmeans.php | 10 ++-- Algorithm/Clustering/Point.php | 6 +-- Algorithm/JobScheduling/Job.php | 8 ++-- Algorithm/Knapsack/Backpack.php | 8 ++-- Algorithm/Knapsack/Bounded.php | 4 +- Algorithm/Knapsack/Continuous.php | 2 +- Algorithm/Knapsack/Item.php | 6 +-- Algorithm/PathFinding/AStarNode.php | 10 ++-- Algorithm/PathFinding/Grid.php | 2 +- Algorithm/PathFinding/JumpPointNode.php | 12 ++--- Algorithm/PathFinding/Node.php | 16 +++---- Algorithm/PathFinding/Path.php | 8 ++-- Algorithm/Sort/TimSort.php | 2 +- ApplicationAbstract.php | 48 +++++++++---------- Asset/AssetManager.php | 2 +- Autoloader.php | 2 +- Business/Marketing/NetPromoterScore.php | 2 +- Config/OptionsTrait.php | 2 +- Config/SettingsAbstract.php | 12 ++--- DataStorage/Cache/CachePool.php | 2 +- .../Cache/Connection/ConnectionAbstract.php | 11 ++--- DataStorage/Cache/Connection/FileCache.php | 6 +-- DataStorage/Cache/Connection/MemCached.php | 2 +- DataStorage/Cache/Connection/RedisCache.php | 3 +- DataStorage/Cookie/CookieJar.php | 4 +- DataStorage/Database/BuilderAbstract.php | 12 ++--- .../Connection/ConnectionAbstract.php | 14 +++--- DataStorage/Database/DataMapperAbstract.php | 38 +++++++-------- DataStorage/Database/DatabasePool.php | 4 +- DataStorage/Database/GrammarAbstract.php | 14 +++--- DataStorage/Database/Query/Builder.php | 44 ++++++++--------- .../Database/Query/Grammar/Grammar.php | 10 ++-- .../Database/Query/Grammar/MysqlGrammar.php | 2 +- .../Database/Query/Grammar/SQLiteGrammar.php | 2 +- DataStorage/Database/Query/Parameter.php | 2 +- DataStorage/Database/Schema/Builder.php | 14 +++--- .../Database/Schema/Grammar/Grammar.php | 10 ++-- .../Database/Schema/Grammar/MysqlGrammar.php | 2 +- .../Database/Schema/Grammar/SQLiteGrammar.php | 2 +- DataStorage/Database/SchemaMapper.php | 2 +- DataStorage/Session/ConsoleSession.php | 8 ++-- DataStorage/Session/ConsoleSessionHandler.php | 8 ++-- DataStorage/Session/HttpSession.php | 8 ++-- Dispatcher/Dispatcher.php | 4 +- Event/EventManager.php | 6 +-- Localization/Defaults/City.php | 14 +++--- Localization/Defaults/CityMapper.php | 6 +-- Localization/Defaults/Country.php | 12 ++--- Localization/Defaults/CountryMapper.php | 6 +-- Localization/Defaults/Currency.php | 12 ++--- Localization/Defaults/CurrencyMapper.php | 6 +-- Localization/Defaults/Iban.php | 10 ++-- Localization/Defaults/IbanMapper.php | 6 +-- Localization/Defaults/Language.php | 12 ++--- Localization/Defaults/LanguageMapper.php | 6 +-- Localization/L11nManager.php | 4 +- Localization/Localization.php | 28 +++++------ Localization/Money.php | 12 ++--- Log/FileLogger.php | 12 ++--- Math/Functions/Gamma.php | 2 +- Math/Geometry/Shape/D2/Polygon.php | 4 +- Math/Geometry/Shape/D3/Sphere.php | 2 +- Math/Matrix/CholeskyDecomposition.php | 6 +-- Math/Matrix/EigenvalueDecomposition.php | 20 ++++---- Math/Matrix/LUDecomposition.php | 10 ++-- Math/Matrix/Matrix.php | 8 ++-- Math/Matrix/QRDecomposition.php | 8 ++-- Math/Number/Complex.php | 4 +- .../CubicSplineInterpolation.php | 8 ++-- .../Interpolation/LagrangeInterpolation.php | 2 +- .../Interpolation/LinearInterpolation.php | 8 ++-- .../Regression/PolynomialRegression.php | 2 +- .../Distribution/ChiSquaredDistribution.php | 2 +- .../Distribution/LogNormalDistribution.php | 2 +- .../Distribution/NormalDistribution.php | 2 +- .../Distribution/ParetoDistribution.php | 2 +- .../Stochastic/Distribution/TDistribution.php | 2 +- Math/Stochastic/Distribution/ZTest.php | 2 + Math/Stochastic/NaiveBayesClassifier.php | 8 ++-- Math/Topology/Metrics2D.php | 2 +- Math/Topology/MetricsND.php | 2 +- Message/Console/Header.php | 4 +- Message/Console/Request.php | 8 ++-- Message/Console/Response.php | 2 +- Message/HeaderAbstract.php | 8 ++-- Message/Http/Header.php | 2 +- Message/Http/Request.php | 12 ++--- Message/Mail/EmailAbstract.php | 12 ++--- Message/Mail/Mail.php | 36 +++++++------- Message/RequestAbstract.php | 8 ++-- Message/ResponseAbstract.php | 4 +- Message/Socket/Header.php | 8 ++-- Message/Socket/PacketManager.php | 7 +-- Message/Socket/Response.php | 2 +- Model/Html/FormElement.php | 14 +++--- Model/Html/Head.php | 14 +++--- Model/Html/Meta.php | 14 +++--- Model/Message/Dom.php | 10 ++-- Model/Message/FormValidation.php | 4 +- Model/Message/Notify.php | 12 ++--- Model/Message/Redirect.php | 8 ++-- Model/Message/Reload.php | 4 +- Module/InfoManager.php | 4 +- Module/ModuleAbstract.php | 18 +++---- Module/ModuleManager.php | 16 +++---- Module/PackageManager.php | 10 ++-- Module/UninstallerAbstract.php | 2 +- Preloader.php | 4 +- Router/SocketRouter.php | 2 +- Router/WebRouter.php | 2 +- Security/PhpCode.php | 4 +- Socket/Client/Client.php | 10 ++-- Socket/Server/Server.php | 13 +++-- Socket/SocketAbstract.php | 8 ++-- Stdlib/Base/Address.php | 8 ++-- Stdlib/Base/EnumArray.php | 2 +- Stdlib/Base/Heap.php | 4 +- Stdlib/Base/Iban.php | 2 +- Stdlib/Base/Location.php | 16 +++---- Stdlib/Base/SmartDateTime.php | 4 +- Stdlib/Graph/Edge.php | 12 ++--- Stdlib/Graph/Graph.php | 4 +- Stdlib/Graph/Node.php | 10 ++-- Stdlib/Map/MultiMap.php | 8 ++-- Stdlib/Queue/PriorityQueue.php | 4 +- System/File/Ftp/Directory.php | 2 +- System/File/Ftp/File.php | 4 +- System/File/Ftp/FileAbstract.php | 16 +++---- System/File/Local/Directory.php | 4 +- System/File/Local/FileAbstract.php | 16 +++---- System/File/Storage.php | 4 +- Uri/Argument.php | 28 +++++------ Uri/Http.php | 28 +++++------ Uri/UriFactory.php | 2 +- Utils/Barcode/C128Abstract.php | 22 ++++----- Utils/Barcode/C128a.php | 8 ++-- Utils/Barcode/C128b.php | 8 ++-- Utils/Barcode/C128c.php | 8 ++-- Utils/Barcode/C25.php | 8 ++-- Utils/Barcode/C39.php | 6 +-- Utils/Barcode/Codebar.php | 8 ++-- Utils/Barcode/HIBCC.php | 16 +++---- Utils/Converter/Currency.php | 2 +- Utils/Converter/Numeric.php | 2 +- Utils/Encoding/Caesar.php | 4 +- Utils/Encoding/Huffman/Dictionary.php | 6 +-- Utils/Encoding/Huffman/Huffman.php | 2 +- Utils/Git/Author.php | 10 ++-- Utils/Git/Branch.php | 2 +- Utils/Git/Commit.php | 16 +++---- Utils/Git/Git.php | 2 +- Utils/Git/Repository.php | 8 ++-- Utils/Git/Tag.php | 4 +- Utils/IO/ExchangeInterface.php | 2 +- .../Spreadsheet/SpreadsheetDatabaseMapper.php | 4 +- Utils/Parser/Markdown/Markdown.php | 30 ++++++------ Utils/RnG/File.php | 2 +- Utils/RnG/LinearCongruentialGenerator.php | 4 +- Utils/RnG/Text.php | 8 ++-- Utils/StringCompare.php | 2 +- Utils/TaskSchedule/Interval.php | 22 ++++----- Utils/TaskSchedule/SchedulerAbstract.php | 2 +- Utils/TaskSchedule/TaskAbstract.php | 14 +++--- Validation/ValidatorAbstract.php | 4 +- Views/PaginationView.php | 8 ++-- Views/View.php | 14 +++--- Views/ViewAbstract.php | 4 +- tests/Algorithm/JobScheduling/JobTest.php | 2 +- .../Algorithm/JobScheduling/WeightedTest.php | 4 +- tests/Algorithm/Knapsack/BoundedTest.php | 2 +- tests/Algorithm/Knapsack/ContinuousTest.php | 2 +- tests/Algorithm/PathFinding/AStarNodeTest.php | 2 +- tests/Algorithm/PathFinding/AStarTest.php | 8 ++-- tests/Algorithm/PathFinding/GridTest.php | 10 ++-- .../PathFinding/JumpPointNodeTest.php | 2 +- .../PathFinding/JumpPointSearchTest.php | 2 +- tests/Algorithm/PathFinding/NodeTest.php | 2 +- tests/Algorithm/Sort/IntroSortTest.php | 2 +- tests/Algorithm/Sort/StoogeSortTest.php | 2 +- tests/Algorithm/Sort/TimSortTest.php | 4 +- .../DataStorage/Database/Query/SelectTest.php | 1 - .../Database/TestModel/BaseModelMapper.php | 6 +-- .../TestModel/BelongsToModelMapper.php | 2 +- .../TestModel/ManyToManyDirectModelMapper.php | 2 +- .../TestModel/ManyToManyRelModelMapper.php | 2 +- .../Database/TestModel/OwnsOneModelMapper.php | 2 +- tests/Math/Geometry/Shape/D2/PolygonTest.php | 4 +- tests/Math/Geometry/Shape/D3/PrismTest.php | 2 +- tests/Math/Statistic/Forecast/ErrorTest.php | 1 - .../Regression/LevelLevelRegressionTest.php | 2 +- tests/Message/Mail/ImapTest.php | 2 +- tests/Module/ModuleManagerTest.php | 4 +- .../Module/testPackage/testSubPackage/run.php | 2 +- tests/Router/WebRouterTest.php | 8 ++-- tests/Socket/Client/ClientTest.php | 4 +- tests/Socket/Client/ClientTestHelper.php | 12 ++--- tests/Socket/Server/ServerTest.php | 6 +-- tests/Socket/Server/ServerTestHelper.php | 2 - tests/Stdlib/Base/HeapTest.php | 2 +- tests/Utils/Encoding/XorEncodingTest.php | 1 - .../SpreadsheetDatabaseMapperTest.php | 2 +- tests/Utils/TaskSchedule/IntervalTest.php | 2 +- tests/Views/ViewTest.php | 2 +- 208 files changed, 775 insertions(+), 784 deletions(-) diff --git a/Account/Account.php b/Account/Account.php index b9bb13174..0c889a5dc 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -35,7 +35,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Id. * - * @var int + * @var int * @since 1.0.0 */ protected int $id = 0; @@ -43,7 +43,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Names. * - * @var string + * @var string * @since 1.0.0 */ protected string $name1 = ''; @@ -51,7 +51,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Names. * - * @var string + * @var string * @since 1.0.0 */ protected string $name2 = ''; @@ -59,7 +59,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Names. * - * @var string + * @var string * @since 1.0.0 */ protected string $name3 = ''; @@ -67,7 +67,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Email. * - * @var string + * @var string * @since 1.0.0 */ protected string $email = ''; @@ -77,7 +77,7 @@ class Account implements ArrayableInterface, \JsonSerializable * * Used in order to make sure ips don't change * - * @var string + * @var string * @since 1.0.0 */ protected string $origin = ''; @@ -85,7 +85,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Login. * - * @var null|string + * @var null|string * @since 1.0.0 */ protected ?string $login = null; @@ -93,7 +93,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Last activity. * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ protected \DateTime $lastActive; @@ -101,7 +101,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Last activity. * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ protected \DateTime $createdAt; @@ -109,7 +109,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Groups. * - * @var int[] + * @var int[] * @since 1.0.0 */ protected array $groups = []; @@ -117,7 +117,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Password. * - * @var string + * @var string * @since 1.0.0 */ protected string $password = ''; @@ -125,7 +125,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Account type. * - * @var int + * @var int * @since 1.0.0 */ protected int $type = AccountType::USER; @@ -133,7 +133,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Account status. * - * @var int + * @var int * @since 1.0.0 */ protected int $status = AccountStatus::INACTIVE; @@ -141,7 +141,7 @@ class Account implements ArrayableInterface, \JsonSerializable /** * Localization. * - * @var Localization + * @var Localization * @since 1.0.0 */ protected Localization $l11n; diff --git a/Account/AccountManager.php b/Account/AccountManager.php index 43ede1d9f..39c3d606e 100644 --- a/Account/AccountManager.php +++ b/Account/AccountManager.php @@ -32,7 +32,7 @@ final class AccountManager implements \Countable /** * Accounts. * - * @var Account[] + * @var Account[] * @since 1.0.0 */ private array $accounts = []; @@ -40,7 +40,7 @@ final class AccountManager implements \Countable /** * Session. * - * @var SessionInterface + * @var SessionInterface * @since 1.0.0 */ private SessionInterface $session; diff --git a/Account/Group.php b/Account/Group.php index b06862bea..a580f4637 100644 --- a/Account/Group.php +++ b/Account/Group.php @@ -30,7 +30,7 @@ class Group implements ArrayableInterface, \JsonSerializable /** * Group id. * - * @var int + * @var int * @since 1.0.0 */ protected int $id = 0; @@ -38,7 +38,7 @@ class Group implements ArrayableInterface, \JsonSerializable /** * Group name. * - * @var string + * @var string * @since 1.0.0 */ protected string $name = ''; @@ -46,7 +46,7 @@ class Group implements ArrayableInterface, \JsonSerializable /** * Group name. * - * @var string + * @var string * @since 1.0.0 */ protected string $description = ''; @@ -54,7 +54,7 @@ class Group implements ArrayableInterface, \JsonSerializable /** * Group members. * - * @var array + * @var array * @since 1.0.0 */ protected array $members = []; @@ -62,7 +62,7 @@ class Group implements ArrayableInterface, \JsonSerializable /** * Parents. * - * @var int[] + * @var int[] * @since 1.0.0 */ protected array $parents = []; @@ -70,7 +70,7 @@ class Group implements ArrayableInterface, \JsonSerializable /** * Group status. * - * @var int + * @var int * @since 1.0.0 */ protected int $status = GroupStatus::INACTIVE; diff --git a/Account/PermissionAbstract.php b/Account/PermissionAbstract.php index 1738482af..80908d035 100644 --- a/Account/PermissionAbstract.php +++ b/Account/PermissionAbstract.php @@ -30,7 +30,7 @@ class PermissionAbstract implements \JsonSerializable /** * Permission id. * - * @var int + * @var int * @since 1.0.0 */ protected int $id = 0; @@ -38,7 +38,7 @@ class PermissionAbstract implements \JsonSerializable /** * Unit id. * - * @var null|int + * @var null|int * @since 1.0.0 */ protected ?int $unit = null; @@ -46,7 +46,7 @@ class PermissionAbstract implements \JsonSerializable /** * App name. * - * @var null|string + * @var null|string * @since 1.0.0 */ protected ?string $app = null; @@ -54,7 +54,7 @@ class PermissionAbstract implements \JsonSerializable /** * Module id. * - * @var null|string + * @var null|string * @since 1.0.0 */ protected ?string $module = null; @@ -62,7 +62,7 @@ class PermissionAbstract implements \JsonSerializable /** * Providing module id. * - * @var int + * @var int * @since 1.0.0 */ protected int $from = 0; @@ -70,7 +70,7 @@ class PermissionAbstract implements \JsonSerializable /** * Type. * - * @var null|int + * @var null|int * @since 1.0.0 */ protected ?int $type = null; @@ -78,7 +78,7 @@ class PermissionAbstract implements \JsonSerializable /** * Element id. * - * @var null|int + * @var null|int * @since 1.0.0 */ protected ?int $element = null; @@ -86,7 +86,7 @@ class PermissionAbstract implements \JsonSerializable /** * Component id. * - * @var null|int + * @var null|int * @since 1.0.0 */ protected ?int $component = null; @@ -94,7 +94,7 @@ class PermissionAbstract implements \JsonSerializable /** * Permission. * - * @var int + * @var int * @since 1.0.0 */ protected int $permission = PermissionType::NONE; diff --git a/Account/PermissionHandlingTrait.php b/Account/PermissionHandlingTrait.php index 70f734e13..e9e5f982f 100644 --- a/Account/PermissionHandlingTrait.php +++ b/Account/PermissionHandlingTrait.php @@ -31,7 +31,7 @@ trait PermissionHandlingTrait /** * Permissions. * - * @var PermissionAbstract[] + * @var PermissionAbstract[] * @since 1.0.0 */ protected array $permissions = []; @@ -39,7 +39,7 @@ trait PermissionHandlingTrait /** * Amount of permissions. * - * @var int + * @var int * @since 1.0.0 */ private int $pLength = 0; diff --git a/Algorithm/Clustering/Kmeans.php b/Algorithm/Clustering/Kmeans.php index d084b4aed..eb288854b 100644 --- a/Algorithm/Clustering/Kmeans.php +++ b/Algorithm/Clustering/Kmeans.php @@ -27,7 +27,7 @@ final class Kmeans /** * Metric to calculate the distance between two points * - * @var \Closure + * @var \Closure * @since 1.0.0 */ private \Closure $metric; @@ -35,7 +35,7 @@ final class Kmeans /** * Amount of different clusters * - * @var int + * @var int * @since 1.0.0 */ private int $clusters = 1; @@ -43,7 +43,7 @@ final class Kmeans /** * Points of the cluster centers * - * @var PointInterface[] + * @var PointInterface[] * @since 1.0.0 */ private $clusterCenters = []; @@ -51,7 +51,7 @@ final class Kmeans /** * Points to clusterize * - * @var PointInterface[] + * @var PointInterface[] * @since 1.0.0 */ private array $points = []; @@ -61,7 +61,7 @@ final class Kmeans * * @param PointInterface[] $points Points to cluster * @param int $clusters Amount of clusters - * @param null|\Closure $metric Metric to use for the distance between two points. + * @param null|\Closure $metric metric to use for the distance between two points * * @since 1.0.0 */ diff --git a/Algorithm/Clustering/Point.php b/Algorithm/Clustering/Point.php index 40d0ff830..06c55abe7 100644 --- a/Algorithm/Clustering/Point.php +++ b/Algorithm/Clustering/Point.php @@ -27,7 +27,7 @@ class Point implements PointInterface /** * Coordinates of the point * - * @var array + * @var array * @sicne 1.0.0 */ private array $coordinates = []; @@ -35,7 +35,7 @@ class Point implements PointInterface /** * Group or cluster this point belongs to * - * @var int + * @var int * @since 1.0.0 */ private int $group = 0; @@ -43,7 +43,7 @@ class Point implements PointInterface /** * Name of the point * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; diff --git a/Algorithm/JobScheduling/Job.php b/Algorithm/JobScheduling/Job.php index 63ff7473e..f1a75933a 100644 --- a/Algorithm/JobScheduling/Job.php +++ b/Algorithm/JobScheduling/Job.php @@ -27,7 +27,7 @@ class Job implements JobInterface /** * Value of the job * - * @var float + * @var float * @since 1.0.0 */ private float $value = 0.0; @@ -35,7 +35,7 @@ class Job implements JobInterface /** * Start time of the job * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ private \DateTime $start; @@ -43,7 +43,7 @@ class Job implements JobInterface /** * End time of the job * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ private ?\DateTime $end = null; @@ -51,7 +51,7 @@ class Job implements JobInterface /** * Name of the job * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; diff --git a/Algorithm/Knapsack/Backpack.php b/Algorithm/Knapsack/Backpack.php index f65c808e8..4275e3ef4 100644 --- a/Algorithm/Knapsack/Backpack.php +++ b/Algorithm/Knapsack/Backpack.php @@ -28,7 +28,7 @@ class Backpack implements BackpackInterface /** * Maximum amount of cost this backpack can hold * - * @var float + * @var float * @since 1.0.0 */ private float $maxCost = 0.0; @@ -36,7 +36,7 @@ class Backpack implements BackpackInterface /** * Current value * - * @var float + * @var float * @since 1.0.0 */ private float $value = 0.0; @@ -44,7 +44,7 @@ class Backpack implements BackpackInterface /** * Current cost * - * @var float + * @var float * @since 1.0.0 */ private float $cost = 0.0; @@ -52,7 +52,7 @@ class Backpack implements BackpackInterface /** * Items inside the backpack * - * @var ItemInterface[] + * @var ItemInterface[] * @since 1.0.0 */ private array $items = []; diff --git a/Algorithm/Knapsack/Bounded.php b/Algorithm/Knapsack/Bounded.php index e1f34af79..f10893b89 100644 --- a/Algorithm/Knapsack/Bounded.php +++ b/Algorithm/Knapsack/Bounded.php @@ -63,7 +63,7 @@ final class Bounded for ($j = 0; $j <= $maxCost; ++$j) { $m[$i][$j] = $m[$i - 1][$j]; - for ($k = 1; $k <= $items[$i - 1]['quantity']; $k++) { + for ($k = 1; $k <= $items[$i - 1]['quantity']; ++$k) { if ($k * ((int) $items[$i - 1]['item']->getCost()) > $j) { break; } @@ -85,7 +85,7 @@ final class Bounded $value = (int) $items[$i - 1]['item']->getValue(); for ($k = 0; $v !== $m[$i - 1][$j] + $k * $value; ++$k) { - $s++; + ++$s; $j -= (int) $items[$i - 1]['item']->getCost(); } diff --git a/Algorithm/Knapsack/Continuous.php b/Algorithm/Knapsack/Continuous.php index 0c7f105c2..cf6a5adf7 100644 --- a/Algorithm/Knapsack/Continuous.php +++ b/Algorithm/Knapsack/Continuous.php @@ -47,7 +47,7 @@ final class Continuous */ public static function solve(array $items, BackpackInterface $backpack) : BackpackInterface { - usort($items, function($a, $b) { + \usort($items, function($a, $b) { return $a['item']->getValue() / $a['item']->getCost() < $b['item']->getValue() / $b['item']->getCost(); }); diff --git a/Algorithm/Knapsack/Item.php b/Algorithm/Knapsack/Item.php index 411c8bde4..d1ba36525 100644 --- a/Algorithm/Knapsack/Item.php +++ b/Algorithm/Knapsack/Item.php @@ -27,7 +27,7 @@ class Item implements ItemInterface /** * Value of the item * - * @var float + * @var float * @since 1.0.0 */ private float $value = 0.0; @@ -35,7 +35,7 @@ class Item implements ItemInterface /** * Cost of the item * - * @var float + * @var float * @since 1.0.0 */ private float $cost = 0.0; @@ -43,7 +43,7 @@ class Item implements ItemInterface /** * Name of the item * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; diff --git a/Algorithm/PathFinding/AStarNode.php b/Algorithm/PathFinding/AStarNode.php index 5fba91752..3b3704346 100644 --- a/Algorithm/PathFinding/AStarNode.php +++ b/Algorithm/PathFinding/AStarNode.php @@ -27,7 +27,7 @@ class AStarNode extends Node /** * The g score is cost of the path * - * @var float + * @var float * @since 1.0.0 */ private float $g = 0.0; @@ -35,7 +35,7 @@ class AStarNode extends Node /** * The heuristic distance is the cost to the end node * - * @var float + * @var float * @since 1.0.0 */ private ?float $h = null; @@ -43,7 +43,7 @@ class AStarNode extends Node /** * The f score is defined as f(n) = g(n) + h(n) * - * @var float + * @var float * @since 1.0.0 */ private float $f = 0.0; @@ -51,7 +51,7 @@ class AStarNode extends Node /** * Define as checked node * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isClosed = false; @@ -59,7 +59,7 @@ class AStarNode extends Node /** * Define as potential candidate * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isOpened = false; diff --git a/Algorithm/PathFinding/Grid.php b/Algorithm/PathFinding/Grid.php index dae9861b0..28cbb3023 100644 --- a/Algorithm/PathFinding/Grid.php +++ b/Algorithm/PathFinding/Grid.php @@ -27,7 +27,7 @@ class Grid /** * Grid system containing all nodes * - * @var array + * @var array * @since 1.0.0 */ private array $nodes = [[]]; diff --git a/Algorithm/PathFinding/JumpPointNode.php b/Algorithm/PathFinding/JumpPointNode.php index 205b07e27..aa7cba0e7 100644 --- a/Algorithm/PathFinding/JumpPointNode.php +++ b/Algorithm/PathFinding/JumpPointNode.php @@ -27,7 +27,7 @@ class JumpPointNode extends Node /** * The g score is cost of the path * - * @var float + * @var float * @since 1.0.0 */ private float $g = 0.0; @@ -35,7 +35,7 @@ class JumpPointNode extends Node /** * The heuristic distance is the cost to the end node * - * @var float + * @var float * @since 1.0.0 */ private ?float $h = null; @@ -43,7 +43,7 @@ class JumpPointNode extends Node /** * The f score is defined as f(n) = g(n) + h(n) * - * @var float + * @var float * @since 1.0.0 */ private float $f = 0.0; @@ -51,7 +51,7 @@ class JumpPointNode extends Node /** * Define as checked node * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isClosed = false; @@ -59,7 +59,7 @@ class JumpPointNode extends Node /** * Define as potential candidate * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isOpened = false; @@ -67,7 +67,7 @@ class JumpPointNode extends Node /** * The node was already tested? * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isTested = false; diff --git a/Algorithm/PathFinding/Node.php b/Algorithm/PathFinding/Node.php index 67eb1cb41..f7b90fa07 100644 --- a/Algorithm/PathFinding/Node.php +++ b/Algorithm/PathFinding/Node.php @@ -27,7 +27,7 @@ class Node /** * X-Coordinate. * - * @var int + * @var int * @since 1.0.0 */ private int $x = 0; @@ -35,7 +35,7 @@ class Node /** * Y-Coordinate. * - * @var int + * @var int * @since 1.0.0 */ private int $y = 0; @@ -43,7 +43,7 @@ class Node /** * Cost of the node. * - * @var float + * @var float * @since 1.0.0 */ private float $weight = 1.0; @@ -51,7 +51,7 @@ class Node /** * Can be walked? * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isWalkable = true; @@ -59,7 +59,7 @@ class Node /** * Parent node. * - * @var null|Node + * @var null|Node * @since 1.0.0 */ private ?Node $parent = null; @@ -139,7 +139,7 @@ class Node * * @since 1.0.0 */ - public function setParent(?Node $node) : void + public function setParent(?self $node) : void { $this->parent = $node; } @@ -151,7 +151,7 @@ class Node * * @since 1.0.0 */ - public function getParent() : ?Node + public function getParent() : ?self { return $this->parent; } @@ -165,7 +165,7 @@ class Node * * @since 1.0.0 */ - public function isEqual(Node $node) : bool + public function isEqual(self $node) : bool { return $this->x === $node->getX() && $this->y === $node->getY(); } diff --git a/Algorithm/PathFinding/Path.php b/Algorithm/PathFinding/Path.php index bb16a8fc9..5641cba61 100644 --- a/Algorithm/PathFinding/Path.php +++ b/Algorithm/PathFinding/Path.php @@ -27,7 +27,7 @@ class Path /** * Nodes in the path * - * @var Node[] + * @var Node[] * @since 1.0.0 */ public array $nodes = []; @@ -35,7 +35,7 @@ class Path /** * Grid this path belongs to * - * @var Grid + * @var Grid * @since 1.0.0 */ private Grid $grid; @@ -43,7 +43,7 @@ class Path /** * Nodes in the path * - * @var Node[] + * @var Node[] * @since 1.0.0 */ private array $expandedNodes = []; @@ -51,7 +51,7 @@ class Path /** * Path length * - * @var float + * @var float * @since 1.0.0 */ private float $length = 0.0; diff --git a/Algorithm/Sort/TimSort.php b/Algorithm/Sort/TimSort.php index 82786285c..eda1bf839 100644 --- a/Algorithm/Sort/TimSort.php +++ b/Algorithm/Sort/TimSort.php @@ -27,7 +27,7 @@ final class TimSort implements SortInterface /** * Blocks the sorting is divided into * - * @var int + * @var int * @since 1.0.0 */ private const BLOCKS = 32; diff --git a/ApplicationAbstract.php b/ApplicationAbstract.php index e8fe8f601..846dcb5ee 100644 --- a/ApplicationAbstract.php +++ b/ApplicationAbstract.php @@ -14,19 +14,19 @@ declare(strict_types=1); namespace phpOMS; -use phpOMS\Router\RouterInterface; -use phpOMS\Log\FileLogger; -use phpOMS\Event\EventManager; -use phpOMS\Module\ModuleManager; -use phpOMS\Dispatcher\Dispatcher; use phpOMS\Account\AccountManager; -use phpOMS\Localization\L11nManager; -use phpOMS\Localization\Localization; +use phpOMS\Config\SettingsAbstract; use phpOMS\DataStorage\Cache\CachePool; use phpOMS\DataStorage\Cookie\CookieJar; use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\DataStorage\Session\SessionInterface; -use phpOMS\Config\SettingsAbstract; +use phpOMS\Dispatcher\Dispatcher; +use phpOMS\Event\EventManager; +use phpOMS\Localization\L11nManager; +use phpOMS\Localization\Localization; +use phpOMS\Log\FileLogger; +use phpOMS\Module\ModuleManager; +use phpOMS\Router\RouterInterface; /** * Application class. @@ -60,7 +60,7 @@ class ApplicationAbstract /** * App name. * - * @var string + * @var string * @since 1.0.0 */ protected string $appName = ''; @@ -68,7 +68,7 @@ class ApplicationAbstract /** * Organization id. * - * @var int + * @var int * @since 1.0.0 */ protected int $orgId = 0; @@ -76,7 +76,7 @@ class ApplicationAbstract /** * App theme. * - * @var string + * @var string * @since 1.0.0 */ protected string $theme = ''; @@ -84,7 +84,7 @@ class ApplicationAbstract /** * Database object. * - * @var DatabasePool + * @var DatabasePool * @since 1.0.0 */ protected DatabasePool $dbPool; @@ -92,7 +92,7 @@ class ApplicationAbstract /** * Application settings object. * - * @var SettingsAbstract + * @var SettingsAbstract * @since 1.0.0 */ protected SettingsAbstract $appSettings; @@ -100,7 +100,7 @@ class ApplicationAbstract /** * Account manager instance. * - * @var AccountManager + * @var AccountManager * @since 1.0.0 */ protected AccountManager $accountManager; @@ -108,7 +108,7 @@ class ApplicationAbstract /** * Cache instance. * - * @var CachePool + * @var CachePool * @since 1.0.0 */ protected CachePool $cachePool; @@ -116,7 +116,7 @@ class ApplicationAbstract /** * ModuleManager instance. * - * @var ModuleManager + * @var ModuleManager * @since 1.0.0 */ protected ModuleManager $moduleManager; @@ -124,7 +124,7 @@ class ApplicationAbstract /** * Router instance. * - * @var RouterInterface + * @var RouterInterface * @since 1.0.0 */ protected RouterInterface $router; @@ -132,7 +132,7 @@ class ApplicationAbstract /** * Dispatcher instance. * - * @var Dispatcher + * @var Dispatcher * @since 1.0.0 */ protected Dispatcher $dispatcher; @@ -140,7 +140,7 @@ class ApplicationAbstract /** * Session instance. * - * @var SessionInterface + * @var SessionInterface * @since 1.0.0 */ protected SessionInterface $sessionManager; @@ -148,7 +148,7 @@ class ApplicationAbstract /** * Cookie instance. * - * @var CookieJar + * @var CookieJar * @since 1.0.0 */ protected CookieJar $cookieJar; @@ -156,7 +156,7 @@ class ApplicationAbstract /** * Server localization. * - * @var Localization + * @var Localization * @since 1.0.0 */ protected Localization $l11nServer; @@ -164,7 +164,7 @@ class ApplicationAbstract /** * Server localization. * - * @var FileLogger + * @var FileLogger * @since 1.0.0 */ protected FileLogger $logger; @@ -172,7 +172,7 @@ class ApplicationAbstract /** * L11n manager. * - * @var L11nManager + * @var L11nManager * @since 1.0.0 */ protected L11nManager $l11nManager; @@ -180,7 +180,7 @@ class ApplicationAbstract /** * Event manager. * - * @var EventManager + * @var EventManager * @since 1.0.0 */ protected EventManager $eventManager; diff --git a/Asset/AssetManager.php b/Asset/AssetManager.php index 3a6b43a2e..d929bc200 100644 --- a/Asset/AssetManager.php +++ b/Asset/AssetManager.php @@ -27,7 +27,7 @@ final class AssetManager implements \Countable /** * Assets. * - * @var array + * @var array * @since 1.0.0 */ private array $assets = []; diff --git a/Autoloader.php b/Autoloader.php index de29dfa9f..f467c0d3a 100644 --- a/Autoloader.php +++ b/Autoloader.php @@ -29,7 +29,7 @@ final class Autoloader /** * Base paths for autoloading * - * @var string[] + * @var string[] * @since 1.0.0 */ private static $paths = [ diff --git a/Business/Marketing/NetPromoterScore.php b/Business/Marketing/NetPromoterScore.php index 0f8682be7..f1b71c193 100644 --- a/Business/Marketing/NetPromoterScore.php +++ b/Business/Marketing/NetPromoterScore.php @@ -30,7 +30,7 @@ final class NetPromoterScore /** * Score values * - * @var int[] + * @var int[] * @since 1.0.0 */ private array $scores = []; diff --git a/Config/OptionsTrait.php b/Config/OptionsTrait.php index a833ca5b0..6f6040609 100644 --- a/Config/OptionsTrait.php +++ b/Config/OptionsTrait.php @@ -30,7 +30,7 @@ trait OptionsTrait /** * Options. * - * @var array + * @var array * @since 1.0.0 */ private array $options = []; diff --git a/Config/SettingsAbstract.php b/Config/SettingsAbstract.php index f45101414..b8d8abb17 100644 --- a/Config/SettingsAbstract.php +++ b/Config/SettingsAbstract.php @@ -14,9 +14,9 @@ declare(strict_types=1); namespace phpOMS\Config; -use phpOMS\DataStorage\Database\Query\Builder; use phpOMS\DataStorage\Cache\CachePool; use phpOMS\DataStorage\Database\Connection\ConnectionAbstract; +use phpOMS\DataStorage\Database\Query\Builder; /** * Settings class. @@ -35,7 +35,7 @@ abstract class SettingsAbstract implements OptionsInterface /** * Cache manager (pool). * - * @var null|CachePool + * @var null|CachePool * @since 1.0.0 */ protected ?CachePool $cache = null; @@ -43,7 +43,7 @@ abstract class SettingsAbstract implements OptionsInterface /** * Database connection instance. * - * @var ConnectionAbstract + * @var ConnectionAbstract * @since 1.0.0 */ protected ConnectionAbstract $connection; @@ -51,7 +51,7 @@ abstract class SettingsAbstract implements OptionsInterface /** * Settings table. * - * @var null|string + * @var null|string * @since 1.0.0 */ protected static ?string $table = null; @@ -59,7 +59,7 @@ abstract class SettingsAbstract implements OptionsInterface /** * Columns to identify the value. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $columns = [ @@ -69,7 +69,7 @@ abstract class SettingsAbstract implements OptionsInterface /** * Field where the actual value is stored. * - * @var string + * @var string * @since 1.0.0 */ protected string $valueField = 'option'; diff --git a/DataStorage/Cache/CachePool.php b/DataStorage/Cache/CachePool.php index 399c0e65b..ffc7a9ece 100644 --- a/DataStorage/Cache/CachePool.php +++ b/DataStorage/Cache/CachePool.php @@ -34,7 +34,7 @@ final class CachePool implements DataStoragePoolInterface /** * MemCache instance. * - * @var DataStorageConnectionInterface[] + * @var DataStorageConnectionInterface[] * @since 1.0.0 */ private array $pool = []; diff --git a/DataStorage/Cache/Connection/ConnectionAbstract.php b/DataStorage/Cache/Connection/ConnectionAbstract.php index 3460f77fa..6b81dc35a 100644 --- a/DataStorage/Cache/Connection/ConnectionAbstract.php +++ b/DataStorage/Cache/Connection/ConnectionAbstract.php @@ -16,7 +16,6 @@ namespace phpOMS\DataStorage\Cache\Connection; use phpOMS\DataStorage\Cache\CacheStatus; use phpOMS\DataStorage\Cache\CacheType; -use phpOMS\DataStorage\Cache\Connection\CacheValueType; /** * Cache handler. @@ -36,7 +35,7 @@ abstract class ConnectionAbstract implements ConnectionInterface * * This can be used externally to define queries and execute them. * - * @var mixed + * @var mixed * @since 1.0.0 */ protected $con = null; @@ -46,7 +45,7 @@ abstract class ConnectionAbstract implements ConnectionInterface * * The database prefix name for unique table names * - * @var string + * @var string * @since 1.0.0 */ public string $prefix = ''; @@ -54,7 +53,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database data. * - * @var null|string[] + * @var null|string[] * @since 1.0.0 */ protected ?array $dbdata = null; @@ -62,7 +61,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database type. * - * @var string + * @var string * @since 1.0.0 */ protected string $type = CacheType::UNDEFINED; @@ -70,7 +69,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database status. * - * @var int + * @var int * @since 1.0.0 */ protected int $status = CacheStatus::CLOSED; diff --git a/DataStorage/Cache/Connection/FileCache.php b/DataStorage/Cache/Connection/FileCache.php index 6ad79238f..640855f72 100644 --- a/DataStorage/Cache/Connection/FileCache.php +++ b/DataStorage/Cache/Connection/FileCache.php @@ -58,7 +58,7 @@ final class FileCache extends ConnectionAbstract /** * Delimiter for cache meta data * - * @var string + * @var string * @since 1.0.0 */ private const DELIM = '$'; @@ -66,7 +66,7 @@ final class FileCache extends ConnectionAbstract /** * File path sanitizer * - * @var string + * @var string * @since 1.0.0 */ private const SANITIZE = '~'; @@ -74,7 +74,7 @@ final class FileCache extends ConnectionAbstract /** * Only cache if data is larger than threshold (0-100). * - * @var int + * @var int * @since 1.0.0 */ private int $threshold = 50; diff --git a/DataStorage/Cache/Connection/MemCached.php b/DataStorage/Cache/Connection/MemCached.php index 5d4dbdab2..f0b77e204 100644 --- a/DataStorage/Cache/Connection/MemCached.php +++ b/DataStorage/Cache/Connection/MemCached.php @@ -36,7 +36,7 @@ final class MemCached extends ConnectionAbstract /** * Only cache if data is larger than threshold (0-100). * - * @var int + * @var int * @since 1.0.0 */ private int $threshold = 0; diff --git a/DataStorage/Cache/Connection/RedisCache.php b/DataStorage/Cache/Connection/RedisCache.php index 96122cc34..f5eca8d6f 100644 --- a/DataStorage/Cache/Connection/RedisCache.php +++ b/DataStorage/Cache/Connection/RedisCache.php @@ -18,7 +18,6 @@ use phpOMS\DataStorage\Cache\CacheStatus; use phpOMS\DataStorage\Cache\CacheType; use phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException; use phpOMS\Stdlib\Base\Exception\InvalidEnumValue; -use phpOMS\DataStorage\Cache\Connection\CacheValueType; /** * RedisCache class. @@ -38,7 +37,7 @@ final class RedisCache extends ConnectionAbstract /** * Delimiter for cache meta data * - * @var string + * @var string * @since 1.0.0 */ private const DELIM = '$'; diff --git a/DataStorage/Cookie/CookieJar.php b/DataStorage/Cookie/CookieJar.php index 77938c66a..e3c4822d3 100644 --- a/DataStorage/Cookie/CookieJar.php +++ b/DataStorage/Cookie/CookieJar.php @@ -29,14 +29,14 @@ final class CookieJar /** * Locked. * - * @var bool + * @var bool * @since 1.0.0 */ private static bool $isLocked = false; /** * Cookie values. * - * @var array + * @var array * @since 1.0.0 */ private array $cookies = []; diff --git a/DataStorage/Database/BuilderAbstract.php b/DataStorage/Database/BuilderAbstract.php index e833c9362..2d5601d5a 100644 --- a/DataStorage/Database/BuilderAbstract.php +++ b/DataStorage/Database/BuilderAbstract.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\DataStorage\Database; -use phpOMS\DataStorage\Database\Query\QueryType; use phpOMS\DataStorage\Database\Connection\ConnectionAbstract; +use phpOMS\DataStorage\Database\Query\QueryType; /** * Database query builder. @@ -30,7 +30,7 @@ abstract class BuilderAbstract /** * Grammar. * - * @var GrammarAbstract + * @var GrammarAbstract * @since 1.0.0 */ protected GrammarAbstract $grammar; @@ -38,7 +38,7 @@ abstract class BuilderAbstract /** * Database connection. * - * @var ConnectionAbstract + * @var ConnectionAbstract * @since 1.0.0 */ protected ConnectionAbstract $connection; @@ -46,7 +46,7 @@ abstract class BuilderAbstract /** * Query type. * - * @var int + * @var int * @since 1.0.0 */ protected int $type = QueryType::NONE; @@ -54,7 +54,7 @@ abstract class BuilderAbstract /** * Prefix. * - * @var string + * @var string * @since 1.0.0 */ protected string $prefix = ''; @@ -62,7 +62,7 @@ abstract class BuilderAbstract /** * Raw. * - * @var string + * @var string * @since 1.0.0 */ public string $raw = ''; diff --git a/DataStorage/Database/Connection/ConnectionAbstract.php b/DataStorage/Database/Connection/ConnectionAbstract.php index 9a01eefd8..ee9407d86 100644 --- a/DataStorage/Database/Connection/ConnectionAbstract.php +++ b/DataStorage/Database/Connection/ConnectionAbstract.php @@ -42,7 +42,7 @@ abstract class ConnectionAbstract implements ConnectionInterface * * This can be used externally to define queries and execute them. * - * @var \PDO + * @var \PDO * @since 1.0.0 */ public \PDO $con; @@ -52,7 +52,7 @@ abstract class ConnectionAbstract implements ConnectionInterface * * The database prefix name for unique table names * - * @var string + * @var string * @since 1.0.0 */ public string $prefix = ''; @@ -60,7 +60,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database data. * - * @var array + * @var array * @since 1.0.0 */ protected array $dbdata = []; @@ -68,7 +68,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database type. * - * @var string + * @var string * @since 1.0.0 */ protected string $type = DatabaseType::UNDEFINED; @@ -76,7 +76,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database status. * - * @var int + * @var int * @since 1.0.0 */ protected int $status = DatabaseStatus::CLOSED; @@ -84,7 +84,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database grammar. * - * @var Grammar + * @var Grammar * @since 1.0.0 */ protected Grammar $grammar; @@ -92,7 +92,7 @@ abstract class ConnectionAbstract implements ConnectionInterface /** * Database grammar. * - * @var SchemaGrammar + * @var SchemaGrammar * @since 1.0.0 */ protected SchemaGrammar $schemaGrammar; diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index a1f9496c0..c33b4223e 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -137,7 +137,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Database connection. * - * @var ConnectionAbstract + * @var ConnectionAbstract * @since 1.0.0 */ protected static ConnectionAbstract $db; @@ -145,7 +145,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Overwriting extended values. * - * @var bool + * @var bool * @since 1.0.0 */ protected static bool $overwrite = true; @@ -153,7 +153,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = ''; @@ -161,7 +161,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $createdAt = ''; @@ -169,7 +169,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Language * - * @var string + * @var string * @since 1.0.0 */ protected static string $languageField = ''; @@ -177,7 +177,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = []; @@ -187,7 +187,7 @@ class DataMapperAbstract implements DataMapperInterface * * Most often used for localizations * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $conditionals = []; @@ -195,7 +195,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Has many relation. * - * @var array + * @var array * @since 1.0.0 */ protected static array $hasMany = []; @@ -205,7 +205,7 @@ class DataMapperAbstract implements DataMapperInterface * * Relation is defined in current mapper * - * @var array + * @var array * @since 1.0.0 */ protected static array $ownsOne = []; @@ -215,12 +215,12 @@ class DataMapperAbstract implements DataMapperInterface * * Relation is defined in current mapper * - * @var string[] + * @var string[] * @since 1.0.0 */ /** * Belongs to. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $belongsTo = []; @@ -228,7 +228,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = ''; @@ -236,7 +236,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Fields to load. * - * @var array[] + * @var array[] * @since 1.0.0 */ protected static array $fields = []; @@ -244,7 +244,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Initialized objects for cross reference to reduce initialization costs * - * @var array[] + * @var array[] * @since 1.0.0 */ protected static array $initObjects = []; @@ -252,7 +252,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Initialized arrays for cross reference to reduce initialization costs * - * @var array[] + * @var array[] * @since 1.0.0 */ protected static array $initArrays = []; @@ -260,7 +260,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Highest mapper to know when to clear initialized objects * - * @var null|string + * @var null|string * @since 1.0.0 */ protected static ?string $parentMapper = null; @@ -268,7 +268,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Extended value collection. * - * @var array + * @var array * @since 1.0.0 */ protected static array $collection = [ @@ -1030,8 +1030,8 @@ class DataMapperAbstract implements DataMapperInterface try { self::$db->con->prepare($relQuery->toSql())->execute(); } catch (\Throwable $e) { - var_dump($e->getMessage()); - var_dump($relQuery->toSql()); + \var_dump($e->getMessage()); + \var_dump($relQuery->toSql()); } } } diff --git a/DataStorage/Database/DatabasePool.php b/DataStorage/Database/DatabasePool.php index 55925882f..f6db68bb3 100644 --- a/DataStorage/Database/DatabasePool.php +++ b/DataStorage/Database/DatabasePool.php @@ -14,11 +14,11 @@ declare(strict_types=1); namespace phpOMS\DataStorage\Database; +use phpOMS\DataStorage\Database\Connection\ConnectionAbstract; use phpOMS\DataStorage\Database\Connection\ConnectionFactory; use phpOMS\DataStorage\Database\Connection\NullConnection; use phpOMS\DataStorage\DataStorageConnectionInterface; use phpOMS\DataStorage\DataStoragePoolInterface; -use phpOMS\DataStorage\Database\Connection\ConnectionAbstract; /** * Database pool handler. @@ -33,7 +33,7 @@ final class DatabasePool implements DataStoragePoolInterface /** * Databases. * - * @var ConnectionAbstract[] + * @var ConnectionAbstract[] * @since 1.0.0 */ private array $pool = []; diff --git a/DataStorage/Database/GrammarAbstract.php b/DataStorage/Database/GrammarAbstract.php index ac8bf15fd..cb86fd33a 100644 --- a/DataStorage/Database/GrammarAbstract.php +++ b/DataStorage/Database/GrammarAbstract.php @@ -29,7 +29,7 @@ abstract class GrammarAbstract /** * Comment style. * - * @var string + * @var string * @since 1.0.0 */ protected string $comment = '--'; @@ -37,7 +37,7 @@ abstract class GrammarAbstract /** * String quotes style. * - * @var string + * @var string * @since 1.0.0 */ protected string $valueQuotes = '\''; @@ -45,7 +45,7 @@ abstract class GrammarAbstract /** * System identifier. * - * @var string + * @var string * @since 1.0.0 */ protected string $systemIdentifier = '"'; @@ -53,7 +53,7 @@ abstract class GrammarAbstract /** * And operator. * - * @var string + * @var string * @since 1.0.0 */ protected string $and = 'AND'; @@ -61,7 +61,7 @@ abstract class GrammarAbstract /** * Or operator. * - * @var string + * @var string * @since 1.0.0 */ protected string $or = 'OR'; @@ -69,7 +69,7 @@ abstract class GrammarAbstract /** * Table prefix. * - * @var string + * @var string * @since 1.0.0 */ protected string $tablePrefix = ''; @@ -77,7 +77,7 @@ abstract class GrammarAbstract /** * Special keywords. * - * @var array + * @var array * @since 1.0.0 */ protected array $specialKeywords = [ diff --git a/DataStorage/Database/Query/Builder.php b/DataStorage/Database/Query/Builder.php index 95d316b0f..24bc5a8e5 100644 --- a/DataStorage/Database/Query/Builder.php +++ b/DataStorage/Database/Query/Builder.php @@ -40,7 +40,7 @@ class Builder extends BuilderAbstract /** * Is read only. * - * @var bool + * @var bool * @since 1.0.0 */ protected bool $isReadOnly = false; @@ -48,7 +48,7 @@ class Builder extends BuilderAbstract /** * Columns. * - * @var array + * @var array * @since 1.0.0 */ public array $selects = []; @@ -56,7 +56,7 @@ class Builder extends BuilderAbstract /** * Columns. * - * @var array + * @var array * @since 1.0.0 */ public array $random; @@ -64,7 +64,7 @@ class Builder extends BuilderAbstract /** * Columns. * - * @var array + * @var array * @since 1.0.0 */ public array $updates = []; @@ -72,7 +72,7 @@ class Builder extends BuilderAbstract /** * Stupid work around because value needs to be not null for it to work in Grammar. * - * @var array + * @var array * @since 1.0.0 */ public array $deletes = [1]; @@ -80,7 +80,7 @@ class Builder extends BuilderAbstract /** * Into. * - * @var string + * @var string * @since 1.0.0 */ public string $into = ''; @@ -88,7 +88,7 @@ class Builder extends BuilderAbstract /** * Into columns. * - * @var array + * @var array * @since 1.0.0 */ public array $inserts = []; @@ -96,7 +96,7 @@ class Builder extends BuilderAbstract /** * Into columns. * - * @var array + * @var array * @since 1.0.0 */ public array $values = []; @@ -104,7 +104,7 @@ class Builder extends BuilderAbstract /** * Into columns. * - * @var array + * @var array * @since 1.0.0 */ public array $sets = []; @@ -112,7 +112,7 @@ class Builder extends BuilderAbstract /** * Distinct. * - * @var bool + * @var bool * @since 1.0.0 */ public bool $distinct = false; @@ -120,7 +120,7 @@ class Builder extends BuilderAbstract /** * From. * - * @var array + * @var array * @since 1.0.0 */ public array $from = []; @@ -128,7 +128,7 @@ class Builder extends BuilderAbstract /** * Joins. * - * @var array + * @var array * @since 1.0.0 */ public array $joins = []; @@ -136,7 +136,7 @@ class Builder extends BuilderAbstract /** * Ons of joins. * - * @var array + * @var array * @since 1.0.0 */ public array $ons = []; @@ -144,7 +144,7 @@ class Builder extends BuilderAbstract /** * Where. * - * @var array + * @var array * @since 1.0.0 */ public array $wheres = []; @@ -152,7 +152,7 @@ class Builder extends BuilderAbstract /** * Group. * - * @var array + * @var array * @since 1.0.0 */ public array $groups = []; @@ -160,7 +160,7 @@ class Builder extends BuilderAbstract /** * Order. * - * @var array + * @var array * @since 1.0.0 */ public array $orders = []; @@ -168,7 +168,7 @@ class Builder extends BuilderAbstract /** * Limit. * - * @var null|int + * @var null|int * @since 1.0.0 */ public ?int $limit = null; @@ -176,7 +176,7 @@ class Builder extends BuilderAbstract /** * Offset. * - * @var null|int + * @var null|int * @since 1.0.0 */ public ?int $offset = null; @@ -184,7 +184,7 @@ class Builder extends BuilderAbstract /** * Binds. * - * @var array + * @var array * @since 1.0.0 */ private array $binds = []; @@ -192,7 +192,7 @@ class Builder extends BuilderAbstract /** * Union. * - * @var array + * @var array * @since 1.0.0 */ public array $unions = []; @@ -200,7 +200,7 @@ class Builder extends BuilderAbstract /** * Lock. * - * @var bool + * @var bool * @since 1.0.0 */ public bool $lock = false; @@ -208,7 +208,7 @@ class Builder extends BuilderAbstract /** * Comparison OPERATORS. * - * @var string[] + * @var string[] * @since 1.0.0 */ public const OPERATORS = [ diff --git a/DataStorage/Database/Query/Grammar/Grammar.php b/DataStorage/Database/Query/Grammar/Grammar.php index a78c0b8e7..9aac5b9e7 100644 --- a/DataStorage/Database/Query/Grammar/Grammar.php +++ b/DataStorage/Database/Query/Grammar/Grammar.php @@ -38,7 +38,7 @@ class Grammar extends GrammarAbstract /** * Select components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $selectComponents = [ @@ -59,7 +59,7 @@ class Grammar extends GrammarAbstract /** * Insert components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $insertComponents = [ @@ -71,7 +71,7 @@ class Grammar extends GrammarAbstract /** * Update components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $updateComponents = [ @@ -83,7 +83,7 @@ class Grammar extends GrammarAbstract /** * Update components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $deleteComponents = [ @@ -95,7 +95,7 @@ class Grammar extends GrammarAbstract /** * Random components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $randomComponents = [ diff --git a/DataStorage/Database/Query/Grammar/MysqlGrammar.php b/DataStorage/Database/Query/Grammar/MysqlGrammar.php index bd2dbbdff..a06194840 100644 --- a/DataStorage/Database/Query/Grammar/MysqlGrammar.php +++ b/DataStorage/Database/Query/Grammar/MysqlGrammar.php @@ -29,7 +29,7 @@ class MysqlGrammar extends Grammar /** * System identifier. * - * @var string + * @var string * @since 1.0.0 */ protected string $systemIdentifier = '`'; diff --git a/DataStorage/Database/Query/Grammar/SQLiteGrammar.php b/DataStorage/Database/Query/Grammar/SQLiteGrammar.php index 8540256aa..1e78b1498 100644 --- a/DataStorage/Database/Query/Grammar/SQLiteGrammar.php +++ b/DataStorage/Database/Query/Grammar/SQLiteGrammar.php @@ -29,7 +29,7 @@ class SQLiteGrammar extends Grammar /** * System identifier. * - * @var string + * @var string * @since 1.0.0 */ public string $systemIdentifier = '`'; diff --git a/DataStorage/Database/Query/Parameter.php b/DataStorage/Database/Query/Parameter.php index c44181f0a..7a460ee55 100644 --- a/DataStorage/Database/Query/Parameter.php +++ b/DataStorage/Database/Query/Parameter.php @@ -27,7 +27,7 @@ class Parameter /** * Parameter name * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; diff --git a/DataStorage/Database/Schema/Builder.php b/DataStorage/Database/Schema/Builder.php index 73d50576c..0faa7ad0e 100644 --- a/DataStorage/Database/Schema/Builder.php +++ b/DataStorage/Database/Schema/Builder.php @@ -34,7 +34,7 @@ class Builder extends QueryBuilder /** * Table to create. * - * @var string + * @var string * @since 1.0.0 */ public string $createTable = ''; @@ -42,7 +42,7 @@ class Builder extends QueryBuilder /** * Fields. * - * @var array + * @var array * @since 1.0.0 */ public array $createFields = []; @@ -50,7 +50,7 @@ class Builder extends QueryBuilder /** * Database to drop. * - * @var string + * @var string * @since 1.0.0 */ public string $dropDatabase = ''; @@ -58,7 +58,7 @@ class Builder extends QueryBuilder /** * Table to drop. * - * @var string + * @var string * @since 1.0.0 */ public string $dropTable = ''; @@ -66,7 +66,7 @@ class Builder extends QueryBuilder /** * Tables. * - * @var array + * @var array * @since 1.0.0 */ public array $selectTables = ['*']; @@ -74,7 +74,7 @@ class Builder extends QueryBuilder /** * Select fields. * - * @var string + * @var string * @since 1.0.0 */ public string $selectFields = ''; @@ -82,7 +82,7 @@ class Builder extends QueryBuilder /** * @todo: ?????. * - * @var bool + * @var bool * @since 1.0.0 */ public bool $createTableSettings = true; diff --git a/DataStorage/Database/Schema/Grammar/Grammar.php b/DataStorage/Database/Schema/Grammar/Grammar.php index d3ea1525a..d499e7d43 100644 --- a/DataStorage/Database/Schema/Grammar/Grammar.php +++ b/DataStorage/Database/Schema/Grammar/Grammar.php @@ -35,7 +35,7 @@ class Grammar extends QueryGrammar /** * Drop components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $dropDatabaseComponents = [ @@ -45,7 +45,7 @@ class Grammar extends QueryGrammar /** * Drop components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $dropTableComponents = [ @@ -55,7 +55,7 @@ class Grammar extends QueryGrammar /** * Select tables components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $createTablesComponents = [ @@ -67,7 +67,7 @@ class Grammar extends QueryGrammar /** * Select tables components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $tablesComponents = [ @@ -77,7 +77,7 @@ class Grammar extends QueryGrammar /** * Select field components. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $fieldsComponents = [ diff --git a/DataStorage/Database/Schema/Grammar/MysqlGrammar.php b/DataStorage/Database/Schema/Grammar/MysqlGrammar.php index 7ad7e90ef..ee3bbbbc9 100644 --- a/DataStorage/Database/Schema/Grammar/MysqlGrammar.php +++ b/DataStorage/Database/Schema/Grammar/MysqlGrammar.php @@ -34,7 +34,7 @@ class MysqlGrammar extends Grammar /** * System identifier. * - * @var string + * @var string * @since 1.0.0 */ protected string $systemIdentifier = '`'; diff --git a/DataStorage/Database/Schema/Grammar/SQLiteGrammar.php b/DataStorage/Database/Schema/Grammar/SQLiteGrammar.php index 442747720..3cd0cc2ac 100644 --- a/DataStorage/Database/Schema/Grammar/SQLiteGrammar.php +++ b/DataStorage/Database/Schema/Grammar/SQLiteGrammar.php @@ -27,7 +27,7 @@ class SQLiteGrammar extends Grammar /** * System identifier. * - * @var string + * @var string * @since 1.0.0 */ protected string $systemIdentifier = '`'; diff --git a/DataStorage/Database/SchemaMapper.php b/DataStorage/Database/SchemaMapper.php index b8f7537c0..50e615403 100644 --- a/DataStorage/Database/SchemaMapper.php +++ b/DataStorage/Database/SchemaMapper.php @@ -32,7 +32,7 @@ class SchemaMapper /** * Database connection. * - * @var ConnectionAbstract + * @var ConnectionAbstract * @since 1.0.0 */ protected ConnectionAbstract $db; diff --git a/DataStorage/Session/ConsoleSession.php b/DataStorage/Session/ConsoleSession.php index ecaad2a98..41e1665a0 100644 --- a/DataStorage/Session/ConsoleSession.php +++ b/DataStorage/Session/ConsoleSession.php @@ -31,7 +31,7 @@ class ConsoleSession implements SessionInterface /** * Is session locked/already set. * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isLocked = false; @@ -39,7 +39,7 @@ class ConsoleSession implements SessionInterface /** * Raw session data. * - * @var array + * @var array * @since 1.0.0 */ private array $sessionData = []; @@ -47,7 +47,7 @@ class ConsoleSession implements SessionInterface /** * Session ID. * - * @var string + * @var string * @since 1.0.0 */ private string $sid; @@ -55,7 +55,7 @@ class ConsoleSession implements SessionInterface /** * Inactivity Interval. * - * @var int + * @var int * @since 1.0.0 */ private int $inactivityInterval = 0; diff --git a/DataStorage/Session/ConsoleSessionHandler.php b/DataStorage/Session/ConsoleSessionHandler.php index 1310babe9..329983223 100644 --- a/DataStorage/Session/ConsoleSessionHandler.php +++ b/DataStorage/Session/ConsoleSessionHandler.php @@ -29,7 +29,7 @@ final class ConsoleSessionHandler implements \SessionHandlerInterface, \SessionI /** * File path for session * - * @var string + * @var string * @since 1.0.0 */ private string $savePath; @@ -136,7 +136,7 @@ final class ConsoleSessionHandler implements \SessionHandlerInterface, \SessionI { $file = $this->savePath . '/sess_' . $id; if (\file_exists($file)) { - unlink($file); + \unlink($file); } return true; @@ -153,7 +153,7 @@ final class ConsoleSessionHandler implements \SessionHandlerInterface, \SessionI */ public function gc($maxlifetime) { - $files = \glob("$this->savePath/sess_*"); + $files = \glob("{$this->savePath}/sess_*"); if ($files === false) { return false; @@ -161,7 +161,7 @@ final class ConsoleSessionHandler implements \SessionHandlerInterface, \SessionI foreach ($files as $file) { if (\filemtime($file) + $maxlifetime < \time() && \file_exists($file)) { - unlink($file); + \unlink($file); } } diff --git a/DataStorage/Session/HttpSession.php b/DataStorage/Session/HttpSession.php index 11206b33a..f8b9d286b 100644 --- a/DataStorage/Session/HttpSession.php +++ b/DataStorage/Session/HttpSession.php @@ -32,7 +32,7 @@ final class HttpSession implements SessionInterface /** * Is session locked/already set. * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isLocked = false; @@ -40,7 +40,7 @@ final class HttpSession implements SessionInterface /** * Raw session data. * - * @var array + * @var array * @since 1.0.0 */ private array $sessionData = []; @@ -48,7 +48,7 @@ final class HttpSession implements SessionInterface /** * Session ID. * - * @var string + * @var string * @since 1.0.0 */ private string $sid; @@ -56,7 +56,7 @@ final class HttpSession implements SessionInterface /** * Inactivity Interval. * - * @var int + * @var int * @since 1.0.0 */ private int $inactivityInterval = 0; diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index 140be05e8..72f5f4fc8 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -32,7 +32,7 @@ final class Dispatcher implements DispatcherInterface /** * Application. * - * @var null|ApplicationAbstract + * @var null|ApplicationAbstract * @since 1.0.0 */ private ?ApplicationAbstract $app; @@ -42,7 +42,7 @@ final class Dispatcher implements DispatcherInterface * * Set in the module manager on module initialization. * - * @var array + * @var array * @since 1.0.0 */ private array $controllers = []; diff --git a/Event/EventManager.php b/Event/EventManager.php index ac0e5c2f3..eda3645be 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -36,7 +36,7 @@ final class EventManager implements \Countable /** * Events. * - * @var array + * @var array * @since 1.0.0 */ private array $groups = []; @@ -44,7 +44,7 @@ final class EventManager implements \Countable /** * Callbacks. * - * @var array + * @var array * @since 1.0.0 */ private array $callbacks = []; @@ -52,7 +52,7 @@ final class EventManager implements \Countable /** * Dispatcher. * - * @var DispatcherInterface + * @var DispatcherInterface * @since 1.0.0 */ private DispatcherInterface $dispatcher; diff --git a/Localization/Defaults/City.php b/Localization/Defaults/City.php index 0c3a2edd9..f051a0a12 100644 --- a/Localization/Defaults/City.php +++ b/Localization/Defaults/City.php @@ -27,7 +27,7 @@ final class City /** * City id. * - * @var int + * @var int * @since 1.0.0 */ private int $id = 0; @@ -35,7 +35,7 @@ final class City /** * Country code. * - * @var string + * @var string * @since 1.0.0 */ private string $countryCode = ''; @@ -43,7 +43,7 @@ final class City /** * State code. * - * @var string + * @var string * @since 1.0.0 */ private string $state = ''; @@ -51,7 +51,7 @@ final class City /** * City name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; @@ -59,7 +59,7 @@ final class City /** * Postal code. * - * @var int + * @var int * @since 1.0.0 */ private int $postal = 0; @@ -67,7 +67,7 @@ final class City /** * Latitude. * - * @var float + * @var float * @since 1.0.0 */ private float $lat = 0.0; @@ -75,7 +75,7 @@ final class City /** * Longitude. * - * @var float + * @var float * @since 1.0.0 */ private float $long = 0.0; diff --git a/Localization/Defaults/CityMapper.php b/Localization/Defaults/CityMapper.php index d7ff61c68..701aaa715 100644 --- a/Localization/Defaults/CityMapper.php +++ b/Localization/Defaults/CityMapper.php @@ -29,7 +29,7 @@ class CityMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -45,7 +45,7 @@ class CityMapper extends DataMapperAbstract /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'city'; @@ -53,7 +53,7 @@ class CityMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'city_id'; diff --git a/Localization/Defaults/Country.php b/Localization/Defaults/Country.php index 3be6e0edb..a5af97ff7 100644 --- a/Localization/Defaults/Country.php +++ b/Localization/Defaults/Country.php @@ -27,7 +27,7 @@ final class Country /** * Country id. * - * @var int + * @var int * @since 1.0.0 */ private $id = 0; @@ -35,7 +35,7 @@ final class Country /** * Country name. * - * @var string + * @var string * @since 1.0.0 */ private $name = ''; @@ -43,7 +43,7 @@ final class Country /** * Country code. * - * @var string + * @var string * @since 1.0.0 */ private $code2 = ''; @@ -51,7 +51,7 @@ final class Country /** * Country code. * - * @var string + * @var string * @since 1.0.0 */ private $code3 = ''; @@ -59,7 +59,7 @@ final class Country /** * Country code. * - * @var int + * @var int * @since 1.0.0 */ private $numeric = 0; @@ -67,7 +67,7 @@ final class Country /** * Country subdevision. * - * @var string + * @var string * @since 1.0.0 */ private $subdevision = ''; diff --git a/Localization/Defaults/CountryMapper.php b/Localization/Defaults/CountryMapper.php index ca4f3a694..49348d75d 100644 --- a/Localization/Defaults/CountryMapper.php +++ b/Localization/Defaults/CountryMapper.php @@ -29,7 +29,7 @@ class CountryMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -44,7 +44,7 @@ class CountryMapper extends DataMapperAbstract /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'country'; @@ -52,7 +52,7 @@ class CountryMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'country_id'; diff --git a/Localization/Defaults/Currency.php b/Localization/Defaults/Currency.php index 9389634c0..1b85de59c 100644 --- a/Localization/Defaults/Currency.php +++ b/Localization/Defaults/Currency.php @@ -27,7 +27,7 @@ final class Currency /** * Currency id. * - * @var int + * @var int * @since 1.0.0 */ private int $id = 0; @@ -35,7 +35,7 @@ final class Currency /** * Currency name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; @@ -43,7 +43,7 @@ final class Currency /** * Currency code. * - * @var string + * @var string * @since 1.0.0 */ private string $code = ''; @@ -51,7 +51,7 @@ final class Currency /** * Currency code. * - * @var int + * @var int * @since 1.0.0 */ private int $number = 0; @@ -59,7 +59,7 @@ final class Currency /** * Currency decimals. * - * @var int + * @var int * @since 1.0.0 */ private int $decimals = 0; @@ -67,7 +67,7 @@ final class Currency /** * Currency countries. * - * @var string + * @var string * @since 1.0.0 */ private string $countries = ''; diff --git a/Localization/Defaults/CurrencyMapper.php b/Localization/Defaults/CurrencyMapper.php index ae4ee9276..6a4c010c1 100644 --- a/Localization/Defaults/CurrencyMapper.php +++ b/Localization/Defaults/CurrencyMapper.php @@ -29,7 +29,7 @@ class CurrencyMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -44,7 +44,7 @@ class CurrencyMapper extends DataMapperAbstract /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'currency'; @@ -52,7 +52,7 @@ class CurrencyMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'currency_id'; diff --git a/Localization/Defaults/Iban.php b/Localization/Defaults/Iban.php index 9362135d9..7da04a662 100644 --- a/Localization/Defaults/Iban.php +++ b/Localization/Defaults/Iban.php @@ -27,7 +27,7 @@ final class Iban /** * Iban id. * - * @var int + * @var int * @since 1.0.0 */ private $id = 0; @@ -35,7 +35,7 @@ final class Iban /** * Iban country. * - * @var string + * @var string * @since 1.0.0 */ private $country = ''; @@ -43,7 +43,7 @@ final class Iban /** * Iban chars. * - * @var int + * @var int * @since 1.0.0 */ private $chars = 2; @@ -51,7 +51,7 @@ final class Iban /** * Iban bban. * - * @var string + * @var string * @since 1.0.0 */ private $bban = ''; @@ -59,7 +59,7 @@ final class Iban /** * Iban fields. * - * @var string + * @var string * @since 1.0.0 */ private $fields = ''; diff --git a/Localization/Defaults/IbanMapper.php b/Localization/Defaults/IbanMapper.php index 8161c65f2..1ea640728 100644 --- a/Localization/Defaults/IbanMapper.php +++ b/Localization/Defaults/IbanMapper.php @@ -29,7 +29,7 @@ class IbanMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -43,7 +43,7 @@ class IbanMapper extends DataMapperAbstract /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'iban'; @@ -51,7 +51,7 @@ class IbanMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'iban_id'; diff --git a/Localization/Defaults/Language.php b/Localization/Defaults/Language.php index f8fd98b12..410cd214a 100644 --- a/Localization/Defaults/Language.php +++ b/Localization/Defaults/Language.php @@ -27,7 +27,7 @@ final class Language /** * Language id. * - * @var int + * @var int * @since 1.0.0 */ private int $id = 0; @@ -35,7 +35,7 @@ final class Language /** * Language name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; @@ -43,7 +43,7 @@ final class Language /** * Language native. * - * @var string + * @var string * @since 1.0.0 */ private string $native = ''; @@ -51,7 +51,7 @@ final class Language /** * Language code. * - * @var string + * @var string * @since 1.0.0 */ private string $code2 = ''; @@ -59,7 +59,7 @@ final class Language /** * Language code. * - * @var string + * @var string * @since 1.0.0 */ private string $code3 = ''; @@ -67,7 +67,7 @@ final class Language /** * Language code. * - * @var string + * @var string * @since 1.0.0 */ private string $code3Native = ''; diff --git a/Localization/Defaults/LanguageMapper.php b/Localization/Defaults/LanguageMapper.php index df4ac12ee..c01ce54df 100644 --- a/Localization/Defaults/LanguageMapper.php +++ b/Localization/Defaults/LanguageMapper.php @@ -29,7 +29,7 @@ class LanguageMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -44,7 +44,7 @@ class LanguageMapper extends DataMapperAbstract /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'language'; @@ -52,7 +52,7 @@ class LanguageMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'language_id'; diff --git a/Localization/L11nManager.php b/Localization/L11nManager.php index 487ffecc7..8ea8efcc6 100644 --- a/Localization/L11nManager.php +++ b/Localization/L11nManager.php @@ -30,7 +30,7 @@ final class L11nManager /** * Language. * - * @var array + * @var array * @since 1.0.0 */ private array $language = []; @@ -38,7 +38,7 @@ final class L11nManager /** * App Name. * - * @var string + * @var string * @since 1.0.0 */ private string $appName; diff --git a/Localization/Localization.php b/Localization/Localization.php index 5e5072d9c..6e17f88cb 100644 --- a/Localization/Localization.php +++ b/Localization/Localization.php @@ -31,7 +31,7 @@ class Localization /** * Country ID. * - * @var string + * @var string * @since 1.0.0 */ private string $country = ISO3166TwoEnum::_USA; @@ -39,7 +39,7 @@ class Localization /** * Timezone. * - * @var string + * @var string * @since 1.0.0 */ private string $timezone = 'America/New_York'; @@ -47,7 +47,7 @@ class Localization /** * Language ISO code. * - * @var string + * @var string * @since 1.0.0 */ private string $language = ISO639x1Enum::_EN; @@ -55,7 +55,7 @@ class Localization /** * Currency. * - * @var string + * @var string * @since 1.0.0 */ private string $currency = ISO4217Enum::_USD; @@ -63,7 +63,7 @@ class Localization /** * Number format. * - * @var string + * @var string * @since 1.0.0 */ private string $decimal = '.'; @@ -71,7 +71,7 @@ class Localization /** * Number format. * - * @var string + * @var string * @since 1.0.0 */ private string $thousands = ','; @@ -79,7 +79,7 @@ class Localization /** * Angle type. * - * @var string + * @var string * @since 1.0.0 */ private string $angle = AngleType::DEGREE; @@ -87,7 +87,7 @@ class Localization /** * Temperature type. * - * @var string + * @var string * @since 1.0.0 */ private string $temperature = TemperatureType::CELSIUS; @@ -95,7 +95,7 @@ class Localization /** * Time format. * - * @var array + * @var array * @since 1.0.0 */ private array $datetime = []; @@ -103,7 +103,7 @@ class Localization /** * Weight. * - * @var array + * @var array * @since 1.0.0 */ private array $weight = []; @@ -111,7 +111,7 @@ class Localization /** * Speed. * - * @var array + * @var array * @since 1.0.0 */ private array $speed = []; @@ -119,7 +119,7 @@ class Localization /** * Length. * - * @var array + * @var array * @since 1.0.0 */ private array $length = []; @@ -127,7 +127,7 @@ class Localization /** * Area. * - * @var array + * @var array * @since 1.0.0 */ private array $area = []; @@ -135,7 +135,7 @@ class Localization /** * Volume. * - * @var array + * @var array * @since 1.0.0 */ private array $volume = []; diff --git a/Localization/Money.php b/Localization/Money.php index ba24f257d..f35d1fa1a 100644 --- a/Localization/Money.php +++ b/Localization/Money.php @@ -27,7 +27,7 @@ final class Money implements \Serializable /** * Max amount of decimals. * - * @var int + * @var int * @since 1.0.0 */ public const MAX_DECIMALS = 4; @@ -35,7 +35,7 @@ final class Money implements \Serializable /** * Thousands separator. * - * @var string + * @var string * @since 1.0.0 */ private string $thousands = ','; @@ -43,7 +43,7 @@ final class Money implements \Serializable /** * Decimal separator. * - * @var string + * @var string * @since 1.0.0 */ private string $decimal = '.'; @@ -51,7 +51,7 @@ final class Money implements \Serializable /** * Currency symbol position * - * @var int + * @var int * @since 1.0.0 */ private int $position = 1; @@ -59,7 +59,7 @@ final class Money implements \Serializable /** * Currency symbol. * - * @var string + * @var string * @since 1.0.0 */ private string $symbol = ISO4217SymbolEnum::_USD; @@ -67,7 +67,7 @@ final class Money implements \Serializable /** * Value. * - * @var int + * @var int * @since 1.0.0 */ private int $value = 0; diff --git a/Log/FileLogger.php b/Log/FileLogger.php index 363a0f05f..9a71dd9aa 100644 --- a/Log/FileLogger.php +++ b/Log/FileLogger.php @@ -39,7 +39,7 @@ final class FileLogger implements LoggerInterface * Potential values are null or an array filled with log timings. * This is used in order to profile code sections by ID. * - * @var array + * @var array * @since 1.0.0 */ private static array $timings = []; @@ -47,7 +47,7 @@ final class FileLogger implements LoggerInterface /** * Instance. * - * @var FileLogger + * @var FileLogger * @since 1.0.0 */ protected static FileLogger $instance; @@ -55,7 +55,7 @@ final class FileLogger implements LoggerInterface /** * Verbose. * - * @var bool + * @var bool * @since 1.0.0 */ protected bool $verbose = false; @@ -65,7 +65,7 @@ final class FileLogger implements LoggerInterface * * Potential values are null or a valid file pointer * - * @var false|resource + * @var false|resource * @since 1.0.0 */ private $fp = false; @@ -73,7 +73,7 @@ final class FileLogger implements LoggerInterface /** * Logging path * - * @var string + * @var string * @since 1.0.0 */ private string $path; @@ -81,7 +81,7 @@ final class FileLogger implements LoggerInterface /** * Is the logging file created * - * @var bool + * @var bool * @since 1.0.0 */ private bool $created = false; diff --git a/Math/Functions/Gamma.php b/Math/Functions/Gamma.php index d64cbeb15..28c2cbbe3 100644 --- a/Math/Functions/Gamma.php +++ b/Math/Functions/Gamma.php @@ -37,7 +37,7 @@ final class Gamma /** * approximation values. * - * @var float[] + * @var float[] * @since 1.0.0 */ private const LANCZOSAPPROXIMATION = [ diff --git a/Math/Geometry/Shape/D2/Polygon.php b/Math/Geometry/Shape/D2/Polygon.php index c45becff3..10e41ee9e 100644 --- a/Math/Geometry/Shape/D2/Polygon.php +++ b/Math/Geometry/Shape/D2/Polygon.php @@ -27,7 +27,7 @@ final class Polygon implements D2ShapeInterface /** * Epsilon for float comparison. * - * @var float + * @var float * @since 1.0.0 */ public const EPSILON = 0.00001; @@ -37,7 +37,7 @@ final class Polygon implements D2ShapeInterface * * These coordinates define the polygon * - * @var array[] + * @var array[] * @since 1.0.0 */ private array $coord = []; diff --git a/Math/Geometry/Shape/D3/Sphere.php b/Math/Geometry/Shape/D3/Sphere.php index 4950c5705..7df3999ba 100644 --- a/Math/Geometry/Shape/D3/Sphere.php +++ b/Math/Geometry/Shape/D3/Sphere.php @@ -27,7 +27,7 @@ final class Sphere implements D3ShapeInterface /** * Radius. * - * @var float + * @var float * @since 1.0.0 */ private float $radius = 0.0; diff --git a/Math/Matrix/CholeskyDecomposition.php b/Math/Matrix/CholeskyDecomposition.php index 52dc17354..b028cec13 100644 --- a/Math/Matrix/CholeskyDecomposition.php +++ b/Math/Matrix/CholeskyDecomposition.php @@ -31,7 +31,7 @@ final class CholeskyDecomposition /** * L matrix. * - * @var array + * @var array * @since 1.0.0 */ private array $L = []; @@ -39,7 +39,7 @@ final class CholeskyDecomposition /** * Dimension of L * - * @var int + * @var int * @since 1.0.0 */ private int $m = 0; @@ -47,7 +47,7 @@ final class CholeskyDecomposition /** * Is symmetric positiv definite * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isSpd = true; diff --git a/Math/Matrix/EigenvalueDecomposition.php b/Math/Matrix/EigenvalueDecomposition.php index 6ebf2135f..8f306402a 100644 --- a/Math/Matrix/EigenvalueDecomposition.php +++ b/Math/Matrix/EigenvalueDecomposition.php @@ -32,7 +32,7 @@ final class EigenvalueDecomposition /** * Dimension m * - * @var int + * @var int * @since 1.0.0 */ private int $m = 0; @@ -40,7 +40,7 @@ final class EigenvalueDecomposition /** * Is symmetric * - * @var bool + * @var bool * @since 1.0.0 */ private bool $isSymmetric = true; @@ -48,7 +48,7 @@ final class EigenvalueDecomposition /** * A square matrix. * - * @var array + * @var array * @since 1.0.0 */ private array $A = []; @@ -56,7 +56,7 @@ final class EigenvalueDecomposition /** * Eigenvectors * - * @var array + * @var array * @since 1.0.0 */ private array $V = []; @@ -64,7 +64,7 @@ final class EigenvalueDecomposition /** * Eigenvalues * - * @var array + * @var array * @since 1.0.0 */ private array $D = []; @@ -72,7 +72,7 @@ final class EigenvalueDecomposition /** * Eigenvalues * - * @var array + * @var array * @since 1.0.0 */ private array $E = []; @@ -80,7 +80,7 @@ final class EigenvalueDecomposition /** * Hessenberg form * - * @var array + * @var array * @since 1.0.0 */ private array $H = []; @@ -88,7 +88,7 @@ final class EigenvalueDecomposition /** * Non-symmetric storage * - * @var array + * @var array * @since 1.0.0 */ private array $ort = []; @@ -96,7 +96,7 @@ final class EigenvalueDecomposition /** * Complex scalar division * - * @var float + * @var float * @since 1.0.0 */ private float $cdivr = 0.0; @@ -104,7 +104,7 @@ final class EigenvalueDecomposition /** * Complex scalar division * - * @var float + * @var float * @since 1.0.0 */ private float $cdivi = 0.0; diff --git a/Math/Matrix/LUDecomposition.php b/Math/Matrix/LUDecomposition.php index 09bfe6ce4..07345e6b7 100644 --- a/Math/Matrix/LUDecomposition.php +++ b/Math/Matrix/LUDecomposition.php @@ -31,7 +31,7 @@ final class LUDecomposition /** * LU matrix. * - * @var array + * @var array * @since 1.0.0 */ private array $LU = []; @@ -39,7 +39,7 @@ final class LUDecomposition /** * Dimension m * - * @var int + * @var int * @since 1.0.0 */ private int $m = 0; @@ -47,7 +47,7 @@ final class LUDecomposition /** * Dimension n * - * @var int + * @var int * @since 1.0.0 */ private int $n = 0; @@ -55,7 +55,7 @@ final class LUDecomposition /** * Pivot sign * - * @var int + * @var int * @since 1.0.0 */ private int $pivSign = 1; @@ -63,7 +63,7 @@ final class LUDecomposition /** * Pivot * - * @var array + * @var array * @since 1.0.0 */ private array $piv = []; diff --git a/Math/Matrix/Matrix.php b/Math/Matrix/Matrix.php index b2ef1acb6..5ac663b12 100644 --- a/Math/Matrix/Matrix.php +++ b/Math/Matrix/Matrix.php @@ -29,7 +29,7 @@ class Matrix implements \ArrayAccess, \Iterator /** * Matrix. * - * @var array + * @var array * @since 1.0.0 */ protected array $matrix = []; @@ -37,7 +37,7 @@ class Matrix implements \ArrayAccess, \Iterator /** * Columns. * - * @var int + * @var int * @since 1.0.0 */ protected int $n = 0; @@ -45,7 +45,7 @@ class Matrix implements \ArrayAccess, \Iterator /** * Rows. * - * @var int + * @var int * @since 1.0.0 */ protected int $m = 0; @@ -53,7 +53,7 @@ class Matrix implements \ArrayAccess, \Iterator /** * Iterator position. * - * @var int + * @var int * @since 1.0.0 */ protected int $position = 0; diff --git a/Math/Matrix/QRDecomposition.php b/Math/Matrix/QRDecomposition.php index 1c1f8e346..dd0add4d5 100644 --- a/Math/Matrix/QRDecomposition.php +++ b/Math/Matrix/QRDecomposition.php @@ -32,7 +32,7 @@ final class QRDecomposition /** * QR matrix. * - * @var array[] + * @var array[] * @since 1.0.0 */ private array $QR = []; @@ -40,7 +40,7 @@ final class QRDecomposition /** * Dimension m * - * @var int + * @var int * @since 1.0.0 */ private int $m = 0; @@ -48,7 +48,7 @@ final class QRDecomposition /** * Dimension n * - * @var int + * @var int * @since 1.0.0 */ private int $n = 0; @@ -56,7 +56,7 @@ final class QRDecomposition /** * R diagonal * - * @var array + * @var array * @since 1.0.0 */ private array $Rdiag = []; diff --git a/Math/Number/Complex.php b/Math/Number/Complex.php index c9316307c..092a25031 100644 --- a/Math/Number/Complex.php +++ b/Math/Number/Complex.php @@ -27,7 +27,7 @@ final class Complex /** * Real part. * - * @var int|float + * @var int|float * @since 1.0.0 */ private $re; @@ -35,7 +35,7 @@ final class Complex /** * Imaginary part. * - * @var int|float + * @var int|float * @since 1.0.0 */ private $im; diff --git a/Math/Numerics/Interpolation/CubicSplineInterpolation.php b/Math/Numerics/Interpolation/CubicSplineInterpolation.php index d45c9a379..a419ae63e 100644 --- a/Math/Numerics/Interpolation/CubicSplineInterpolation.php +++ b/Math/Numerics/Interpolation/CubicSplineInterpolation.php @@ -30,7 +30,7 @@ final class CubicSplineInterpolation implements InterpolationInterface /** * Points for spline interpolation * - * @var array + * @var array * @since 1.0.0 */ private array $points = []; @@ -38,7 +38,7 @@ final class CubicSplineInterpolation implements InterpolationInterface /** * Parameter a of cubic spline * - * @var Vector + * @var Vector * @since 1.0.0 */ private Vector $solveA; @@ -46,7 +46,7 @@ final class CubicSplineInterpolation implements InterpolationInterface /** * Parameter b of cubic spline * - * @var Matrix + * @var Matrix * @since 1.0.0 */ private Matrix $solveB; @@ -54,7 +54,7 @@ final class CubicSplineInterpolation implements InterpolationInterface /** * Parameter c of cubic spline * - * @var Vector + * @var Vector * @since 1.0.0 */ private Vector $solveC; diff --git a/Math/Numerics/Interpolation/LagrangeInterpolation.php b/Math/Numerics/Interpolation/LagrangeInterpolation.php index 9e1245200..69fff9d5c 100644 --- a/Math/Numerics/Interpolation/LagrangeInterpolation.php +++ b/Math/Numerics/Interpolation/LagrangeInterpolation.php @@ -27,7 +27,7 @@ final class LagrangeInterpolation implements InterpolationInterface /** * Points for spline interpolation * - * @var array + * @var array * @since 1.0.0 */ private array $points = []; diff --git a/Math/Numerics/Interpolation/LinearInterpolation.php b/Math/Numerics/Interpolation/LinearInterpolation.php index ca469d45e..f149d95ce 100644 --- a/Math/Numerics/Interpolation/LinearInterpolation.php +++ b/Math/Numerics/Interpolation/LinearInterpolation.php @@ -29,7 +29,7 @@ final class LinearInterpolation implements InterpolationInterface /** * Points for spline interpolation * - * @var array + * @var array * @since 1.0.0 */ private array $points = []; @@ -37,7 +37,7 @@ final class LinearInterpolation implements InterpolationInterface /** * Parameter a of cubic spline * - * @var Vector + * @var Vector * @since 1.0.0 */ private Vector $solveA; @@ -45,7 +45,7 @@ final class LinearInterpolation implements InterpolationInterface /** * Parameter b of cubic spline * - * @var Vector + * @var Vector * @since 1.0.0 */ private Vector $solveB; @@ -53,7 +53,7 @@ final class LinearInterpolation implements InterpolationInterface /** * Parameter c of cubic spline * - * @var Vector + * @var Vector * @since 1.0.0 */ private Vector $solveC; diff --git a/Math/Statistic/Forecast/Regression/PolynomialRegression.php b/Math/Statistic/Forecast/Regression/PolynomialRegression.php index deb1eecfd..8ad540780 100644 --- a/Math/Statistic/Forecast/Regression/PolynomialRegression.php +++ b/Math/Statistic/Forecast/Regression/PolynomialRegression.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\Math\Statistic\Forecast\Regression; -use phpOMS\Math\Statistic\Average; use phpOMS\Math\Matrix\Exception\InvalidDimensionException; +use phpOMS\Math\Statistic\Average; /** * Regression class. diff --git a/Math/Stochastic/Distribution/ChiSquaredDistribution.php b/Math/Stochastic/Distribution/ChiSquaredDistribution.php index 0ed6fb190..581db6a77 100644 --- a/Math/Stochastic/Distribution/ChiSquaredDistribution.php +++ b/Math/Stochastic/Distribution/ChiSquaredDistribution.php @@ -27,7 +27,7 @@ final class ChiSquaredDistribution /** * Chi square table. * - * @var array> + * @var array> * @since 1.0.0 */ public const TABLE = [ diff --git a/Math/Stochastic/Distribution/LogNormalDistribution.php b/Math/Stochastic/Distribution/LogNormalDistribution.php index d81c6c121..6267685ec 100644 --- a/Math/Stochastic/Distribution/LogNormalDistribution.php +++ b/Math/Stochastic/Distribution/LogNormalDistribution.php @@ -154,7 +154,7 @@ final class LogNormalDistribution */ public static function getEntrpoy(float $mu, float $sigma) : float { - return \log($sigma * \exp($mu + 1 / 2) * \sqrt(2 * M_1_PI), 2); + return \log($sigma * \exp($mu + 1 / 2) * \sqrt(2 * \M_1_PI), 2); } /** diff --git a/Math/Stochastic/Distribution/NormalDistribution.php b/Math/Stochastic/Distribution/NormalDistribution.php index 104297607..b1c2f4f2c 100644 --- a/Math/Stochastic/Distribution/NormalDistribution.php +++ b/Math/Stochastic/Distribution/NormalDistribution.php @@ -29,7 +29,7 @@ final class NormalDistribution * * Z-Score. * - * @var array + * @var array * @since 1.0.0 */ public const TABLE = [ diff --git a/Math/Stochastic/Distribution/ParetoDistribution.php b/Math/Stochastic/Distribution/ParetoDistribution.php index c5e1bf4c8..07d526d37 100644 --- a/Math/Stochastic/Distribution/ParetoDistribution.php +++ b/Math/Stochastic/Distribution/ParetoDistribution.php @@ -191,7 +191,7 @@ final class ParetoDistribution { return [ [$alpha / $xm ** 2, -1 / $xm], - [-1 / $xm, 1 / ($alpha ** 2)] + [-1 / $xm, 1 / ($alpha ** 2)], ]; } } diff --git a/Math/Stochastic/Distribution/TDistribution.php b/Math/Stochastic/Distribution/TDistribution.php index 8a217731c..e848b1a3f 100644 --- a/Math/Stochastic/Distribution/TDistribution.php +++ b/Math/Stochastic/Distribution/TDistribution.php @@ -29,7 +29,7 @@ final class TDistribution * * [degrees of freedom = df] * - * @var array> + * @var array> * @since 1.0.0 */ public const TABLE = [ diff --git a/Math/Stochastic/Distribution/ZTest.php b/Math/Stochastic/Distribution/ZTest.php index 4d345b65f..384a02a8d 100644 --- a/Math/Stochastic/Distribution/ZTest.php +++ b/Math/Stochastic/Distribution/ZTest.php @@ -21,6 +21,8 @@ namespace phpOMS\Math\Stochastic\Distribution; * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 + * + * @internal */ final class ZTest { diff --git a/Math/Stochastic/NaiveBayesClassifier.php b/Math/Stochastic/NaiveBayesClassifier.php index 99d87d4ba..419c19090 100644 --- a/Math/Stochastic/NaiveBayesClassifier.php +++ b/Math/Stochastic/NaiveBayesClassifier.php @@ -29,7 +29,7 @@ final class NaiveBayesClassifier /** * Dictionary of different criterias. * - * @var array + * @var array * @since 1.0.0 */ private array $dict = []; @@ -37,7 +37,7 @@ final class NaiveBayesClassifier /** * Dictionary changed. * - * @var bool + * @var bool * @since 1.0.0 */ private bool $changed = true; @@ -45,7 +45,7 @@ final class NaiveBayesClassifier /** * Cached probabilities. * - * @var array + * @var array * @since 1.0.0 */ private array $probabilities = [ @@ -193,7 +193,7 @@ final class NaiveBayesClassifier * \exp(-($toMatch[$attr] - $this->probabilities['criteria'][$criteria]['attr'][$attr]['mean']) ** 2 / (2 * $this->probabilities['criteria'][$criteria]['attr'][$attr]['variance']))) * ($this->probabilities['criteria'][$criteria]['count'] / $this->probabilities['count']); } else { - if (!isset( $this->probabilities['attr'][$attr])) { + if (!isset($this->probabilities['attr'][$attr])) { $this->probabilities['attr'][$attr] = ['data' => []]; } diff --git a/Math/Topology/Metrics2D.php b/Math/Topology/Metrics2D.php index 92ecc7d1e..7f0238b36 100644 --- a/Math/Topology/Metrics2D.php +++ b/Math/Topology/Metrics2D.php @@ -121,7 +121,7 @@ final class Metrics2D * * @param array $a 2-D array with x and y coordinate * @param array $b 2-D array with x and y coordinate - * @param int $lambda Lambda + * @param int $lambda Lambda * * @return float * diff --git a/Math/Topology/MetricsND.php b/Math/Topology/MetricsND.php index d5b32e962..edfe9be36 100644 --- a/Math/Topology/MetricsND.php +++ b/Math/Topology/MetricsND.php @@ -122,7 +122,7 @@ final class MetricsND * * @param array $a n-D array * @param array $b n-D array - * @param int $lambda Lambda + * @param int $lambda Lambda * * @return float * diff --git a/Message/Console/Header.php b/Message/Console/Header.php index efd66c9c9..238dc9eb2 100644 --- a/Message/Console/Header.php +++ b/Message/Console/Header.php @@ -31,7 +31,7 @@ final class Header extends HeaderAbstract /** * Protocol version. * - * @var string + * @var string * @since 1.0.0 */ private const VERSION = '1.0'; @@ -39,7 +39,7 @@ final class Header extends HeaderAbstract /** * Header. * - * @var string[][] + * @var string[][] * @since 1.0.0 */ private array $header = []; diff --git a/Message/Console/Request.php b/Message/Console/Request.php index d7fdf472e..2cef0a42f 100644 --- a/Message/Console/Request.php +++ b/Message/Console/Request.php @@ -36,7 +36,7 @@ final class Request extends RequestAbstract /** * Uri. * - * @var UriInterface + * @var UriInterface * @since 1.0.0 */ protected UriInterface $uri; @@ -44,7 +44,7 @@ final class Request extends RequestAbstract /** * Request method. * - * @var string + * @var string * @since 1.0.0 */ protected string $method; @@ -52,7 +52,7 @@ final class Request extends RequestAbstract /** * Request hash. * - * @var array + * @var array * @since 1.0.0 */ protected array $hash = []; @@ -60,7 +60,7 @@ final class Request extends RequestAbstract /** * OS type. * - * @var string + * @var string * @since 1.0.0 */ private string $os; diff --git a/Message/Console/Response.php b/Message/Console/Response.php index 2fe603111..d1c6d2f5b 100644 --- a/Message/Console/Response.php +++ b/Message/Console/Response.php @@ -35,7 +35,7 @@ final class Response extends ResponseAbstract implements RenderableInterface /** * Response status. * - * @var int + * @var int * @since 1.0.0 */ protected int $status = RequestStatusCode::R_200; diff --git a/Message/HeaderAbstract.php b/Message/HeaderAbstract.php index 99ab68f1a..6457343cb 100644 --- a/Message/HeaderAbstract.php +++ b/Message/HeaderAbstract.php @@ -29,7 +29,7 @@ abstract class HeaderAbstract /** * Responses. * - * @var bool + * @var bool * @since 1.0.0 */ protected bool $isLocked = false; @@ -37,7 +37,7 @@ abstract class HeaderAbstract /** * Localization. * - * @var Localization + * @var Localization * @since 1.0.0 */ protected Localization $l11n; @@ -45,7 +45,7 @@ abstract class HeaderAbstract /** * Account. * - * @var int + * @var int * @since 1.0.0 */ protected int $account = 0; @@ -53,7 +53,7 @@ abstract class HeaderAbstract /** * Response status. * - * @var int + * @var int * @since 1.0.0 */ protected int $status = 0; diff --git a/Message/Http/Header.php b/Message/Http/Header.php index 946771ab6..400db0f4d 100644 --- a/Message/Http/Header.php +++ b/Message/Http/Header.php @@ -32,7 +32,7 @@ final class Header extends HeaderAbstract /** * Header. * - * @var string[][] + * @var string[][] * @since 1.0.0 */ private array $header = []; diff --git a/Message/Http/Request.php b/Message/Http/Request.php index e7c2c9f59..8c9b2ef99 100644 --- a/Message/Http/Request.php +++ b/Message/Http/Request.php @@ -36,7 +36,7 @@ final class Request extends RequestAbstract /** * Request method. * - * @var string + * @var string * @since 1.0.0 */ protected string $method; @@ -44,7 +44,7 @@ final class Request extends RequestAbstract /** * Browser type. * - * @var string + * @var string * @since 1.0.0 */ private string $browser; @@ -52,7 +52,7 @@ final class Request extends RequestAbstract /** * OS type. * - * @var string + * @var string * @since 1.0.0 */ private string $os; @@ -60,7 +60,7 @@ final class Request extends RequestAbstract /** * Request information. * - * @var string[] + * @var string[] * @since 1.0.0 */ private array $info; @@ -68,7 +68,7 @@ final class Request extends RequestAbstract /** * Request hash. * - * @var array + * @var array * @since 1.0.0 */ protected array $hash = []; @@ -76,7 +76,7 @@ final class Request extends RequestAbstract /** * Uploaded files. * - * @var array + * @var array * @since 1.0.0 */ protected array $files; diff --git a/Message/Mail/EmailAbstract.php b/Message/Mail/EmailAbstract.php index f730c5236..af4ceb66e 100644 --- a/Message/Mail/EmailAbstract.php +++ b/Message/Mail/EmailAbstract.php @@ -30,7 +30,7 @@ class EmailAbstract /** * Host. * - * @var string + * @var string * @since 1.0.0 */ protected $host = ''; @@ -38,7 +38,7 @@ class EmailAbstract /** * Port. * - * @var int + * @var int * @since 1.0.0 */ protected $port = 25; @@ -46,7 +46,7 @@ class EmailAbstract /** * Use ssl. * - * @var bool + * @var bool * @since 1.0.0 */ protected $ssl = false; @@ -54,7 +54,7 @@ class EmailAbstract /** * Mailbox base. * - * @var string + * @var string * @since 1.0.0 */ protected $mailbox = ''; @@ -62,7 +62,7 @@ class EmailAbstract /** * Timeout. * - * @var int + * @var int * @since 1.0.0 */ protected $timeout = 30; @@ -70,7 +70,7 @@ class EmailAbstract /** * Connection. * - * @var mixed + * @var mixed * @since 1.0.0 */ protected $con = null; diff --git a/Message/Mail/Mail.php b/Message/Mail/Mail.php index 4fa00e507..d24586e74 100644 --- a/Message/Mail/Mail.php +++ b/Message/Mail/Mail.php @@ -27,7 +27,7 @@ class Mail /** * Mail from. * - * @var string + * @var string * @since 1.0.0 */ protected $from = ''; @@ -35,7 +35,7 @@ class Mail /** * Mail to. * - * @var array + * @var array * @since 1.0.0 */ protected $to = []; @@ -43,7 +43,7 @@ class Mail /** * Mail subject. * - * @var string + * @var string * @since 1.0.0 */ protected $subject = ''; @@ -51,7 +51,7 @@ class Mail /** * Mail cc. * - * @var array + * @var array * @since 1.0.0 */ protected $cc = []; @@ -59,7 +59,7 @@ class Mail /** * Mail reply to. * - * @var array + * @var array * @since 1.0.0 */ protected $replyTo = []; @@ -67,7 +67,7 @@ class Mail /** * Mail bcc. * - * @var array + * @var array * @since 1.0.0 */ protected $bcc = []; @@ -75,7 +75,7 @@ class Mail /** * Mail attachments. * - * @var array + * @var array * @since 1.0.0 */ protected $attachment = []; @@ -83,7 +83,7 @@ class Mail /** * Mail body. * - * @var string + * @var string * @since 1.0.0 */ protected $body = ''; @@ -91,7 +91,7 @@ class Mail /** * Mail overview. * - * @var string + * @var string * @since 1.0.0 */ protected $overview = ''; @@ -99,7 +99,7 @@ class Mail /** * Mail alt. * - * @var string + * @var string * @since 1.0.0 */ protected $bodyAlt = ''; @@ -107,7 +107,7 @@ class Mail /** * Mail mime. * - * @var string + * @var string * @since 1.0.0 */ protected $bodyMime = ''; @@ -115,7 +115,7 @@ class Mail /** * Mail header. * - * @var string + * @var string * @since 1.0.0 */ protected $headerMail = ''; @@ -123,7 +123,7 @@ class Mail /** * Word wrap. * - * @var int + * @var int * @since 1.0.0 */ protected $wordWrap = 78; @@ -131,7 +131,7 @@ class Mail /** * Encoding. * - * @var int + * @var int * @since 1.0.0 */ protected $encoding = 0; @@ -139,7 +139,7 @@ class Mail /** * Mail host name. * - * @var string + * @var string * @since 1.0.0 */ protected $hostname = ''; @@ -147,7 +147,7 @@ class Mail /** * Mail id. * - * @var string + * @var string * @since 1.0.0 */ protected $messageId = ''; @@ -155,7 +155,7 @@ class Mail /** * Mail message type. * - * @var string + * @var string * @since 1.0.0 */ protected $messageType = ''; @@ -163,7 +163,7 @@ class Mail /** * Mail from. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ protected $messageDate = null; diff --git a/Message/RequestAbstract.php b/Message/RequestAbstract.php index 5f65787db..a99129caf 100644 --- a/Message/RequestAbstract.php +++ b/Message/RequestAbstract.php @@ -29,7 +29,7 @@ abstract class RequestAbstract implements MessageInterface /** * Uri. * - * @var UriInterface + * @var UriInterface * @since 1.0.0 */ protected UriInterface $uri; @@ -37,7 +37,7 @@ abstract class RequestAbstract implements MessageInterface /** * Request data. * - * @var array + * @var array * @since 1.0.0 */ protected array $data = []; @@ -45,7 +45,7 @@ abstract class RequestAbstract implements MessageInterface /** * Request lock. * - * @var bool + * @var bool * @since 1.0.0 */ protected bool $lock = false; @@ -53,7 +53,7 @@ abstract class RequestAbstract implements MessageInterface /** * Request header. * - * @var HeaderAbstract + * @var HeaderAbstract * @since 1.0.0 */ protected HeaderAbstract $header; diff --git a/Message/ResponseAbstract.php b/Message/ResponseAbstract.php index 24c9b3d37..7c0d36c7b 100644 --- a/Message/ResponseAbstract.php +++ b/Message/ResponseAbstract.php @@ -27,7 +27,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable /** * Responses. * - * @var array + * @var array * @since 1.0.0 */ protected array $response = []; @@ -35,7 +35,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable /** * Header. * - * @var HeaderAbstract + * @var HeaderAbstract * @since 1.0.0 */ protected HeaderAbstract $header; diff --git a/Message/Socket/Header.php b/Message/Socket/Header.php index fadf217e4..ecf84072c 100644 --- a/Message/Socket/Header.php +++ b/Message/Socket/Header.php @@ -35,7 +35,7 @@ class Header extends HeaderAbstract implements \Serializable /** * Packet size. * - * @var int + * @var int * @since 1.0.0 */ private $length = 0; @@ -43,7 +43,7 @@ class Header extends HeaderAbstract implements \Serializable /** * Packet type. * - * @var int + * @var int * @since 1.0.0 */ private $type = 0; @@ -51,7 +51,7 @@ class Header extends HeaderAbstract implements \Serializable /** * Packet subtype. * - * @var int + * @var int * @since 1.0.0 */ private $subtype = 0; @@ -59,7 +59,7 @@ class Header extends HeaderAbstract implements \Serializable /** * Header. * - * @var string[][] + * @var string[][] * @since 1.0.0 */ private array $header = []; diff --git a/Message/Socket/PacketManager.php b/Message/Socket/PacketManager.php index 66d74e56f..7a3c2408f 100644 --- a/Message/Socket/PacketManager.php +++ b/Message/Socket/PacketManager.php @@ -14,11 +14,8 @@ declare(strict_types=1); namespace phpOMS\Message\Socket; -use phpOMS\Socket\Server\ClientManager; use phpOMS\Dispatcher\Dispatcher; use phpOMS\Router\SocketRouter; -use phpOMS\Message\Socket\Request; -use phpOMS\Message\Socket\Response; /** * Server class. @@ -35,7 +32,7 @@ class PacketManager /** * Socket router. * - * @var SocketRouter + * @var SocketRouter * @since 1.0.0 */ private SocketRouter $router; @@ -43,7 +40,7 @@ class PacketManager /** * Dispatcher. * - * @var Dispatcher + * @var Dispatcher * @since 1.0.0 */ private Dispatcher $dispatcher; diff --git a/Message/Socket/Response.php b/Message/Socket/Response.php index 122378f4a..f30193078 100644 --- a/Message/Socket/Response.php +++ b/Message/Socket/Response.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\Message\Socket; -use phpOMS\Message\ResponseAbstract; use phpOMS\Contract\RenderableInterface; +use phpOMS\Message\ResponseAbstract; /** * Response class. diff --git a/Model/Html/FormElement.php b/Model/Html/FormElement.php index c3c962bce..523da1e12 100644 --- a/Model/Html/FormElement.php +++ b/Model/Html/FormElement.php @@ -27,7 +27,7 @@ class FormElement /** * Element id. * - * @var string + * @var string * @since 1.0.0 */ public string $id; @@ -35,7 +35,7 @@ class FormElement /** * Form id. * - * @var string + * @var string * @since 1.0.0 */ public string $form; @@ -43,7 +43,7 @@ class FormElement /** * Element name. * - * @var string + * @var string * @since 1.0.0 */ public string $name; @@ -51,7 +51,7 @@ class FormElement /** * Value is required. * - * @var bool + * @var bool * @since 1.0.0 */ public bool $required; @@ -59,7 +59,7 @@ class FormElement /** * Default value. * - * @var string + * @var string * @since 1.0.0 */ public string $defaultValue; @@ -67,7 +67,7 @@ class FormElement /** * Required values which cannot be changed/removed. * - * @var string + * @var string * @since 1.0.0 */ public string $requiredValue; @@ -75,7 +75,7 @@ class FormElement /** * Autosave on change. * - * @var bool + * @var bool * @since 1.0.0 */ public bool $autosave; diff --git a/Model/Html/Head.php b/Model/Html/Head.php index 9fd3bea80..b21aeceda 100644 --- a/Model/Html/Head.php +++ b/Model/Html/Head.php @@ -33,7 +33,7 @@ final class Head implements RenderableInterface /** * Page language. * - * @var string + * @var string * @since 1.0.0 */ private string $language = ISO639x1Enum::_EN; @@ -41,7 +41,7 @@ final class Head implements RenderableInterface /** * Page title. * - * @var string + * @var string * @since 1.0.0 */ private string $title = ''; @@ -49,7 +49,7 @@ final class Head implements RenderableInterface /** * Assets bound to this page instance. * - * @var array + * @var array * @since 1.0.0 */ private array $assets = []; @@ -57,7 +57,7 @@ final class Head implements RenderableInterface /** * Is the header set? * - * @var bool + * @var bool * @since 1.0.0 */ private bool $hasContent = false; @@ -65,7 +65,7 @@ final class Head implements RenderableInterface /** * Page meta. * - * @var Meta + * @var Meta * @since 1.0.0 */ private Meta $meta; @@ -75,7 +75,7 @@ final class Head implements RenderableInterface * * Inline style * - * @var mixed[] + * @var mixed[] * @since 1.0.0 */ private array $style = []; @@ -83,7 +83,7 @@ final class Head implements RenderableInterface /** * html script. * - * @var mixed[] + * @var mixed[] * @since 1.0.0 */ private array $script = []; diff --git a/Model/Html/Meta.php b/Model/Html/Meta.php index d3b774d74..e5c431a2b 100644 --- a/Model/Html/Meta.php +++ b/Model/Html/Meta.php @@ -30,7 +30,7 @@ final class Meta implements RenderableInterface /** * Keywords. * - * @var string[] + * @var string[] * @since 1.0.0 */ private array $keywords = []; @@ -38,7 +38,7 @@ final class Meta implements RenderableInterface /** * Author. * - * @var string + * @var string * @since 1.0.0 */ private string $author = ''; @@ -46,7 +46,7 @@ final class Meta implements RenderableInterface /** * Charset. * - * @var string + * @var string * @since 1.0.0 */ private string $charset = ''; @@ -54,7 +54,7 @@ final class Meta implements RenderableInterface /** * Description. * - * @var string + * @var string * @since 1.0.0 */ private string $description = ''; @@ -62,7 +62,7 @@ final class Meta implements RenderableInterface /** * Itemprop. * - * @var array + * @var array * @since 1.0.0 */ private array $itemprops = []; @@ -70,7 +70,7 @@ final class Meta implements RenderableInterface /** * Property. * - * @var array + * @var array * @since 1.0.0 */ private array $properties = []; @@ -78,7 +78,7 @@ final class Meta implements RenderableInterface /** * Name. * - * @var array + * @var array * @since 1.0.0 */ private array $names = []; diff --git a/Model/Message/Dom.php b/Model/Message/Dom.php index 6e522791e..69f8d173a 100644 --- a/Model/Message/Dom.php +++ b/Model/Message/Dom.php @@ -29,7 +29,7 @@ final class Dom implements \Serializable, ArrayableInterface /** * Message type. * - * @var string + * @var string * @since 1.0.0 */ public const TYPE = 'dom'; @@ -37,7 +37,7 @@ final class Dom implements \Serializable, ArrayableInterface /** * Selector string. * - * @var string + * @var string * @since 1.0.0 */ private string $selector = ''; @@ -45,7 +45,7 @@ final class Dom implements \Serializable, ArrayableInterface /** * Dom content. * - * @var string + * @var string * @since 1.0.0 */ private string $content = ''; @@ -53,7 +53,7 @@ final class Dom implements \Serializable, ArrayableInterface /** * Dom action. * - * @var int + * @var int * @since 1.0.0 */ private int $action = DomAction::MODIFY; @@ -61,7 +61,7 @@ final class Dom implements \Serializable, ArrayableInterface /** * Delay in ms. * - * @var int + * @var int * @since 1.0.0 */ private int $delay = 0; diff --git a/Model/Message/FormValidation.php b/Model/Message/FormValidation.php index 4a8626df7..c5c674e07 100644 --- a/Model/Message/FormValidation.php +++ b/Model/Message/FormValidation.php @@ -29,7 +29,7 @@ final class FormValidation implements \Serializable, ArrayableInterface, \JsonSe /** * Message type. * - * @var string + * @var string * @since 1.0.0 */ public const TYPE = 'validation'; @@ -37,7 +37,7 @@ final class FormValidation implements \Serializable, ArrayableInterface, \JsonSe /** * Form validation result. * - * @var array + * @var array * @since 1.0.0 */ private array $validation = []; diff --git a/Model/Message/Notify.php b/Model/Message/Notify.php index be79d351c..391256a50 100644 --- a/Model/Message/Notify.php +++ b/Model/Message/Notify.php @@ -29,7 +29,7 @@ final class Notify implements \Serializable, ArrayableInterface, \JsonSerializab /** * Message type. * - * @var string + * @var string * @since 1.0.0 */ public const TYPE = 'notify'; @@ -37,7 +37,7 @@ final class Notify implements \Serializable, ArrayableInterface, \JsonSerializab /** * Notification title. * - * @var string + * @var string * @since 1.0.0 */ private string $title = ''; @@ -45,7 +45,7 @@ final class Notify implements \Serializable, ArrayableInterface, \JsonSerializab /** * Message. * - * @var string + * @var string * @since 1.0.0 */ private string $message = ''; @@ -53,7 +53,7 @@ final class Notify implements \Serializable, ArrayableInterface, \JsonSerializab /** * Delay in ms. * - * @var int + * @var int * @since 1.0.0 */ private int $delay = 0; @@ -61,7 +61,7 @@ final class Notify implements \Serializable, ArrayableInterface, \JsonSerializab /** * Stay in ms. * - * @var int + * @var int * @since 1.0.0 */ private int $stay = 0; @@ -69,7 +69,7 @@ final class Notify implements \Serializable, ArrayableInterface, \JsonSerializab /** * Level or type. * - * @var int + * @var int * @since 1.0.0 */ private int $level = NotifyType::INFO; diff --git a/Model/Message/Redirect.php b/Model/Message/Redirect.php index 3a82a7308..41d06bb09 100644 --- a/Model/Message/Redirect.php +++ b/Model/Message/Redirect.php @@ -29,7 +29,7 @@ final class Redirect implements \Serializable, ArrayableInterface, \JsonSerializ /** * Message type. * - * @var string + * @var string * @since 1.0.0 */ public const TYPE = 'redirect'; @@ -37,7 +37,7 @@ final class Redirect implements \Serializable, ArrayableInterface, \JsonSerializ /** * Redirect uri. * - * @var string + * @var string * @since 1.0.0 */ private string $uri = ''; @@ -45,7 +45,7 @@ final class Redirect implements \Serializable, ArrayableInterface, \JsonSerializ /** * Delay. * - * @var int + * @var int * @since 1.0.0 */ private int $delay = 0; @@ -53,7 +53,7 @@ final class Redirect implements \Serializable, ArrayableInterface, \JsonSerializ /** * Window. * - * @var bool + * @var bool * @since 1.0.0 */ private bool $new = false; diff --git a/Model/Message/Reload.php b/Model/Message/Reload.php index 24666fcc8..34a1e7b5f 100644 --- a/Model/Message/Reload.php +++ b/Model/Message/Reload.php @@ -29,7 +29,7 @@ final class Reload implements \Serializable, ArrayableInterface, \JsonSerializab /** * Message type. * - * @var string + * @var string * @since 1.0.0 */ public const TYPE = 'reload'; @@ -37,7 +37,7 @@ final class Reload implements \Serializable, ArrayableInterface, \JsonSerializab /** * Delay in ms. * - * @var int + * @var int * @since 1.0.0 */ private int $delay = 0; diff --git a/Module/InfoManager.php b/Module/InfoManager.php index ea3fe5f03..ad63d9715 100644 --- a/Module/InfoManager.php +++ b/Module/InfoManager.php @@ -32,7 +32,7 @@ final class InfoManager /** * File path. * - * @var string + * @var string * @since 1.0.0 */ private string $path = ''; @@ -40,7 +40,7 @@ final class InfoManager /** * Info data. * - * @var array + * @var array * @since 1.0.0 */ private array $info = []; diff --git a/Module/ModuleAbstract.php b/Module/ModuleAbstract.php index 3bd27784d..455aea082 100644 --- a/Module/ModuleAbstract.php +++ b/Module/ModuleAbstract.php @@ -35,7 +35,7 @@ abstract class ModuleAbstract /** * Module name. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_NAME = ''; @@ -43,7 +43,7 @@ abstract class ModuleAbstract /** * Module path. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_PATH = __DIR__ . '/../../Modules'; @@ -51,7 +51,7 @@ abstract class ModuleAbstract /** * Module version. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_VERSION = '1.0.0'; @@ -59,7 +59,7 @@ abstract class ModuleAbstract /** * Module id. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_ID = 0; @@ -67,7 +67,7 @@ abstract class ModuleAbstract /** * Receiving modules from? * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $providing = []; @@ -75,7 +75,7 @@ abstract class ModuleAbstract /** * Dependencies. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $dependencies = []; @@ -83,7 +83,7 @@ abstract class ModuleAbstract /** * Receiving modules from? * - * @var string[] + * @var string[] * @since 1.0.0 */ protected array $receiving = []; @@ -91,7 +91,7 @@ abstract class ModuleAbstract /** * Application instance. * - * @var ApplicationAbstract + * @var ApplicationAbstract * @since 1.0.0 */ protected ApplicationAbstract $app; @@ -105,7 +105,7 @@ abstract class ModuleAbstract */ public function __construct(ApplicationAbstract $app = null) { - $this->app = $app ?? new class extends ApplicationAbstract {}; + $this->app = $app ?? new class() extends ApplicationAbstract {}; } /** diff --git a/Module/ModuleManager.php b/Module/ModuleManager.php index 8074c6e4e..aad80f2e1 100644 --- a/Module/ModuleManager.php +++ b/Module/ModuleManager.php @@ -40,7 +40,7 @@ final class ModuleManager /** * All modules that are running on this uri. * - * @var \phpOMS\Module\ModuleAbstract[] + * @var \phpOMS\Module\ModuleAbstract[] * @since 1.0.0 */ private array $running = []; @@ -50,7 +50,7 @@ final class ModuleManager * * This is important to inform other modules what kind of information they can receive from other modules. * - * @var array + * @var array * @since 1.0.0 */ private array $providing = []; @@ -58,7 +58,7 @@ final class ModuleManager /** * Application instance. * - * @var ApplicationAbstract + * @var ApplicationAbstract * @since 1.0.0 */ private ApplicationAbstract $app; @@ -66,7 +66,7 @@ final class ModuleManager /** * Installed modules. * - * @var array + * @var array * @since 1.0.0 */ private array $installed = []; @@ -74,7 +74,7 @@ final class ModuleManager /** * All active modules (on all pages not just the ones that are running now). * - * @var array + * @var array * @since 1.0.0 */ private array $active = []; @@ -82,7 +82,7 @@ final class ModuleManager /** * Module path. * - * @var string + * @var string * @since 1.0.0 */ private string $modulePath; @@ -90,7 +90,7 @@ final class ModuleManager /** * All modules in the module directory. * - * @var array + * @var array * @since 1.0.0 */ private array $all = []; @@ -98,7 +98,7 @@ final class ModuleManager /** * To load based on request uri. * - * @var array + * @var array * @since 1.0.0 */ private array $uriLoad = []; diff --git a/Module/PackageManager.php b/Module/PackageManager.php index 983969c7e..16c3ee0a8 100644 --- a/Module/PackageManager.php +++ b/Module/PackageManager.php @@ -38,7 +38,7 @@ final class PackageManager /** * File path. * - * @var string + * @var string * @since 1.0.0 */ private string $path = ''; @@ -46,7 +46,7 @@ final class PackageManager /** * Base path. * - * @var string + * @var string * @since 1.0.0 */ private string $basePath = ''; @@ -54,7 +54,7 @@ final class PackageManager /** * Extract path. * - * @var string + * @var string * @since 1.0.0 */ private string $extractPath = ''; @@ -62,7 +62,7 @@ final class PackageManager /** * Public key. * - * @var string + * @var string * @since 1.0.0 */ private string $publicKey = ''; @@ -70,7 +70,7 @@ final class PackageManager /** * Info data. * - * @var array + * @var array * @since 1.0.0 */ private array $info = []; diff --git a/Module/UninstallerAbstract.php b/Module/UninstallerAbstract.php index f46233d0f..314dc038b 100644 --- a/Module/UninstallerAbstract.php +++ b/Module/UninstallerAbstract.php @@ -15,8 +15,8 @@ declare(strict_types=1); namespace phpOMS\Module; use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\DataStorage\Database\Schema\Builder as SchemaBuilder; use phpOMS\DataStorage\Database\Query\Builder; +use phpOMS\DataStorage\Database\Schema\Builder as SchemaBuilder; /** * Uninstaller abstract class. diff --git a/Preloader.php b/Preloader.php index 6afdb9b08..dd897def8 100644 --- a/Preloader.php +++ b/Preloader.php @@ -27,7 +27,7 @@ final class Preloader /** * Files and paths * - * @var array + * @var array * @since 1.0.0 */ private array $includes = []; @@ -35,7 +35,7 @@ final class Preloader /** * Ignored files and paths * - * @var array + * @var array * @since 1.0.0 */ private array $ignores = []; diff --git a/Router/SocketRouter.php b/Router/SocketRouter.php index 0b01fa77f..4fdaf22c1 100644 --- a/Router/SocketRouter.php +++ b/Router/SocketRouter.php @@ -27,7 +27,7 @@ final class SocketRouter implements RouterInterface /** * Routes. * - * @var array + * @var array * @since 1.0.0 */ private array $routes = []; diff --git a/Router/WebRouter.php b/Router/WebRouter.php index 98ce0453d..b747d5101 100644 --- a/Router/WebRouter.php +++ b/Router/WebRouter.php @@ -47,7 +47,7 @@ final class WebRouter implements RouterInterface /** * Routes. * - * @var array + * @var array * @since 1.0.0 */ private array $routes = []; diff --git a/Security/PhpCode.php b/Security/PhpCode.php index 52ded13c2..ea1d0a719 100644 --- a/Security/PhpCode.php +++ b/Security/PhpCode.php @@ -30,7 +30,7 @@ final class PhpCode /** * Disabled functions * - * @var array + * @var array * @since 1.0.0 */ public static array $disabledFunctions = [ @@ -45,7 +45,7 @@ final class PhpCode /** * Deprecated functions * - * @var array + * @var array * @since 1.0.0 */ public static array $deprecatedFunctions = [ diff --git a/Socket/Client/Client.php b/Socket/Client/Client.php index 0ead12282..a06561195 100644 --- a/Socket/Client/Client.php +++ b/Socket/Client/Client.php @@ -14,10 +14,10 @@ declare(strict_types=1); namespace phpOMS\Socket\Client; -use phpOMS\Socket\SocketAbstract; use phpOMS\ApplicationAbstract; -use phpOMS\Socket\Server\ClientManager; use phpOMS\Message\Socket\PacketManager; +use phpOMS\Socket\Server\ClientManager; +use phpOMS\Socket\SocketAbstract; /** * Client socket class. @@ -32,7 +32,7 @@ class Client extends SocketAbstract /** * Packet manager. * - * @var PacketManager + * @var PacketManager * @since 1.0.0 */ private $packetManager = null; @@ -40,7 +40,7 @@ class Client extends SocketAbstract /** * Socket application. * - * @var SocketApplication + * @var SocketApplication * @since 1.0.0 */ private $app = null; @@ -107,7 +107,7 @@ class Client extends SocketAbstract if (\count($read) > 0) { $data = \socket_read($this->sock, 1024); - var_dump($data); + \var_dump($data); /* Server no data */ if ($data === false) { diff --git a/Socket/Server/Server.php b/Socket/Server/Server.php index 923f05046..72a0b46e2 100644 --- a/Socket/Server/Server.php +++ b/Socket/Server/Server.php @@ -15,11 +15,10 @@ declare(strict_types=1); namespace phpOMS\Socket\Server; use phpOMS\Account\Account; +use phpOMS\ApplicationAbstract; +use phpOMS\Message\Socket\PacketManager; use phpOMS\Socket\Client\ClientConnection; use phpOMS\Socket\SocketAbstract; -use phpOMS\Message\Socket\PacketManager; -use Socket\SocketApplication; -use phpOMS\ApplicationAbstract; /** * Server class. @@ -34,7 +33,7 @@ class Server extends SocketAbstract /** * Socket connection limit. * - * @var int + * @var int * @since 1.0.0 */ private $limit = 10; @@ -42,7 +41,7 @@ class Server extends SocketAbstract /** * Client connections. * - * @var array + * @var array * @since 1.0.0 */ private $conn = []; @@ -50,7 +49,7 @@ class Server extends SocketAbstract /** * Packet manager. * - * @var PacketManager + * @var PacketManager * @since 1.0.0 */ private $packetManager = null; @@ -62,7 +61,7 @@ class Server extends SocketAbstract /** * Socket application. * - * @var ApplicationAbstract + * @var ApplicationAbstract * @since 1.0.0 */ private $app = null; diff --git a/Socket/SocketAbstract.php b/Socket/SocketAbstract.php index bb9604407..a0123b7c7 100644 --- a/Socket/SocketAbstract.php +++ b/Socket/SocketAbstract.php @@ -27,7 +27,7 @@ abstract class SocketAbstract implements SocketInterface /** * Socket ip. * - * @var string + * @var string * @since 1.0.0 */ protected $ip = null; @@ -35,7 +35,7 @@ abstract class SocketAbstract implements SocketInterface /** * Socket port. * - * @var int + * @var int * @since 1.0.0 */ protected $port = null; @@ -43,7 +43,7 @@ abstract class SocketAbstract implements SocketInterface /** * Socket running? * - * @var bool + * @var bool * @since 1.0.0 */ protected $run = true; @@ -51,7 +51,7 @@ abstract class SocketAbstract implements SocketInterface /** * Socket. * - * @var resource + * @var resource * @since 1.0.0 */ protected $sock = null; diff --git a/Stdlib/Base/Address.php b/Stdlib/Base/Address.php index 75e36a299..2875197f6 100644 --- a/Stdlib/Base/Address.php +++ b/Stdlib/Base/Address.php @@ -27,7 +27,7 @@ class Address implements \JsonSerializable /** * Name of the receiver. * - * @var string + * @var string * @since 1.0.0 */ private string $recipient = ''; @@ -35,7 +35,7 @@ class Address implements \JsonSerializable /** * Sub of the address. * - * @var string + * @var string * @since 1.0.0 */ private string $fao = ''; @@ -43,7 +43,7 @@ class Address implements \JsonSerializable /** * Location. * - * @var Location + * @var Location * @since 1.0.0 */ private Location $location; @@ -152,7 +152,7 @@ class Address implements \JsonSerializable return [ 'recipient' => $this->recipient, 'fao' => $this->fao, - 'location' => $this->location->toArray() + 'location' => $this->location->toArray(), ]; } } diff --git a/Stdlib/Base/EnumArray.php b/Stdlib/Base/EnumArray.php index 302661c97..854e69d0b 100644 --- a/Stdlib/Base/EnumArray.php +++ b/Stdlib/Base/EnumArray.php @@ -29,7 +29,7 @@ abstract class EnumArray /** * Constants. * - * @var array + * @var array * @since 1.0.0 */ protected static array $constants = []; diff --git a/Stdlib/Base/Heap.php b/Stdlib/Base/Heap.php index 9cc2522c3..88f814566 100644 --- a/Stdlib/Base/Heap.php +++ b/Stdlib/Base/Heap.php @@ -27,7 +27,7 @@ class Heap /** * Comparison function * - * @var \Closure + * @var \Closure * @since 1.0.0 */ private \Closure $compare; @@ -35,7 +35,7 @@ class Heap /** * Heap items * - * @var array + * @var array * @since 1.0.0 */ private array $nodes = []; diff --git a/Stdlib/Base/Iban.php b/Stdlib/Base/Iban.php index 19bec7377..46a9cc36b 100644 --- a/Stdlib/Base/Iban.php +++ b/Stdlib/Base/Iban.php @@ -29,7 +29,7 @@ class Iban implements \Serializable /** * Iban. * - * @var string + * @var string * @since 1.0.0 */ private string $iban = ''; diff --git a/Stdlib/Base/Location.php b/Stdlib/Base/Location.php index 5cc723397..a66a4ec24 100644 --- a/Stdlib/Base/Location.php +++ b/Stdlib/Base/Location.php @@ -27,7 +27,7 @@ class Location implements \JsonSerializable, \Serializable /** * Location id * - * @var int + * @var int * @since 1.0.0 */ protected int $id = 0; @@ -35,7 +35,7 @@ class Location implements \JsonSerializable, \Serializable /** * Zip or postal. * - * @var string + * @var string * @since 1.0.0 */ protected string $postal = ''; @@ -43,7 +43,7 @@ class Location implements \JsonSerializable, \Serializable /** * Name of city. * - * @var string + * @var string * @since 1.0.0 */ protected string $city = ''; @@ -51,7 +51,7 @@ class Location implements \JsonSerializable, \Serializable /** * Name of the country. * - * @var string + * @var string * @since 1.0.0 */ protected string $country = ''; @@ -59,7 +59,7 @@ class Location implements \JsonSerializable, \Serializable /** * Street & district. * - * @var string + * @var string * @since 1.0.0 */ protected string $address = ''; @@ -67,7 +67,7 @@ class Location implements \JsonSerializable, \Serializable /** * Address type * - * @var int + * @var int * @since 1.0.0 */ protected int $type = AddressType::HOME; @@ -75,7 +75,7 @@ class Location implements \JsonSerializable, \Serializable /** * State. * - * @var string + * @var string * @since 1.0.0 */ protected string $state = ''; @@ -83,7 +83,7 @@ class Location implements \JsonSerializable, \Serializable /** * Geo coordinates. * - * @var float[] + * @var float[] * @since 1.0.0 */ protected array $geo = ['lat' => 0, 'long' => 0]; diff --git a/Stdlib/Base/SmartDateTime.php b/Stdlib/Base/SmartDateTime.php index 5eb025e54..ccb30387f 100644 --- a/Stdlib/Base/SmartDateTime.php +++ b/Stdlib/Base/SmartDateTime.php @@ -31,7 +31,7 @@ class SmartDateTime extends \DateTime /** * Default format * - * @var string + * @var string * @since 1.0.0 */ public const FORMAT = 'Y-m-d hh:mm:ss'; @@ -39,7 +39,7 @@ class SmartDateTime extends \DateTime /** * Default timezone * - * @var string + * @var string * @since 1.0.0 */ public const TIMEZONE = 'UTC'; diff --git a/Stdlib/Graph/Edge.php b/Stdlib/Graph/Edge.php index 89f71fdad..be6b786e4 100644 --- a/Stdlib/Graph/Edge.php +++ b/Stdlib/Graph/Edge.php @@ -29,7 +29,7 @@ class Edge * * In case of directed edges this is the from node/starting node. * - * @var Node + * @var Node * @since 1.0.0 */ private $node1 = null; @@ -39,7 +39,7 @@ class Edge * * In case of directed edges this is the to node/end node. * - * @var Node + * @var Node * @since 1.0.0 */ private $node2 = null; @@ -47,7 +47,7 @@ class Edge /** * Is graph/edge directed * - * @var bool + * @var bool * @since 1.0.0 */ private $isDirected = false; @@ -55,7 +55,7 @@ class Edge /** * Edge weight * - * @var float + * @var float * @since 1.0.0 */ private $weight = 0.0; @@ -65,7 +65,7 @@ class Edge * * @param Node $node1 Graph node (start node in case of directed edge) * @param Node $node2 Graph node (end node in case of directed edge) - * @param float $weight Weight/cost of the edge. + * @param float $weight weight/cost of the edge * @param bool $isDirected Is directed edge * * @since 1.0.0 @@ -148,7 +148,7 @@ class Edge * * @since 1.0.0 */ - public static function compare(Edge $e1, Edge $e2) : int + public static function compare(self $e1, self $e2) : int { return $e1->getWeight() <=> $e2->getWeight(); } diff --git a/Stdlib/Graph/Graph.php b/Stdlib/Graph/Graph.php index ddb3078fb..604a81740 100644 --- a/Stdlib/Graph/Graph.php +++ b/Stdlib/Graph/Graph.php @@ -40,7 +40,7 @@ class Graph /** * Nodes. * - * @var Node[] + * @var Node[] * @since 1.0.0 */ protected $nodes = []; @@ -48,7 +48,7 @@ class Graph /** * Directed * - * @var bool + * @var bool * @since 1.0.0 */ protected $isDirected = false; diff --git a/Stdlib/Graph/Node.php b/Stdlib/Graph/Node.php index d4bd113a5..82ff423d9 100644 --- a/Stdlib/Graph/Node.php +++ b/Stdlib/Graph/Node.php @@ -27,7 +27,7 @@ class Node /** * Node id. * - * @var string + * @var string * @since 1.0.0 */ private string $id; @@ -35,7 +35,7 @@ class Node /** * Node data. * - * @var mixed + * @var mixed * @since 1.0.0 */ private $data = null; @@ -43,7 +43,7 @@ class Node /** * Edges. * - * @var Edge[] + * @var Edge[] * @since 1.0.0 */ protected array $edges = []; @@ -109,7 +109,7 @@ class Node * * @since 1.0.0 */ - public function isEqual(Node $node) : bool + public function isEqual(self $node) : bool { return $this->id === $node->getId() && $this->data === $node->getData(); } @@ -124,7 +124,7 @@ class Node * * @since 1.0.0 */ - public function setNodeRelative(Node $node, int $key = null) : Edge + public function setNodeRelative(self $node, int $key = null) : Edge { $edge = new Edge($this, $node); $this->setEdge($edge, $key); diff --git a/Stdlib/Map/MultiMap.php b/Stdlib/Map/MultiMap.php index a9265cda0..54a5946de 100644 --- a/Stdlib/Map/MultiMap.php +++ b/Stdlib/Map/MultiMap.php @@ -29,7 +29,7 @@ final class MultiMap implements \Countable /** * Stored values. * - * @var array + * @var array * @since 1.0.0 */ private array $values = []; @@ -37,7 +37,7 @@ final class MultiMap implements \Countable /** * Associated keys for values. * - * @var array + * @var array * @since 1.0.0 */ private array $keys = []; @@ -45,7 +45,7 @@ final class MultiMap implements \Countable /** * Key type. * - * @var int + * @var int * @since 1.0.0 */ private int $keyType = KeyType::SINGLE; @@ -53,7 +53,7 @@ final class MultiMap implements \Countable /** * Order type. * - * @var int + * @var int * @since 1.0.0 */ private int $orderType = OrderType::LOOSE; diff --git a/Stdlib/Queue/PriorityQueue.php b/Stdlib/Queue/PriorityQueue.php index ba68df285..d443f453f 100644 --- a/Stdlib/Queue/PriorityQueue.php +++ b/Stdlib/Queue/PriorityQueue.php @@ -29,7 +29,7 @@ class PriorityQueue implements \Countable, \Serializable /** * Queue type. * - * @var int + * @var int * @since 1.0.0 */ private int $type = PriorityMode::FIFO; @@ -37,7 +37,7 @@ class PriorityQueue implements \Countable, \Serializable /** * Queue. * - * @var array + * @var array * @since 1.0.0 */ private array $queue = []; diff --git a/System/File/Ftp/Directory.php b/System/File/Ftp/Directory.php index d8231ca52..e97606672 100644 --- a/System/File/Ftp/Directory.php +++ b/System/File/Ftp/Directory.php @@ -36,7 +36,7 @@ class Directory extends FileAbstract implements FtpContainerInterface, Directory /** * Directory nodes (files and directories). * - * @var FileAbstract[] + * @var FileAbstract[] * @since 1.0.0 */ private array $nodes = []; diff --git a/System/File/Ftp/File.php b/System/File/Ftp/File.php index 5ea9bd8aa..6d64e924a 100644 --- a/System/File/Ftp/File.php +++ b/System/File/Ftp/File.php @@ -39,7 +39,7 @@ class File extends FileAbstract implements FileInterface /** * Ftp connection * - * @var resource + * @var resource * @since 1.0.0 */ private $con; @@ -47,7 +47,7 @@ class File extends FileAbstract implements FileInterface /** * Ftp connection uri. * - * @var Http + * @var Http * @since 1.0.0 */ private Http $uri; diff --git a/System/File/Ftp/FileAbstract.php b/System/File/Ftp/FileAbstract.php index 37eb21543..2e639a86a 100644 --- a/System/File/Ftp/FileAbstract.php +++ b/System/File/Ftp/FileAbstract.php @@ -31,7 +31,7 @@ abstract class FileAbstract implements ContainerInterface /** * Path. * - * @var string + * @var string * @since 1.0.0 */ protected string $path = ''; @@ -39,7 +39,7 @@ abstract class FileAbstract implements ContainerInterface /** * Name. * - * @var string + * @var string * @since 1.0.0 */ protected string $name = 'new_directory'; @@ -47,7 +47,7 @@ abstract class FileAbstract implements ContainerInterface /** * Directory/File count. * - * @var int + * @var int * @since 1.0.0 */ protected int $count = 0; @@ -55,7 +55,7 @@ abstract class FileAbstract implements ContainerInterface /** * Directory/Filesize in bytes. * - * @var int + * @var int * @since 1.0.0 */ protected int $size = 0; @@ -63,7 +63,7 @@ abstract class FileAbstract implements ContainerInterface /** * Created at. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ protected ?\DateTime $createdAt = null; @@ -71,7 +71,7 @@ abstract class FileAbstract implements ContainerInterface /** * Last changed at. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ protected ?\DateTime $changedAt = null; @@ -79,7 +79,7 @@ abstract class FileAbstract implements ContainerInterface /** * Owner. * - * @var int + * @var int * @since 1.0.0 */ protected int $owner = 0; @@ -87,7 +87,7 @@ abstract class FileAbstract implements ContainerInterface /** * Permission. * - * @var int + * @var int * @since 1.0.0 */ protected int $permission = 0755; diff --git a/System/File/Local/Directory.php b/System/File/Local/Directory.php index c62e933ce..25ef262e7 100644 --- a/System/File/Local/Directory.php +++ b/System/File/Local/Directory.php @@ -34,7 +34,7 @@ final class Directory extends FileAbstract implements LocalContainerInterface, D /** * Directory list filter. * - * @var string + * @var string * @since 1.0.0 */ private string $filter = '*'; @@ -42,7 +42,7 @@ final class Directory extends FileAbstract implements LocalContainerInterface, D /** * Directory nodes (files and directories). * - * @var FileAbstract[] + * @var FileAbstract[] * @since 1.0.0 */ private array $nodes = []; diff --git a/System/File/Local/FileAbstract.php b/System/File/Local/FileAbstract.php index 01e0af2b6..5c7d02a6f 100644 --- a/System/File/Local/FileAbstract.php +++ b/System/File/Local/FileAbstract.php @@ -31,7 +31,7 @@ abstract class FileAbstract implements ContainerInterface /** * Path. * - * @var string + * @var string * @since 1.0.0 */ protected string $path = ''; @@ -39,7 +39,7 @@ abstract class FileAbstract implements ContainerInterface /** * Name. * - * @var string + * @var string * @since 1.0.0 */ protected string $name = 'new_directory'; @@ -47,7 +47,7 @@ abstract class FileAbstract implements ContainerInterface /** * Directory/File count. * - * @var int + * @var int * @since 1.0.0 */ protected int $count = 0; @@ -55,7 +55,7 @@ abstract class FileAbstract implements ContainerInterface /** * Directory/Filesize in bytes. * - * @var int + * @var int * @since 1.0.0 */ protected int $size = 0; @@ -63,7 +63,7 @@ abstract class FileAbstract implements ContainerInterface /** * Created at. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ protected ?\DateTime $createdAt = null; @@ -71,7 +71,7 @@ abstract class FileAbstract implements ContainerInterface /** * Last changed at. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ protected ?\DateTime $changedAt = null; @@ -79,7 +79,7 @@ abstract class FileAbstract implements ContainerInterface /** * Owner. * - * @var int + * @var int * @since 1.0.0 */ protected int $owner = 0; @@ -87,7 +87,7 @@ abstract class FileAbstract implements ContainerInterface /** * Permission. * - * @var int + * @var int * @since 1.0.0 */ protected int $permission = 0755; diff --git a/System/File/Storage.php b/System/File/Storage.php index bac130a2b..9648a044d 100644 --- a/System/File/Storage.php +++ b/System/File/Storage.php @@ -29,7 +29,7 @@ final class Storage /** * Registered storage. * - * @var array + * @var array * @since 1.0.0 */ private static array $registered = []; @@ -59,7 +59,7 @@ final class Storage { if (isset(self::$registered[$env])) { if (\is_string(self::$registered[$env])) { - $instance = new self::$registered[$env]; + $instance = new self::$registered[$env](); self::$registered[$env] = $instance; } elseif (self::$registered[$env] instanceof StorageAbstract || self::$registered[$env] instanceof ContainerInterface) { $instance = self::$registered[$env]; diff --git a/Uri/Argument.php b/Uri/Argument.php index b7c32122e..e567640fe 100644 --- a/Uri/Argument.php +++ b/Uri/Argument.php @@ -33,7 +33,7 @@ final class Argument implements UriInterface /** * Root path. * - * @var string + * @var string * @since 1.0.0 */ private string $rootPath = '/'; @@ -41,7 +41,7 @@ final class Argument implements UriInterface /** * Path offset. * - * @var int + * @var int * @since 1.0.0 */ private int $pathOffset = 0; @@ -49,7 +49,7 @@ final class Argument implements UriInterface /** * Path elements. * - * @var array + * @var array * @since 1.0.0 */ private array $pathElements = []; @@ -57,7 +57,7 @@ final class Argument implements UriInterface /** * Uri. * - * @var string + * @var string * @since 1.0.0 */ private string $uri = ''; @@ -65,7 +65,7 @@ final class Argument implements UriInterface /** * Uri scheme. * - * @var string + * @var string * @since 1.0.0 */ private string $scheme = ''; @@ -73,7 +73,7 @@ final class Argument implements UriInterface /** * Uri host. * - * @var string + * @var string * @since 1.0.0 */ private string $host = ''; @@ -81,7 +81,7 @@ final class Argument implements UriInterface /** * Uri port. * - * @var int + * @var int * @since 1.0.0 */ private int $port = 0; @@ -89,7 +89,7 @@ final class Argument implements UriInterface /** * Uri user. * - * @var string + * @var string * @since 1.0.0 */ private string $user = ''; @@ -97,7 +97,7 @@ final class Argument implements UriInterface /** * Uri password. * - * @var string + * @var string * @since 1.0.0 */ private string $pass = ''; @@ -105,7 +105,7 @@ final class Argument implements UriInterface /** * Uri path. * - * @var string + * @var string * @since 1.0.0 */ private string $path = ''; @@ -113,7 +113,7 @@ final class Argument implements UriInterface /** * Uri query. * - * @var array + * @var array * @since 1.0.0 */ private array $query = []; @@ -121,7 +121,7 @@ final class Argument implements UriInterface /** * Uri query. * - * @var string + * @var string * @since 1.0.0 */ private string $queryString = ''; @@ -129,7 +129,7 @@ final class Argument implements UriInterface /** * Uri fragment. * - * @var string + * @var string * @since 1.0.0 */ private string $fragment = ''; @@ -137,7 +137,7 @@ final class Argument implements UriInterface /** * Uri base. * - * @var string + * @var string * @since 1.0.0 */ private string $base = ''; diff --git a/Uri/Http.php b/Uri/Http.php index 40e97d0e4..5d4e955bd 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -33,7 +33,7 @@ final class Http implements UriInterface /** * Root path. * - * @var string + * @var string * @since 1.0.0 */ private string $rootPath = ''; @@ -41,7 +41,7 @@ final class Http implements UriInterface /** * Path offset. * - * @var int + * @var int * @since 1.0.0 */ private int $pathOffset = 0; @@ -49,7 +49,7 @@ final class Http implements UriInterface /** * Path elements. * - * @var string[] + * @var string[] * @since 1.0.0 */ private array $pathElements; @@ -57,7 +57,7 @@ final class Http implements UriInterface /** * Uri. * - * @var string + * @var string * @since 1.0.0 */ private string $uri; @@ -65,7 +65,7 @@ final class Http implements UriInterface /** * Uri scheme. * - * @var string + * @var string * @since 1.0.0 */ private string $scheme; @@ -73,7 +73,7 @@ final class Http implements UriInterface /** * Uri host. * - * @var string + * @var string * @since 1.0.0 */ private string $host; @@ -81,7 +81,7 @@ final class Http implements UriInterface /** * Uri port. * - * @var int + * @var int * @since 1.0.0 */ private int $port; @@ -89,7 +89,7 @@ final class Http implements UriInterface /** * Uri user. * - * @var string + * @var string * @since 1.0.0 */ private string $user; @@ -97,7 +97,7 @@ final class Http implements UriInterface /** * Uri password. * - * @var string + * @var string * @since 1.0.0 */ private string $pass; @@ -105,7 +105,7 @@ final class Http implements UriInterface /** * Uri path. * - * @var string + * @var string * @since 1.0.0 */ private string $path; @@ -113,7 +113,7 @@ final class Http implements UriInterface /** * Uri query. * - * @var array + * @var array * @since 1.0.0 */ private array $query = []; @@ -121,7 +121,7 @@ final class Http implements UriInterface /** * Uri query. * - * @var string + * @var string * @since 1.0.0 */ private string $queryString; @@ -129,7 +129,7 @@ final class Http implements UriInterface /** * Uri fragment. * - * @var string + * @var string * @since 1.0.0 */ private string $fragment; @@ -137,7 +137,7 @@ final class Http implements UriInterface /** * Uri base. * - * @var string + * @var string * @since 1.0.0 */ private string $base; diff --git a/Uri/UriFactory.php b/Uri/UriFactory.php index ae81a5ed3..f21bd4627 100644 --- a/Uri/UriFactory.php +++ b/Uri/UriFactory.php @@ -29,7 +29,7 @@ final class UriFactory /** * Dynamic query elements. * - * @var string[] + * @var string[] * @since 1.0.0 */ private static array $uri = []; diff --git a/Utils/Barcode/C128Abstract.php b/Utils/Barcode/C128Abstract.php index 68c61488f..4ae70e499 100644 --- a/Utils/Barcode/C128Abstract.php +++ b/Utils/Barcode/C128Abstract.php @@ -32,7 +32,7 @@ abstract class C128Abstract /** * Checksum. * - * @var int + * @var int * @since 1.0.0 */ protected static int $CHECKSUM = 0; @@ -40,7 +40,7 @@ abstract class C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = []; @@ -48,7 +48,7 @@ abstract class C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = ''; @@ -56,7 +56,7 @@ abstract class C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = ''; @@ -64,7 +64,7 @@ abstract class C128Abstract /** * Orientation. * - * @var int + * @var int * @since 1.0.0 */ protected int $orientation = 0; @@ -72,7 +72,7 @@ abstract class C128Abstract /** * Barcode dimension. * - * @var int[] + * @var int[] * @since 1.0.0 */ protected array $dimension = ['width' => 0, 'height' => 0]; @@ -80,7 +80,7 @@ abstract class C128Abstract /** * Barcode dimension. * - * @var int + * @var int * @since 1.0.0 */ protected int $margin = 10; @@ -88,7 +88,7 @@ abstract class C128Abstract /** * Content to encrypt. * - * @var string + * @var string * @since 1.0.0 */ protected string $content = ''; @@ -96,7 +96,7 @@ abstract class C128Abstract /** * Show text below barcode. * - * @var bool + * @var bool * @since 1.0.0 */ protected bool $showText = true; @@ -104,7 +104,7 @@ abstract class C128Abstract /** * Background color. * - * @var int[] + * @var int[] * @since 1.0.0 */ protected array $background = ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]; @@ -112,7 +112,7 @@ abstract class C128Abstract /** * Front color. * - * @var int[] + * @var int[] * @since 1.0.0 */ protected array $front = ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]; diff --git a/Utils/Barcode/C128a.php b/Utils/Barcode/C128a.php index f3ad09eac..67563fa6d 100644 --- a/Utils/Barcode/C128a.php +++ b/Utils/Barcode/C128a.php @@ -30,7 +30,7 @@ class C128a extends C128Abstract /** * Checksum. * - * @var int + * @var int * @since 1.0.0 */ protected static int $CHECKSUM = 103; @@ -38,7 +38,7 @@ class C128a extends C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = [ @@ -67,7 +67,7 @@ class C128a extends C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = '211412'; @@ -75,7 +75,7 @@ class C128a extends C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = '2331112'; diff --git a/Utils/Barcode/C128b.php b/Utils/Barcode/C128b.php index 88b1ff88d..ef2e7e8b8 100644 --- a/Utils/Barcode/C128b.php +++ b/Utils/Barcode/C128b.php @@ -30,7 +30,7 @@ class C128b extends C128Abstract /** * Checksum. * - * @var int + * @var int * @since 1.0.0 */ protected static int $CHECKSUM = 104; @@ -38,7 +38,7 @@ class C128b extends C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = [ @@ -66,7 +66,7 @@ class C128b extends C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = '211214'; @@ -74,7 +74,7 @@ class C128b extends C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = '2331112'; diff --git a/Utils/Barcode/C128c.php b/Utils/Barcode/C128c.php index 266152f5e..9edd41467 100644 --- a/Utils/Barcode/C128c.php +++ b/Utils/Barcode/C128c.php @@ -30,7 +30,7 @@ class C128c extends C128Abstract /** * Checksum. * - * @var int + * @var int * @since 1.0.0 */ protected static int $CHECKSUM = 105; @@ -38,7 +38,7 @@ class C128c extends C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = [ @@ -66,7 +66,7 @@ class C128c extends C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = '211232'; @@ -74,7 +74,7 @@ class C128c extends C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = '2331112'; diff --git a/Utils/Barcode/C25.php b/Utils/Barcode/C25.php index 5d427f5f6..1738e4c25 100644 --- a/Utils/Barcode/C25.php +++ b/Utils/Barcode/C25.php @@ -30,7 +30,7 @@ class C25 extends C128Abstract /** * Char array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']; @@ -38,7 +38,7 @@ class C25 extends C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY2 = [ @@ -49,7 +49,7 @@ class C25 extends C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = '1111'; @@ -57,7 +57,7 @@ class C25 extends C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = '311'; diff --git a/Utils/Barcode/C39.php b/Utils/Barcode/C39.php index 4d7c12aea..5922bdd7f 100644 --- a/Utils/Barcode/C39.php +++ b/Utils/Barcode/C39.php @@ -30,7 +30,7 @@ class C39 extends C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = [ @@ -48,7 +48,7 @@ class C39 extends C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = '1211212111'; @@ -56,7 +56,7 @@ class C39 extends C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = '121121211'; diff --git a/Utils/Barcode/Codebar.php b/Utils/Barcode/Codebar.php index 221b97d28..96db968f2 100644 --- a/Utils/Barcode/Codebar.php +++ b/Utils/Barcode/Codebar.php @@ -30,7 +30,7 @@ class Codebar extends C128Abstract /** * Char array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D']; @@ -38,7 +38,7 @@ class Codebar extends C128Abstract /** * Char weighted array. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $CODEARRAY2 = [ @@ -49,7 +49,7 @@ class Codebar extends C128Abstract /** * Code start. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_START = '11221211'; @@ -57,7 +57,7 @@ class Codebar extends C128Abstract /** * Code end. * - * @var string + * @var string * @since 1.0.0 */ protected static string $CODE_END = '1122121'; diff --git a/Utils/Barcode/HIBCC.php b/Utils/Barcode/HIBCC.php index f5cb7d000..78698d5a5 100644 --- a/Utils/Barcode/HIBCC.php +++ b/Utils/Barcode/HIBCC.php @@ -27,7 +27,7 @@ class HIBCC /** * Identifier code (3-characters) * - * @var string + * @var string * @since 1.0.0 */ private string $identifier = ''; @@ -35,7 +35,7 @@ class HIBCC /** * Product id. * - * @var string + * @var string * @since 1.0.0 */ private string $productId = ''; @@ -43,7 +43,7 @@ class HIBCC /** * Meassure of unit (0-9). * - * @var int + * @var int * @since 1.0.0 */ private int $measureOfUnit = 0; @@ -51,7 +51,7 @@ class HIBCC /** * Date format for the shelf life. * - * @var string + * @var string * @since 1.0.0 */ private string $dateFormat = 'Y-m-d'; @@ -59,7 +59,7 @@ class HIBCC /** * Date of the expiration. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ private ?\DateTime $expirationDate = null; @@ -67,7 +67,7 @@ class HIBCC /** * Date of the production. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ private ?\DateTime $productionDate = null; @@ -75,7 +75,7 @@ class HIBCC /** * Lot number. * - * @var string + * @var string * @since 1.0.0 */ private string $lot = ''; @@ -83,7 +83,7 @@ class HIBCC /** * Check value. * - * @var int + * @var int * @since 1.0.0 */ private int $checkValue = 0; diff --git a/Utils/Converter/Currency.php b/Utils/Converter/Currency.php index c4bcd274d..53183bc13 100644 --- a/Utils/Converter/Currency.php +++ b/Utils/Converter/Currency.php @@ -33,7 +33,7 @@ final class Currency /** * ECB currency rates. * - * @var array + * @var array * @since 1.0.0 */ private static array $ecbCurrencies = []; diff --git a/Utils/Converter/Numeric.php b/Utils/Converter/Numeric.php index 64b881cf9..edaf77b65 100644 --- a/Utils/Converter/Numeric.php +++ b/Utils/Converter/Numeric.php @@ -27,7 +27,7 @@ final class Numeric /** * Romans association. * - * @var array + * @var array * @since 1.0.0 */ public const ROMANS = [ diff --git a/Utils/Encoding/Caesar.php b/Utils/Encoding/Caesar.php index 9851d4d5b..ad71c6999 100644 --- a/Utils/Encoding/Caesar.php +++ b/Utils/Encoding/Caesar.php @@ -27,7 +27,7 @@ class Caesar /** * ASCII lower char limit. * - * @var int + * @var int * @since 1.0.0 */ public const LIMIT_LOWER = 0; @@ -35,7 +35,7 @@ class Caesar /** * ASCII upper char limit. * - * @var int + * @var int * @since 1.0.0 */ public const LIMIT_UPPER = 127; diff --git a/Utils/Encoding/Huffman/Dictionary.php b/Utils/Encoding/Huffman/Dictionary.php index 278117b0d..efc5a8855 100644 --- a/Utils/Encoding/Huffman/Dictionary.php +++ b/Utils/Encoding/Huffman/Dictionary.php @@ -27,7 +27,7 @@ final class Dictionary /** * Huffman dictionary. * - * @var array + * @var array * @since 1.0.0 */ private array $dictionary = []; @@ -35,7 +35,7 @@ final class Dictionary /** * Minimum length. * - * @var int + * @var int * @since 1.0.0 */ private int $min = -1; @@ -43,7 +43,7 @@ final class Dictionary /** * Maximum length. * - * @var int + * @var int * @since 1.0.0 */ private int $max = -1; diff --git a/Utils/Encoding/Huffman/Huffman.php b/Utils/Encoding/Huffman/Huffman.php index 17e3e4168..22a996b6d 100644 --- a/Utils/Encoding/Huffman/Huffman.php +++ b/Utils/Encoding/Huffman/Huffman.php @@ -27,7 +27,7 @@ final class Huffman /** * Huffman dictionary. * - * @var null|Dictionary + * @var null|Dictionary * @since 1.0.0 */ private ?Dictionary $dictionary = null; diff --git a/Utils/Git/Author.php b/Utils/Git/Author.php index bea20ae88..2ceefabd6 100644 --- a/Utils/Git/Author.php +++ b/Utils/Git/Author.php @@ -27,7 +27,7 @@ class Author /** * Name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; @@ -35,7 +35,7 @@ class Author /** * Email. * - * @var string + * @var string * @since 1.0.0 */ private string $email = ''; @@ -43,7 +43,7 @@ class Author /** * Commit count. * - * @var int + * @var int * @since 1.0.0 */ private int $commitCount = 0; @@ -51,7 +51,7 @@ class Author /** * Additions count. * - * @var int + * @var int * @since 1.0.0 */ private int $additionsCount = 0; @@ -59,7 +59,7 @@ class Author /** * Removals count. * - * @var int + * @var int * @since 1.0.0 */ private int $removalsCount = 0; diff --git a/Utils/Git/Branch.php b/Utils/Git/Branch.php index 5e2bee35b..1c2ce0959 100644 --- a/Utils/Git/Branch.php +++ b/Utils/Git/Branch.php @@ -27,7 +27,7 @@ class Branch /** * Name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; diff --git a/Utils/Git/Commit.php b/Utils/Git/Commit.php index 6178542cd..ea2ee8959 100644 --- a/Utils/Git/Commit.php +++ b/Utils/Git/Commit.php @@ -27,7 +27,7 @@ class Commit /** * Hash. * - * @var string + * @var string * @since 1.0.0 */ private string $id = ''; @@ -35,7 +35,7 @@ class Commit /** * Author. * - * @var Author + * @var Author * @since 1.0.0 */ private Author $author; @@ -43,7 +43,7 @@ class Commit /** * Branch. * - * @var Branch + * @var Branch * @since 1.0.0 */ private Branch $branch; @@ -51,7 +51,7 @@ class Commit /** * Tag. * - * @var Tag + * @var Tag * @since 1.0.0 */ private Tag $tag; @@ -59,7 +59,7 @@ class Commit /** * Commit date. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ private ?\DateTime $date = null; @@ -67,7 +67,7 @@ class Commit /** * Repository. * - * @var Repository + * @var Repository * @since 1.0.0 */ private Repository $repository; @@ -75,7 +75,7 @@ class Commit /** * Commit message. * - * @var string + * @var string * @since 1.0.0 */ private string $message = ''; @@ -83,7 +83,7 @@ class Commit /** * Files. * - * @var array + * @var array * @since 1.0.0 */ private array $files = []; diff --git a/Utils/Git/Git.php b/Utils/Git/Git.php index e8589c978..5eb6c39da 100644 --- a/Utils/Git/Git.php +++ b/Utils/Git/Git.php @@ -30,7 +30,7 @@ class Git /** * Git path. * - * @var string + * @var string * @since 1.0.0 */ protected static string $bin = '/usr/bin/git'; diff --git a/Utils/Git/Repository.php b/Utils/Git/Repository.php index 620362aa8..95bd275c5 100644 --- a/Utils/Git/Repository.php +++ b/Utils/Git/Repository.php @@ -31,7 +31,7 @@ class Repository /** * Repository path. * - * @var string + * @var string * @since 1.0.0 */ private string $path = ''; @@ -39,7 +39,7 @@ class Repository /** * Repository name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; @@ -47,7 +47,7 @@ class Repository /** * Bare repository. * - * @var bool + * @var bool * @since 1.0.0 */ private bool $bare = false; @@ -55,7 +55,7 @@ class Repository /** * Current branch. * - * @var Branch + * @var Branch * @since 1.0.0 */ private Branch $branch; diff --git a/Utils/Git/Tag.php b/Utils/Git/Tag.php index a3f50d713..911e55696 100644 --- a/Utils/Git/Tag.php +++ b/Utils/Git/Tag.php @@ -27,7 +27,7 @@ class Tag /** * Name. * - * @var string + * @var string * @since 1.0.0 */ private string $name = ''; @@ -35,7 +35,7 @@ class Tag /** * Message. * - * @var string + * @var string * @since 1.0.0 */ private string $message = ''; diff --git a/Utils/IO/ExchangeInterface.php b/Utils/IO/ExchangeInterface.php index d9468d3d7..f3f06bf8f 100644 --- a/Utils/IO/ExchangeInterface.php +++ b/Utils/IO/ExchangeInterface.php @@ -15,9 +15,9 @@ declare(strict_types=1); namespace phpOMS\Utils\IO; use phpOMS\Utils\IO\Csv\CsvInterface; -use phpOMS\Utils\IO\Spreadsheet\SpreadsheetInterface; use phpOMS\Utils\IO\Json\JsonInterface; use phpOMS\Utils\IO\Pdf\PdfInterface; +use phpOMS\Utils\IO\Spreadsheet\SpreadsheetInterface; /** * Exchange interface. diff --git a/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php b/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php index 40c474b63..fff80e2e5 100644 --- a/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php +++ b/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php @@ -32,7 +32,7 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper /** * Database connection * - * @var ConnectionAbstract + * @var ConnectionAbstract * @since 1.0.0 */ private ConnectionAbstract $con; @@ -40,7 +40,7 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper /** * Path to source or destination * - * @var string + * @var string * @since 1.0.0 */ private string $path = ''; diff --git a/Utils/Parser/Markdown/Markdown.php b/Utils/Parser/Markdown/Markdown.php index 44bdeef39..4ea82882f 100644 --- a/Utils/Parser/Markdown/Markdown.php +++ b/Utils/Parser/Markdown/Markdown.php @@ -31,7 +31,7 @@ class Markdown /** * Blocktypes. * - * @var string[][] + * @var string[][] * @since 1.0.0 */ protected static $blockTypes = [ @@ -62,7 +62,7 @@ class Markdown /** * Blocktypes. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $unmarkedBlockTypes = [ @@ -72,7 +72,7 @@ class Markdown /** * Special reserved characters. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $specialCharacters = [ @@ -82,7 +82,7 @@ class Markdown /** * Regex for strong. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $strongRegex = [ @@ -92,7 +92,7 @@ class Markdown /** * Regex for underline. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $underlineRegex = [ @@ -102,7 +102,7 @@ class Markdown /** * Regex for em. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $emRegex = [ @@ -113,7 +113,7 @@ class Markdown /** * Regex for identifying html attributes. * - * @var string + * @var string * @since 1.0.0 */ protected static $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?'; @@ -121,7 +121,7 @@ class Markdown /** * Void elements. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $voidElements = [ @@ -131,7 +131,7 @@ class Markdown /** * Text elements. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $textLevelElements = [ @@ -149,7 +149,7 @@ class Markdown /** * Inline identifiers. * - * @var string[][] + * @var string[][] * @since 1.0.0 */ protected static $inlineTypes = [ @@ -170,7 +170,7 @@ class Markdown /** * List of inline start markers. * - * @var string + * @var string * @since 1.0.0 */ protected static $inlineMarkerList = '!"*_&[:<>`~\\'; @@ -178,7 +178,7 @@ class Markdown /** * Continuable elements. * - * @var string[] + * @var string[] * @since 1.0.0 */ private static $continuable = [ @@ -188,7 +188,7 @@ class Markdown /** * Completable elments. * - * @var string[] + * @var string[] * @since 1.0.0 */ private static $completable = [ @@ -198,7 +198,7 @@ class Markdown /** * Safe link types whitelist. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static $safeLinksWhitelist = [ @@ -210,7 +210,7 @@ class Markdown /** * Some definition data for elements * - * @var string[] + * @var string[] * @since 1.0.0 */ private static $definitionData = []; diff --git a/Utils/RnG/File.php b/Utils/RnG/File.php index 2ca7955ed..9a7677dfa 100644 --- a/Utils/RnG/File.php +++ b/Utils/RnG/File.php @@ -27,7 +27,7 @@ class File /** * Extensions. * - * @var array[] + * @var array[] * @since 1.0.0 */ private static $extensions = [ diff --git a/Utils/RnG/LinearCongruentialGenerator.php b/Utils/RnG/LinearCongruentialGenerator.php index 6a931c5fc..32ac70b4b 100644 --- a/Utils/RnG/LinearCongruentialGenerator.php +++ b/Utils/RnG/LinearCongruentialGenerator.php @@ -27,7 +27,7 @@ class LinearCongruentialGenerator /** * BSD seed value. * - * @var int + * @var int * @since 1.0.0 */ private static $bsdSeed = 0; @@ -35,7 +35,7 @@ class LinearCongruentialGenerator /** * MSVCRT seed value. * - * @var int + * @var int * @since 1.0.0 */ private static $msvcrtSeed = 0; diff --git a/Utils/RnG/Text.php b/Utils/RnG/Text.php index c55581881..0b6ecf8ef 100644 --- a/Utils/RnG/Text.php +++ b/Utils/RnG/Text.php @@ -27,7 +27,7 @@ class Text /** * Vocabulary. * - * @var string[] + * @var string[] * @since 1.0.0 */ private static $wordsWest = [ @@ -52,7 +52,7 @@ class Text /** * Text has random formatting. * - * @var bool + * @var bool * @since 1.0.0 */ private $hasFormatting = false; @@ -60,7 +60,7 @@ class Text /** * Text has paragraphs. * - * @var bool + * @var bool * @since 1.0.0 */ private $hasParagraphs = false; @@ -68,7 +68,7 @@ class Text /** * Amount of sentences of the last generated text. * - * @var int + * @var int * @since 1.0.0 */ private $sentences = 0; diff --git a/Utils/StringCompare.php b/Utils/StringCompare.php index cfa7ab85c..8053eca92 100644 --- a/Utils/StringCompare.php +++ b/Utils/StringCompare.php @@ -29,7 +29,7 @@ final class StringCompare /** * Dictionary. * - * @var array + * @var array * @since 1.0.0 */ private array $dictionary = []; diff --git a/Utils/TaskSchedule/Interval.php b/Utils/TaskSchedule/Interval.php index a6c5dcad8..a7c6c729a 100644 --- a/Utils/TaskSchedule/Interval.php +++ b/Utils/TaskSchedule/Interval.php @@ -27,7 +27,7 @@ class Interval implements \Serializable /** * Start of the task. * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ private \DateTime $start; @@ -35,7 +35,7 @@ class Interval implements \Serializable /** * End of the task. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ private ?\DateTime $end = null; @@ -47,7 +47,7 @@ class Interval implements \Serializable * * 0 = infinite * - * @var int + * @var int * @since 1.0.0 */ private int $maxDuration = 0; @@ -55,7 +55,7 @@ class Interval implements \Serializable /** * Minute. * - * @var array + * @var array * @since 1.0.0 */ private $minute = []; @@ -63,7 +63,7 @@ class Interval implements \Serializable /** * Hour. * - * @var array + * @var array * @since 1.0.0 */ private $hour = []; @@ -71,7 +71,7 @@ class Interval implements \Serializable /** * Day of month. * - * @var array + * @var array * @since 1.0.0 */ private $dayOfMonth = []; @@ -79,7 +79,7 @@ class Interval implements \Serializable /** * Month. * - * @var array + * @var array * @since 1.0.0 */ private $month = []; @@ -87,7 +87,7 @@ class Interval implements \Serializable /** * Day of week. * - * @var array + * @var array * @since 1.0.0 */ private $dayOfWeek = []; @@ -95,7 +95,7 @@ class Interval implements \Serializable /** * Year. * - * @var array + * @var array * @since 1.0.0 */ private $year = []; @@ -534,7 +534,7 @@ class Interval implements \Serializable 'hour' => $this->hour, 'dayOfMonth' => $this->dayOfMonth, 'dayOfWeek' => $this->dayOfWeek, - 'year' => $this->year + 'year' => $this->year, ]); } @@ -547,7 +547,7 @@ class Interval implements \Serializable * * @since 1.0.0 */ - public function unserialize($serialized) + public function unserialize($serialized): void { $data = \json_decode($serialized, true); diff --git a/Utils/TaskSchedule/SchedulerAbstract.php b/Utils/TaskSchedule/SchedulerAbstract.php index 4bb8230c1..120ac419a 100644 --- a/Utils/TaskSchedule/SchedulerAbstract.php +++ b/Utils/TaskSchedule/SchedulerAbstract.php @@ -30,7 +30,7 @@ abstract class SchedulerAbstract /** * Bin path. * - * @var string + * @var string * @since 1.0.0 */ private static string $bin = ''; diff --git a/Utils/TaskSchedule/TaskAbstract.php b/Utils/TaskSchedule/TaskAbstract.php index 0877e28ce..b6d3e355f 100644 --- a/Utils/TaskSchedule/TaskAbstract.php +++ b/Utils/TaskSchedule/TaskAbstract.php @@ -27,7 +27,7 @@ abstract class TaskAbstract /** * Id. * - * @var string + * @var string * @since 1.0.0 */ protected string $id = ''; @@ -35,7 +35,7 @@ abstract class TaskAbstract /** * Command used for creating the task * - * @var string + * @var string * @since 1.0.0 */ protected string $command = ''; @@ -43,7 +43,7 @@ abstract class TaskAbstract /** * Run interval * - * @var string + * @var string * @since 1.0.0 */ protected string $interval = ''; @@ -51,7 +51,7 @@ abstract class TaskAbstract /** * Status of the task * - * @var string + * @var string * @since 1.0.0 */ protected string $status = ''; @@ -59,7 +59,7 @@ abstract class TaskAbstract /** * Next runtime * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ protected \DateTime $nextRunTime; @@ -67,7 +67,7 @@ abstract class TaskAbstract /** * Last runtime * - * @var \DateTime + * @var \DateTime * @since 1.0.0 */ protected \DateTime $lastRunTime; @@ -75,7 +75,7 @@ abstract class TaskAbstract /** * Comment * - * @var string + * @var string * @since 1.0.0 */ protected string $comment = ''; diff --git a/Validation/ValidatorAbstract.php b/Validation/ValidatorAbstract.php index 0379e086e..953682c2d 100644 --- a/Validation/ValidatorAbstract.php +++ b/Validation/ValidatorAbstract.php @@ -27,7 +27,7 @@ abstract class ValidatorAbstract implements ValidatorInterface /** * Error code. * - * @var int + * @var int * @since 1.0.0 */ protected static int $error = 0; @@ -35,7 +35,7 @@ abstract class ValidatorAbstract implements ValidatorInterface /** * Message string. * - * @var string + * @var string * @since 1.0.0 */ protected static string $msg = ''; diff --git a/Views/PaginationView.php b/Views/PaginationView.php index 4ceb5dc24..d896c45de 100644 --- a/Views/PaginationView.php +++ b/Views/PaginationView.php @@ -27,7 +27,7 @@ class PaginationView extends View /** * Maximum amount of pages. * - * @var int + * @var int * @since 1.0.0 */ protected int $maxPages = 7; @@ -35,7 +35,7 @@ class PaginationView extends View /** * Current page id. * - * @var int + * @var int * @since 1.0.0 */ protected int $page = 1; @@ -43,7 +43,7 @@ class PaginationView extends View /** * How many pages exist? * - * @var int + * @var int * @since 1.0.0 */ protected int $pages = 1; @@ -51,7 +51,7 @@ class PaginationView extends View /** * How many results exist? * - * @var int + * @var int * @since 1.0.0 */ protected int $results = 0; diff --git a/Views/View.php b/Views/View.php index 3dcf2aa35..e504d195a 100644 --- a/Views/View.php +++ b/Views/View.php @@ -34,7 +34,7 @@ class View extends ViewAbstract /** * View data. * - * @var array + * @var array * @since 1.0.0 */ protected array $data = []; @@ -42,7 +42,7 @@ class View extends ViewAbstract /** * View Localization. * - * @var Localization + * @var Localization * @since 1.0.0 */ protected Localization $l11n; @@ -50,7 +50,7 @@ class View extends ViewAbstract /** * Application. * - * @var null|ApplicationAbstract + * @var null|ApplicationAbstract * @since 1.0.0 */ protected ?ApplicationAbstract $app; @@ -58,7 +58,7 @@ class View extends ViewAbstract /** * Request. * - * @var null|RequestAbstract + * @var null|RequestAbstract * @since 1.0.0 */ protected ?RequestAbstract $request; @@ -66,7 +66,7 @@ class View extends ViewAbstract /** * Request. * - * @var null|ResponseAbstract + * @var null|ResponseAbstract * @since 1.0.0 */ protected ?ResponseAbstract $response; @@ -74,7 +74,7 @@ class View extends ViewAbstract /** * Theme name. * - * @var null|string + * @var null|string * @since 1.0.0 */ protected ?string $theme = null; @@ -82,7 +82,7 @@ class View extends ViewAbstract /** * Module name. * - * @var null|string + * @var null|string * @since 1.0.0 */ protected ?string $module = null; diff --git a/Views/ViewAbstract.php b/Views/ViewAbstract.php index 6861367f2..fe166825e 100644 --- a/Views/ViewAbstract.php +++ b/Views/ViewAbstract.php @@ -30,7 +30,7 @@ abstract class ViewAbstract implements RenderableInterface /** * Template. * - * @var string + * @var string * @since 1.0.0 */ protected string $template = ''; @@ -38,7 +38,7 @@ abstract class ViewAbstract implements RenderableInterface /** * Views. * - * @var \phpOMS\Views\View[] + * @var \phpOMS\Views\View[] * @since 1.0.0 */ protected array $views = []; diff --git a/tests/Algorithm/JobScheduling/JobTest.php b/tests/Algorithm/JobScheduling/JobTest.php index 7ac95a781..834437cd1 100644 --- a/tests/Algorithm/JobScheduling/JobTest.php +++ b/tests/Algorithm/JobScheduling/JobTest.php @@ -34,7 +34,7 @@ class JobTest extends \PHPUnit\Framework\TestCase self::assertEquals(3.0, $item->getValue()); self::assertEquals((new \DateTime('now'))->format('Y-m-d'), $item->getStart()->format('Y-m-d')); - self::assertEquals(null, $item->getEnd()); + self::assertNull($item->getEnd()); self::assertEquals('abc', $item->getName()); } } diff --git a/tests/Algorithm/JobScheduling/WeightedTest.php b/tests/Algorithm/JobScheduling/WeightedTest.php index b65b4ce15..bd2707d45 100644 --- a/tests/Algorithm/JobScheduling/WeightedTest.php +++ b/tests/Algorithm/JobScheduling/WeightedTest.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\JobScheduling; -use phpOMS\Algorithm\JobScheduling\Weighted; use phpOMS\Algorithm\JobScheduling\Job; +use phpOMS\Algorithm\JobScheduling\Weighted; /** * @testdox phpOMS\tests\Algorithm\JobScheduling\WeightedTest: Job scheduling based on values/profit @@ -64,7 +64,7 @@ class WeightedTest extends \PHPUnit\Framework\TestCase public function testSmallList() : void { $jobs = [ - new Job(20, new \DateTime('2003-01-01'), new \DateTime('2010-01-01'), 'A') + new Job(20, new \DateTime('2003-01-01'), new \DateTime('2010-01-01'), 'A'), ]; $filtered = WeighteD::solve($jobs); diff --git a/tests/Algorithm/Knapsack/BoundedTest.php b/tests/Algorithm/Knapsack/BoundedTest.php index dc97973e2..18993f8fb 100644 --- a/tests/Algorithm/Knapsack/BoundedTest.php +++ b/tests/Algorithm/Knapsack/BoundedTest.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\Knapsack; -use phpOMS\Algorithm\Knapsack\Bounded; use phpOMS\Algorithm\Knapsack\Backpack; +use phpOMS\Algorithm\Knapsack\Bounded; use phpOMS\Algorithm\Knapsack\Item; /** diff --git a/tests/Algorithm/Knapsack/ContinuousTest.php b/tests/Algorithm/Knapsack/ContinuousTest.php index aa6020719..a79d448e9 100644 --- a/tests/Algorithm/Knapsack/ContinuousTest.php +++ b/tests/Algorithm/Knapsack/ContinuousTest.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\Knapsack; -use phpOMS\Algorithm\Knapsack\Continuous; use phpOMS\Algorithm\Knapsack\Backpack; +use phpOMS\Algorithm\Knapsack\Continuous; use phpOMS\Algorithm\Knapsack\Item; /** diff --git a/tests/Algorithm/PathFinding/AStarNodeTest.php b/tests/Algorithm/PathFinding/AStarNodeTest.php index 43ed5e333..5c68a1064 100644 --- a/tests/Algorithm/PathFinding/AStarNodeTest.php +++ b/tests/Algorithm/PathFinding/AStarNodeTest.php @@ -42,7 +42,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase self::assertFalse($this->node->isClosed()); self::assertFalse($this->node->isOpened()); self::assertEquals(0.0, $this->node->getG()); - self::assertEquals(null, $this->node->getH()); + self::assertNull($this->node->getH()); self::assertEquals(0.0, $this->node->getF()); } diff --git a/tests/Algorithm/PathFinding/AStarTest.php b/tests/Algorithm/PathFinding/AStarTest.php index 06e8c76fe..0dcc06964 100644 --- a/tests/Algorithm/PathFinding/AStarTest.php +++ b/tests/Algorithm/PathFinding/AStarTest.php @@ -14,11 +14,11 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\PathFinding; -use phpOMS\Algorithm\PathFinding\Grid; -use phpOMS\Algorithm\PathFinding\MovementType; -use phpOMS\Algorithm\PathFinding\HeuristicType; -use phpOMS\Algorithm\PathFinding\AStarNode; use phpOMS\Algorithm\PathFinding\AStar; +use phpOMS\Algorithm\PathFinding\AStarNode; +use phpOMS\Algorithm\PathFinding\Grid; +use phpOMS\Algorithm\PathFinding\HeuristicType; +use phpOMS\Algorithm\PathFinding\MovementType; require_once __DIR__ . '/../../Autoloader.php'; diff --git a/tests/Algorithm/PathFinding/GridTest.php b/tests/Algorithm/PathFinding/GridTest.php index d3892880e..01f836696 100644 --- a/tests/Algorithm/PathFinding/GridTest.php +++ b/tests/Algorithm/PathFinding/GridTest.php @@ -35,7 +35,7 @@ class GridTest extends \PHPUnit\Framework\TestCase public function testDefault() : void { $grid = new Grid(); - self::assertEquals(null, $grid->getNode(0, 0)); + self::assertNull($grid->getNode(0, 0)); } /** @@ -95,10 +95,10 @@ class GridTest extends \PHPUnit\Framework\TestCase [0, 9, 0], ], Node::class); - self::assertEquals(null, $grid->getNode(-1, 0)); - self::assertEquals(null, $grid->getNode(0, -1)); - self::assertEquals(null, $grid->getNode(3, 0)); - self::assertEquals(null, $grid->getNode(0, 3)); + self::assertNull($grid->getNode(-1, 0)); + self::assertNull($grid->getNode(0, -1)); + self::assertNull($grid->getNode(3, 0)); + self::assertNull($grid->getNode(0, 3)); } /** diff --git a/tests/Algorithm/PathFinding/JumpPointNodeTest.php b/tests/Algorithm/PathFinding/JumpPointNodeTest.php index 7e5604818..e8c63a334 100644 --- a/tests/Algorithm/PathFinding/JumpPointNodeTest.php +++ b/tests/Algorithm/PathFinding/JumpPointNodeTest.php @@ -43,7 +43,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase self::assertFalse($this->node->isOpened()); self::assertFalse($this->node->isTested()); self::assertEquals(0.0, $this->node->getG()); - self::assertEquals(null, $this->node->getH()); + self::assertNull($this->node->getH()); self::assertEquals(0.0, $this->node->getF()); } diff --git a/tests/Algorithm/PathFinding/JumpPointSearchTest.php b/tests/Algorithm/PathFinding/JumpPointSearchTest.php index 47e0f79ad..e42b52574 100644 --- a/tests/Algorithm/PathFinding/JumpPointSearchTest.php +++ b/tests/Algorithm/PathFinding/JumpPointSearchTest.php @@ -15,10 +15,10 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\PathFinding; use phpOMS\Algorithm\PathFinding\Grid; -use phpOMS\Algorithm\PathFinding\MovementType; use phpOMS\Algorithm\PathFinding\HeuristicType; use phpOMS\Algorithm\PathFinding\JumpPointNode; use phpOMS\Algorithm\PathFinding\JumpPointSearch; +use phpOMS\Algorithm\PathFinding\MovementType; require_once __DIR__ . '/../../Autoloader.php'; diff --git a/tests/Algorithm/PathFinding/NodeTest.php b/tests/Algorithm/PathFinding/NodeTest.php index fed1515da..b7251906c 100644 --- a/tests/Algorithm/PathFinding/NodeTest.php +++ b/tests/Algorithm/PathFinding/NodeTest.php @@ -38,7 +38,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase self::assertEquals(2, $node->getY()); self::assertEquals(['x' => 1, 'y' => 2], $node->getCoordinates()); self::assertEquals(3.0, $node->getWeight()); - self::assertEquals(null, $node->getParent()); + self::assertNull($node->getParent()); self::assertFalse($node->isWalkable()); } diff --git a/tests/Algorithm/Sort/IntroSortTest.php b/tests/Algorithm/Sort/IntroSortTest.php index 4f4262370..9317e90bd 100644 --- a/tests/Algorithm/Sort/IntroSortTest.php +++ b/tests/Algorithm/Sort/IntroSortTest.php @@ -81,7 +81,7 @@ class IntroSortTest extends \PHPUnit\Framework\TestCase new NumericElement(35), new NumericElement(11), new NumericElement(35), new NumericElement(4), new NumericElement(25), new NumericElement(11), new NumericElement(80), new NumericElement(22), new NumericElement(94), new NumericElement(4), new NumericElement(30), new NumericElement(6), new NumericElement(66), new NumericElement(11), new NumericElement(4), new NumericElement(80), new NumericElement(2), new NumericElement(80), new NumericElement(25), new NumericElement(0), new NumericElement(45), - new NumericElement(55), new NumericElement(25) + new NumericElement(55), new NumericElement(25), ]; $newList = IntroSort::sort($list); diff --git a/tests/Algorithm/Sort/StoogeSortTest.php b/tests/Algorithm/Sort/StoogeSortTest.php index a540c8104..5da05c4c9 100644 --- a/tests/Algorithm/Sort/StoogeSortTest.php +++ b/tests/Algorithm/Sort/StoogeSortTest.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\Sort; -use phpOMS\Algorithm\Sort\StoogeSort; use phpOMS\Algorithm\Sort\SortOrder; +use phpOMS\Algorithm\Sort\StoogeSort; require_once __DIR__ . '/../../Autoloader.php'; diff --git a/tests/Algorithm/Sort/TimSortTest.php b/tests/Algorithm/Sort/TimSortTest.php index 68fee5edc..dc62acf72 100644 --- a/tests/Algorithm/Sort/TimSortTest.php +++ b/tests/Algorithm/Sort/TimSortTest.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\tests\Algorithm\Sort; -use phpOMS\Algorithm\Sort\TimSort; use phpOMS\Algorithm\Sort\SortOrder; +use phpOMS\Algorithm\Sort\TimSort; require_once __DIR__ . '/../../Autoloader.php'; @@ -81,7 +81,7 @@ class TimSortTest extends \PHPUnit\Framework\TestCase new NumericElement(35), new NumericElement(11), new NumericElement(35), new NumericElement(4), new NumericElement(25), new NumericElement(11), new NumericElement(80), new NumericElement(22), new NumericElement(94), new NumericElement(4), new NumericElement(30), new NumericElement(6), new NumericElement(66), new NumericElement(11), new NumericElement(4), new NumericElement(80), new NumericElement(2), new NumericElement(80), new NumericElement(25), new NumericElement(0), new NumericElement(45), - new NumericElement(55), new NumericElement(25) + new NumericElement(55), new NumericElement(25), ]; $newList = TimSort::sort($list); diff --git a/tests/DataStorage/Database/Query/SelectTest.php b/tests/DataStorage/Database/Query/SelectTest.php index 9c7c1b6af..6d4d06a0a 100644 --- a/tests/DataStorage/Database/Query/SelectTest.php +++ b/tests/DataStorage/Database/Query/SelectTest.php @@ -26,4 +26,3 @@ class SelectTest extends \PHPUnit\Framework\TestCase self::assertInstanceOf('\phpOMS\DataStorage\Database\Query\Builder', new Select($GLOBALS['dbpool']->get())); } } - diff --git a/tests/DataStorage/Database/TestModel/BaseModelMapper.php b/tests/DataStorage/Database/TestModel/BaseModelMapper.php index 9df1e0377..37d2ff244 100644 --- a/tests/DataStorage/Database/TestModel/BaseModelMapper.php +++ b/tests/DataStorage/Database/TestModel/BaseModelMapper.php @@ -20,7 +20,7 @@ class BaseModelMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -41,7 +41,7 @@ class BaseModelMapper extends DataMapperAbstract /** * Belongs to. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $belongsTo = [ @@ -61,7 +61,7 @@ class BaseModelMapper extends DataMapperAbstract /** * Has many relation. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $hasMany = [ diff --git a/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php b/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php index 17bbe8708..c5f5da0a8 100644 --- a/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php +++ b/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php @@ -20,7 +20,7 @@ class BelongsToModelMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ diff --git a/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php b/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php index ccfc94fde..071a08990 100644 --- a/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php +++ b/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php @@ -20,7 +20,7 @@ class ManyToManyDirectModelMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ diff --git a/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php b/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php index 94dc1df0d..cecb0db50 100644 --- a/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php +++ b/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php @@ -20,7 +20,7 @@ class ManyToManyRelModelMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ diff --git a/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php b/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php index 3afa3f9f1..49abe8bce 100644 --- a/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php +++ b/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php @@ -20,7 +20,7 @@ class OwnsOneModelMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ diff --git a/tests/Math/Geometry/Shape/D2/PolygonTest.php b/tests/Math/Geometry/Shape/D2/PolygonTest.php index 02fc600b0..462742742 100644 --- a/tests/Math/Geometry/Shape/D2/PolygonTest.php +++ b/tests/Math/Geometry/Shape/D2/PolygonTest.php @@ -151,7 +151,7 @@ class PolygonTest extends \PHPUnit\Framework\TestCase * @covers phpOMS\Math\Geometry\Shape\D2\Polygon * @group framework */ - public function testRegularAreaByLength() + public function testRegularAreaByLength(): void { self::assertEqualsWithDelta(3 * 3, Polygon::getRegularAreaByLength(3.0, 4), 0.01); } @@ -161,7 +161,7 @@ class PolygonTest extends \PHPUnit\Framework\TestCase * @covers phpOMS\Math\Geometry\Shape\D2\Polygon * @group framework */ - public function testRegularAreaByRadius() + public function testRegularAreaByRadius(): void { self::assertEqualsWithDelta(3 * 3 , Polygon::getRegularAreaByRadius(1.5, 4), 0.01); } diff --git a/tests/Math/Geometry/Shape/D3/PrismTest.php b/tests/Math/Geometry/Shape/D3/PrismTest.php index 935db7f83..cfeac6d12 100644 --- a/tests/Math/Geometry/Shape/D3/PrismTest.php +++ b/tests/Math/Geometry/Shape/D3/PrismTest.php @@ -48,7 +48,7 @@ class PrismTest extends \PHPUnit\Framework\TestCase * @covers phpOMS\Math\Geometry\Shape\D3\Prism * @group framework */ - public function testSurface() + public function testSurface(): void { self::assertEqualsWithDelta(3 * 3 * 2 + 3 * 12 * 4, Prism::getSurfaceRegularLength(3, 4, 12), 0.01); } diff --git a/tests/Math/Statistic/Forecast/ErrorTest.php b/tests/Math/Statistic/Forecast/ErrorTest.php index ca40e3432..028685ac1 100644 --- a/tests/Math/Statistic/Forecast/ErrorTest.php +++ b/tests/Math/Statistic/Forecast/ErrorTest.php @@ -14,7 +14,6 @@ declare(strict_types=1); namespace phpOMS\tests\Math\Statistic\Forecast; -use phpOMS\Math\Statistic\Correlation; use phpOMS\Math\Statistic\Forecast\Error; use phpOMS\Math\Statistic\MeasureOfDispersion; diff --git a/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php index 7efcb4bf5..f9ad1884e 100644 --- a/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\tests\Math\Statistic\Forecast\Regression; -use phpOMS\Math\Statistic\Forecast\Regression\LevelLevelRegression; use phpOMS\Math\Statistic\Forecast\Error; +use phpOMS\Math\Statistic\Forecast\Regression\LevelLevelRegression; use phpOMS\Math\Stochastic\Distribution\TDistribution; /** diff --git a/tests/Message/Mail/ImapTest.php b/tests/Message/Mail/ImapTest.php index cb7dfacb3..0258249e8 100644 --- a/tests/Message/Mail/ImapTest.php +++ b/tests/Message/Mail/ImapTest.php @@ -25,7 +25,7 @@ class ImapTest extends \PHPUnit\Framework\TestCase { self::markTestIncomplete(); return; - + $email = new Imap( $GLOBALS['CONFIG']['mail']['imap']['host'], $GLOBALS['CONFIG']['mail']['imap']['port'], diff --git a/tests/Module/ModuleManagerTest.php b/tests/Module/ModuleManagerTest.php index 4ff5a1114..b545598e3 100644 --- a/tests/Module/ModuleManagerTest.php +++ b/tests/Module/ModuleManagerTest.php @@ -16,9 +16,9 @@ namespace phpOMS\tests\Module; use phpOMS\ApplicationAbstract; use phpOMS\Dispatcher\Dispatcher; +use phpOMS\Message\Http\Request; use phpOMS\Module\ModuleManager; use phpOMS\Router\WebRouter; -use phpOMS\Message\Http\Request; use phpOMS\Uri\Http; require_once __DIR__ . '/../Autoloader.php'; @@ -145,9 +145,9 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A module can be installed and its status can be changed + * @covers phpOMS\Module\InstallerAbstract * @covers phpOMS\Module\ModuleManager * @covers phpOMS\Module\StatusAbstract - * @covers phpOMS\Module\InstallerAbstract * @group framework */ public function testStatus() : void diff --git a/tests/Module/testPackage/testSubPackage/run.php b/tests/Module/testPackage/testSubPackage/run.php index 76fd3f111..5079d7196 100644 --- a/tests/Module/testPackage/testSubPackage/run.php +++ b/tests/Module/testPackage/testSubPackage/run.php @@ -1,4 +1,4 @@ addPacket('help' . "\r"); $socket->addPacket('shutdown' . "\r"); - $this->app->router->add('^shutdown$', function() use ($socket) { $socket->shutdown(); }); + $this->app->router->add('^shutdown$', function() use ($socket): void { $socket->shutdown(); }); $socket->run(); diff --git a/tests/Socket/Client/ClientTestHelper.php b/tests/Socket/Client/ClientTestHelper.php index 7a054e46a..532bf44da 100644 --- a/tests/Socket/Client/ClientTestHelper.php +++ b/tests/Socket/Client/ClientTestHelper.php @@ -14,20 +14,20 @@ declare(strict_types=1); namespace phpOMS\tests\Socket\Client; -use phpOMS\Socket\Server\Server; use Model\CoreSettings; use phpOMS\Account\AccountManager; use phpOMS\ApplicationAbstract; use phpOMS\DataStorage\Cache\CachePool; +use phpOMS\DataStorage\Database\DatabasePool; +use phpOMS\DataStorage\Database\DataMapperAbstract; +use phpOMS\DataStorage\Session\HttpSession; use phpOMS\Dispatcher\Dispatcher; use phpOMS\Event\EventManager; use phpOMS\Localization\L11nManager; use phpOMS\Log\FileLogger; use phpOMS\Module\ModuleManager; use phpOMS\Router\SocketRouter; -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\DataStorage\Database\DataMapperAbstract; -use phpOMS\DataStorage\Session\HttpSession; +use phpOMS\Socket\Server\Server; require_once __DIR__ . '/../../../Autoloader.php'; $config = require_once __DIR__ . '/../../../../config.php'; @@ -66,6 +66,6 @@ $socket = new Server($app); $socket->create('127.0.0.1', $config['socket']['master']['port']); $socket->setLimit(1); -$app->router->add('^shutdown$', function($app, $request) use ($socket) { $socket->shutdown($request); }); +$app->router->add('^shutdown$', function($app, $request) use ($socket): void { $socket->shutdown($request); }); -$socket->run(); \ No newline at end of file +$socket->run(); diff --git a/tests/Socket/Server/ServerTest.php b/tests/Socket/Server/ServerTest.php index dac05aea2..bb0af56a0 100644 --- a/tests/Socket/Server/ServerTest.php +++ b/tests/Socket/Server/ServerTest.php @@ -17,15 +17,15 @@ namespace phpOMS\tests\Socket\Server; use Model\CoreSettings; use phpOMS\Account\AccountManager; use phpOMS\ApplicationAbstract; +use phpOMS\Autoloader; use phpOMS\DataStorage\Cache\CachePool; use phpOMS\Dispatcher\Dispatcher; use phpOMS\Event\EventManager; use phpOMS\Localization\L11nManager; use phpOMS\Log\FileLogger; use phpOMS\Module\ModuleManager; -use phpOMS\Socket\Server\Server; use phpOMS\Router\SocketRouter; -use phpOMS\Autoloader; +use phpOMS\Socket\Server\Server; /** * @internal @@ -85,7 +85,7 @@ class ServerTest extends \PHPUnit\Framework\TestCase $socket->create('127.0.0.1', $GLOBALS['CONFIG']['socket']['master']['port']); $socket->setLimit(1); - $this->app->router->add('^shutdown$', function($app, $request) use ($socket) { $socket->shutdown($request); }); + $this->app->router->add('^shutdown$', function($app, $request) use ($socket): void { $socket->shutdown($request); }); $socket->run(); diff --git a/tests/Socket/Server/ServerTestHelper.php b/tests/Socket/Server/ServerTestHelper.php index 3d6c455a8..dc5603497 100644 --- a/tests/Socket/Server/ServerTestHelper.php +++ b/tests/Socket/Server/ServerTestHelper.php @@ -14,8 +14,6 @@ declare(strict_types=1); namespace phpOMS\tests\Socket\Server; -use phpOMS\Socket\Client\Client; - require_once __DIR__ . '/../../../Autoloader.php'; $config = require_once __DIR__ . '/../../../../config.php'; diff --git a/tests/Stdlib/Base/HeapTest.php b/tests/Stdlib/Base/HeapTest.php index a126d9d45..a36ca99d8 100644 --- a/tests/Stdlib/Base/HeapTest.php +++ b/tests/Stdlib/Base/HeapTest.php @@ -257,4 +257,4 @@ class HeapTest extends \PHPUnit\Framework\TestCase self::assertFalse($heap->isEmpty()); } -} \ No newline at end of file +} diff --git a/tests/Utils/Encoding/XorEncodingTest.php b/tests/Utils/Encoding/XorEncodingTest.php index dc6f4b513..1aeb8b421 100644 --- a/tests/Utils/Encoding/XorEncodingTest.php +++ b/tests/Utils/Encoding/XorEncodingTest.php @@ -15,7 +15,6 @@ declare(strict_types=1); namespace phpOMS\tests\Utils\Encoding; use phpOMS\Utils\Encoding\XorEncoding; -use phpOMS\Utils\RnG\StringUtils; /** * @testdox phpOMS\tests\Utils\Encoding\XorEncodingTest: XOR text encoding/decoding diff --git a/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php b/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php index a346ea34f..ce8dc3c26 100644 --- a/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php +++ b/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php @@ -14,11 +14,11 @@ declare(strict_types=1); namespace phpOMS\tests\Utils\IO\Spreadsheet; +use phpOMS\Autoloader; use phpOMS\DataStorage\Database\Connection\SQLiteConnection; use phpOMS\DataStorage\Database\Query\Builder; use phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper; use phpOMS\Utils\StringUtils; -use phpOMS\Autoloader; /** * @testdox phpOMS\tests\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapperTest: Spreadsheet database mapper diff --git a/tests/Utils/TaskSchedule/IntervalTest.php b/tests/Utils/TaskSchedule/IntervalTest.php index 8b5590799..4913574fd 100644 --- a/tests/Utils/TaskSchedule/IntervalTest.php +++ b/tests/Utils/TaskSchedule/IntervalTest.php @@ -34,7 +34,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase $interval = new Interval($dt); self::assertEquals($dt->format('Y-m-d'), $interval->getStart()->format('Y-m-d')); - self::assertEquals(null, $interval->getEnd()); + self::assertNull($interval->getEnd()); self::assertEquals(0, $interval->getMaxDuration()); self::assertEquals([], $interval->getMinute()); self::assertEquals([], $interval->getHour()); diff --git a/tests/Views/ViewTest.php b/tests/Views/ViewTest.php index 45f170801..1db6ee266 100644 --- a/tests/Views/ViewTest.php +++ b/tests/Views/ViewTest.php @@ -246,7 +246,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase { $view = new View($this->app, $request = new Request(new Http('')), $response = new Response()); - self::assertEquals(false, $view->getView('test')); + self::assertFalse($view->getView('test')); } /**