From 9bbdbcaf386506fc472c459873b9587c96db280d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 6 Nov 2016 22:22:58 +0100 Subject: [PATCH] Fix docblocks --- Account/AccountMapper.php | 2 +- DataStorage/Database/DataMapperAbstract.php | 14 ++------------ DataStorage/Database/GrammarAbstract.php | 2 -- DataStorage/Database/Query/Builder.php | 2 +- DataStorage/Database/Query/Grammar/Grammar.php | 2 +- Localization/L11nManager.php | 4 +--- Log/FileLogger.php | 2 +- Math/Finance/FinanceFormulas.php | 2 +- Math/Matrix/Matrix.php | 4 ++-- Math/Statistic/Average.php | 16 ++++++---------- Math/Statistic/MeasureOfDispersion.php | 8 ++++---- .../Distribution/ChiSquaredDistribution.php | 8 ++++---- .../Distribution/ExponentialDistribution.php | 2 +- Message/Http/Request.php | 2 -- Router/Router.php | 4 ++-- 15 files changed, 27 insertions(+), 47 deletions(-) diff --git a/Account/AccountMapper.php b/Account/AccountMapper.php index c8d16a3dc..5222fd94f 100644 --- a/Account/AccountMapper.php +++ b/Account/AccountMapper.php @@ -25,7 +25,7 @@ class AccountMapper extends DataMapperAbstract /** * Columns. * - * @var array + * @var array * @since 1.0.0 */ protected static $columns = [ diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index 0f05393d8..22993efd8 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -70,7 +70,7 @@ class DataMapperAbstract implements DataMapperInterface /** * Columns. * - * @var array + * @var array * @since 1.0.0 */ protected static $columns = []; @@ -337,8 +337,6 @@ class DataMapperAbstract implements DataMapperInterface * * @return mixed * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ @@ -452,7 +450,7 @@ class DataMapperAbstract implements DataMapperInterface * * @return void * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -552,8 +550,6 @@ class DataMapperAbstract implements DataMapperInterface * * @return mixed * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ @@ -588,8 +584,6 @@ class DataMapperAbstract implements DataMapperInterface * * @return mixed * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ @@ -625,8 +619,6 @@ class DataMapperAbstract implements DataMapperInterface * * @return mixed * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ @@ -696,8 +688,6 @@ class DataMapperAbstract implements DataMapperInterface * * @return int * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ diff --git a/DataStorage/Database/GrammarAbstract.php b/DataStorage/Database/GrammarAbstract.php index c3e716bd3..d101ae81f 100644 --- a/DataStorage/Database/GrammarAbstract.php +++ b/DataStorage/Database/GrammarAbstract.php @@ -78,8 +78,6 @@ abstract class GrammarAbstract * * @return string * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ diff --git a/DataStorage/Database/Query/Builder.php b/DataStorage/Database/Query/Builder.php index 0cfa63f4c..3ae96bb4a 100644 --- a/DataStorage/Database/Query/Builder.php +++ b/DataStorage/Database/Query/Builder.php @@ -429,7 +429,7 @@ class Builder extends BuilderAbstract * * @return Builder * - * @throws + * @throws \InvalidArgumentException * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/DataStorage/Database/Query/Grammar/Grammar.php b/DataStorage/Database/Query/Grammar/Grammar.php index bd3b188a1..adfc0af90 100644 --- a/DataStorage/Database/Query/Grammar/Grammar.php +++ b/DataStorage/Database/Query/Grammar/Grammar.php @@ -98,7 +98,7 @@ class Grammar extends GrammarAbstract * * @return string[] * - * @throws + * @throws \InvalidArgumentException * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/Localization/L11nManager.php b/Localization/L11nManager.php index 68cf4d21c..1b2143bea 100644 --- a/Localization/L11nManager.php +++ b/Localization/L11nManager.php @@ -89,7 +89,7 @@ class L11nManager * * @return void * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -120,8 +120,6 @@ class L11nManager * * @return void * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ diff --git a/Log/FileLogger.php b/Log/FileLogger.php index 59d34574d..a631eeb63 100644 --- a/Log/FileLogger.php +++ b/Log/FileLogger.php @@ -43,7 +43,7 @@ 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[float] + * @var array * @since 1.0.0 */ private $timings = []; diff --git a/Math/Finance/FinanceFormulas.php b/Math/Finance/FinanceFormulas.php index 2d4ec0665..926b910f9 100644 --- a/Math/Finance/FinanceFormulas.php +++ b/Math/Finance/FinanceFormulas.php @@ -1014,7 +1014,7 @@ class FinanceFormulas * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/Math/Matrix/Matrix.php b/Math/Matrix/Matrix.php index 3ac9dbdbb..2f512ced2 100644 --- a/Math/Matrix/Matrix.php +++ b/Math/Matrix/Matrix.php @@ -87,7 +87,7 @@ class Matrix implements \ArrayAccess, \Iterator * @param int $n Column * @param int $value Value * - * @throws + * @throws DimensionException * * @since 1.0.0 * @author Dennis Eichhorn @@ -109,7 +109,7 @@ class Matrix implements \ArrayAccess, \Iterator * * @return mixed * - * @throws + * @throws DimensionException * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/Math/Statistic/Average.php b/Math/Statistic/Average.php index 40281364b..e52dfeb94 100644 --- a/Math/Statistic/Average.php +++ b/Math/Statistic/Average.php @@ -50,8 +50,6 @@ class Average * * @return float * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ @@ -91,7 +89,7 @@ class Average * * @todo : allow counter i also to go into the future... required for forecast how? should be doable! * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -126,7 +124,7 @@ class Average * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -155,7 +153,7 @@ class Average * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -230,7 +228,7 @@ class Average * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -256,7 +254,7 @@ class Average * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -321,7 +319,7 @@ class Average * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -349,8 +347,6 @@ class Average * * @return string * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ diff --git a/Math/Statistic/MeasureOfDispersion.php b/Math/Statistic/MeasureOfDispersion.php index 2663a16a6..059383a9b 100644 --- a/Math/Statistic/MeasureOfDispersion.php +++ b/Math/Statistic/MeasureOfDispersion.php @@ -60,7 +60,7 @@ class MeasureOfDispersion * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -102,7 +102,7 @@ class MeasureOfDispersion * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -127,7 +127,7 @@ class MeasureOfDispersion * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -160,7 +160,7 @@ class MeasureOfDispersion * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/Math/Stochastic/Distribution/ChiSquaredDistribution.php b/Math/Stochastic/Distribution/ChiSquaredDistribution.php index e6f5aa936..e49a73a6c 100644 --- a/Math/Stochastic/Distribution/ChiSquaredDistribution.php +++ b/Math/Stochastic/Distribution/ChiSquaredDistribution.php @@ -35,7 +35,7 @@ class ChiSquaredDistribution /** * Chi square table. * - * @var array + * @var array * @since 1.0.0 */ const TABLE = [ @@ -88,7 +88,7 @@ class ChiSquaredDistribution * * @return array * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -154,7 +154,7 @@ class ChiSquaredDistribution * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn @@ -236,7 +236,7 @@ class ChiSquaredDistribution * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/Math/Stochastic/Distribution/ExponentialDistribution.php b/Math/Stochastic/Distribution/ExponentialDistribution.php index 630c10452..e8e2c6bb3 100644 --- a/Math/Stochastic/Distribution/ExponentialDistribution.php +++ b/Math/Stochastic/Distribution/ExponentialDistribution.php @@ -127,7 +127,7 @@ class ExponentialDistribution * * @return float * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn diff --git a/Message/Http/Request.php b/Message/Http/Request.php index 5ce28b8f1..a59766a64 100644 --- a/Message/Http/Request.php +++ b/Message/Http/Request.php @@ -103,8 +103,6 @@ class Request extends RequestAbstract * * @return void * - * @throws - * * @since 1.0.0 * @author Dennis Eichhorn */ diff --git a/Router/Router.php b/Router/Router.php index 0145c3ead..161581ebc 100644 --- a/Router/Router.php +++ b/Router/Router.php @@ -34,7 +34,7 @@ class Router /** * Routes. * - * @var array + * @var array * @since 1.0.0 */ private $routes = []; @@ -103,7 +103,7 @@ class Router * * @return string[] * - * @throws + * @throws \Exception * * @since 1.0.0 * @author Dennis Eichhorn