Fix null typehint order

This commit is contained in:
Dennis Eichhorn 2018-12-10 18:13:44 +01:00
parent e01d3e1e59
commit 13c5562ffe
51 changed files with 149 additions and 149 deletions

View File

@ -86,7 +86,7 @@ class Account implements ArrayableInterface, \JsonSerializable
/**
* Login.
*
* @var string|null
* @var null|string
* @since 1.0.0
*/
protected $login = null;
@ -313,12 +313,12 @@ class Account implements ArrayableInterface, \JsonSerializable
* Checks if the account has a permission defined
*
* @param int $permission Permission to check
* @param int|null $unit Unit Unit to check (null if all are acceptable)
* @param string|null $app App App to check (null if all are acceptable)
* @param string|null $module Module Module to check (null if all are acceptable)
* @param int|null $type Type (e.g. customer) (null if all are acceptable)
* @param int|null $element (e.g. customer id) (null if all are acceptable)
* @param int|null $component (e.g. address) (null if all are acceptable)
* @param null|int $unit Unit Unit to check (null if all are acceptable)
* @param null|string $app App App to check (null if all are acceptable)
* @param null|string $module Module Module to check (null if all are acceptable)
* @param null|int $type Type (e.g. customer) (null if all are acceptable)
* @param null|int $element (e.g. customer id) (null if all are acceptable)
* @param null|int $component (e.g. address) (null if all are acceptable)
*
* @return bool Returns true if the account has the permission, false otherwise
*

View File

@ -38,7 +38,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Unit id.
*
* @var int|null
* @var null|int
* @since 1.0.0
*/
protected $unit = null;
@ -46,7 +46,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* App name.
*
* @var string|null
* @var null|string
* @since 1.0.0
*/
protected $app = null;
@ -54,7 +54,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Module id.
*
* @var string|null
* @var null|string
* @since 1.0.0
*/
protected $module = null;
@ -70,7 +70,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Type.
*
* @var int|null
* @var null|int
* @since 1.0.0
*/
protected $type = null;
@ -78,7 +78,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Element id.
*
* @var int|null
* @var null|int
* @since 1.0.0
*/
protected $element = null;
@ -86,7 +86,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Component id.
*
* @var int|null
* @var null|int
* @since 1.0.0
*/
protected $component = null;
@ -114,7 +114,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Get unit id.
*
* @return int|null
* @return null|int
*
* @since 1.0.0
*/
@ -126,7 +126,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Set unit id.
*
* @param int|null $unit Unit
* @param null|int $unit Unit
*
* @return void
*
@ -140,7 +140,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Get app name.
*
* @return string|null
* @return null|string
*
* @since 1.0.0
*/
@ -166,7 +166,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Get module id.
*
* @return string|null
* @return null|string
*
* @since 1.0.0
*/
@ -218,7 +218,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Get type.
*
* @return int|null
* @return null|int
*
* @since 1.0.0
*/
@ -244,7 +244,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Get element id.
*
* @return int|null
* @return null|int
*
* @since 1.0.0
*/
@ -270,7 +270,7 @@ class PermissionAbstract implements \JsonSerializable
/**
* Get component id.
*
* @return int|null
* @return null|int
*
* @since 1.0.0
*/

View File

@ -89,7 +89,7 @@ final class AssetManager implements \Countable
*
* @param string $id Asset id
*
* @return string|null
* @return null|string
*
* @since 1.0.0
*/

View File

@ -927,7 +927,7 @@ final class FinanceFormulas
/**
* Future Value Factor
*
* @param array<int|float> $r Rate of return
* @param array<float|int> $r Rate of return
*
* @return float
*
@ -1055,7 +1055,7 @@ final class FinanceFormulas
/**
* Net Present Value
*
* @param array<int|float> $C Cash flow ($C[0] = initial investment)
* @param array<float|int> $C Cash flow ($C[0] = initial investment)
* @param float $r Discount rate
*
* @return float

View File

@ -27,7 +27,7 @@ final class Lorenzkurve
/**
* Calculate Gini coefficient
*
* @param array<int|float> $data Datapoints (can be unsorted)
* @param array<float|int> $data Datapoints (can be unsorted)
*
* @return float
*

View File

@ -198,7 +198,7 @@ final class StockBonds
/**
* Holding Period Return
*
* @param array<int|float> $r Rate of return
* @param array<float|int> $r Rate of return
*
* @return float
*

View File

@ -76,7 +76,7 @@ abstract class SettingsAbstract implements OptionsInterface
/**
* Get option by key.
*
* @param string|string[]|int|int[] $columns Column values for filtering
* @param int|int[]|string|string[] $columns Column values for filtering
*
* @return mixed Option value
*

View File

@ -38,7 +38,7 @@ abstract class ConnectionAbstract implements ConnectionInterface
*
* This can be used externally to define queries and execute them.
*
* @var \PDO|null
* @var null|\PDO
* @since 1.0.0
*/
public $con = null;

View File

@ -62,7 +62,7 @@ class Builder extends BuilderAbstract
/**
* Into.
*
* @var string|\Closure
* @var \Closure|string
* @since 1.0.0
*/
public $into = null;
@ -399,7 +399,7 @@ class Builder extends BuilderAbstract
/**
* Make raw column selection.
*
* @param string|\Closure $expression Raw expression
* @param \Closure|string $expression Raw expression
*
* @return Builder
*
@ -451,7 +451,7 @@ class Builder extends BuilderAbstract
/**
* Make raw from.
*
* @param string|array|\Closure $expression Expression
* @param array|\Closure|string $expression Expression
*
* @return Builder
*
@ -467,10 +467,10 @@ class Builder extends BuilderAbstract
/**
* Where.
*
* @param Where|string|\Closure|array $columns Columns
* @param string|array $operator Operator
* @param array|\Closure|string|Where $columns Columns
* @param array|string $operator Operator
* @param mixed $values Values
* @param string|array $boolean Boolean condition
* @param array|string $boolean Boolean condition
*
* @return Builder
*
@ -514,7 +514,7 @@ class Builder extends BuilderAbstract
*
* @param mixed $column Column
*
* @return array|null
* @return null|array
*
* @since 1.0.0
*/
@ -526,7 +526,7 @@ class Builder extends BuilderAbstract
/**
* Where and sub condition.
*
* @param Where|string|\Closure|array $where Where sub condition
* @param array|\Closure|string|Where $where Where sub condition
* @param mixed $operator Operator
* @param mixed $values Values
*
@ -542,7 +542,7 @@ class Builder extends BuilderAbstract
/**
* Where or sub condition.
*
* @param Where|string|\Closure|array $where Where sub condition
* @param array|\Closure|string|Where $where Where sub condition
* @param mixed $operator Operator
* @param mixed $values Values
*
@ -558,7 +558,7 @@ class Builder extends BuilderAbstract
/**
* Where in.
*
* @param Where|string|\Closure|array $column Column
* @param array|\Closure|string|Where $column Column
* @param mixed $values Values
* @param string $boolean Boolean condition
*
@ -576,7 +576,7 @@ class Builder extends BuilderAbstract
/**
* Where null.
*
* @param Where|string|\Closure|array $column Column
* @param array|\Closure|string|Where $column Column
* @param string $boolean Boolean condition
*
* @return Builder
@ -593,7 +593,7 @@ class Builder extends BuilderAbstract
/**
* Where not null.
*
* @param Where|string|\Closure|array $column Column
* @param array|\Closure|string|Where $column Column
* @param string $boolean Boolean condition
*
* @return Builder
@ -610,7 +610,7 @@ class Builder extends BuilderAbstract
/**
* Group by.
*
* @param string|array|\Closure ...$columns Grouping result
* @param array|\Closure|string ...$columns Grouping result
*
* @return Builder
*
@ -632,7 +632,7 @@ class Builder extends BuilderAbstract
/**
* Order by newest.
*
* @param string|\Closure $column Column
* @param \Closure|string $column Column
*
* @return Builder
*
@ -648,7 +648,7 @@ class Builder extends BuilderAbstract
/**
* Order by oldest.
*
* @param string|\Closure $column Column
* @param \Closure|string $column Column
*
* @return Builder
*
@ -664,7 +664,7 @@ class Builder extends BuilderAbstract
/**
* Order by oldest.
*
* @param string|array|\Closure $columns Columns
* @param array|\Closure|string $columns Columns
* @param string|string[] $order Orders
*
* @return Builder
@ -879,7 +879,7 @@ class Builder extends BuilderAbstract
/**
* Table to insert into.
*
* @param string|\Closure $table Table
* @param \Closure|string $table Table
*
* @return Builder
*

View File

@ -50,7 +50,7 @@ class HttpSession implements SessionInterface
/**
* Session ID.
*
* @var string|int|null
* @var null|int|string
* @since 1.0.0
*/
private $sid = null;
@ -67,7 +67,7 @@ class HttpSession implements SessionInterface
* Constructor.
*
* @param int $liftetime Session life time
* @param string|int|bool $sid Session id
* @param bool|int|string $sid Session id
* @param int $inactivityInterval Interval for session activity
*
* @throws LockException Throws this exception if the session is alrady locked for further interaction.

View File

@ -30,7 +30,7 @@ interface SessionInterface
/**
* Get session variable by key.
*
* @param string|int $key Value key
* @param int|string $key Value key
*
* @return mixed
*
@ -41,7 +41,7 @@ interface SessionInterface
/**
* Store session value by key.
*
* @param string|int $key Value key
* @param int|string $key Value key
* @param mixed $value Value to store
* @param bool $overwrite Overwrite existing values
*
@ -54,7 +54,7 @@ interface SessionInterface
/**
* Remove value from session by key.
*
* @param string|int $key Value key
* @param int|string $key Value key
*
* @return bool
*
@ -72,14 +72,14 @@ interface SessionInterface
public function save() : void;
/**
* @return int|string|null
* @return null|int|string
*
* @since 1.0.0
*/
public function getSID();
/**
* @param int|string|null $sid Session id
* @param null|int|string $sid Session id
*
* @return void
*

View File

@ -32,7 +32,7 @@ final class Dispatcher
/**
* Application.
*
* @var ApplicationAbstract|null
* @var null|ApplicationAbstract
* @since 1.0.0
*/
private $app = null;
@ -62,8 +62,8 @@ final class Dispatcher
/**
* Dispatch controller.
*
* @param string|array|\Closure $controller Controller string
* @param array|null|mixed ...$data Data
* @param array|\Closure|string $controller Controller string
* @param null|array|mixed ...$data Data
*
* @return array
*
@ -94,7 +94,7 @@ final class Dispatcher
* Dispatch string.
*
* @param string $controller Controller string
* @param array|null $data Data
* @param null|array $data Data
*
* @return array
*
@ -132,7 +132,7 @@ final class Dispatcher
* Dispatch array.
*
* @param array $controller Controller string
* @param array|null $data Data
* @param null|array $data Data
*
* @return array
*
@ -156,7 +156,7 @@ final class Dispatcher
* Dispatch closure.
*
* @param \Closure $controller Controller string
* @param array|null $data Data
* @param null|array $data Data
*
* @return mixed
*

View File

@ -30,7 +30,7 @@ class CityMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -30,7 +30,7 @@ class CountryMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -30,7 +30,7 @@ class CurrencyMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -30,7 +30,7 @@ class IbanMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -30,7 +30,7 @@ class LanguageMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -76,7 +76,7 @@ final class Money implements \Serializable
/**
* Constructor.
*
* @param string|int|float $value Value
* @param float|int|string $value Value
* @param string $thousands Thousands separator
* @param string $decimal Decimal separator
* @param string $symbol Currency symbol
@ -205,7 +205,7 @@ final class Money implements \Serializable
/**
* Add money.
*
* @param Money|string|int|float $value Value to add
* @param float|int|Money|string $value Value to add
*
* @return Money
*
@ -239,7 +239,7 @@ final class Money implements \Serializable
/**
* Sub money.
*
* @param Money|string|int|float $value Value to subtract
* @param float|int|Money|string $value Value to subtract
*
* @return Money
*
@ -261,7 +261,7 @@ final class Money implements \Serializable
/**
* Mult.
*
* @param int|float $value Value to multiply with
* @param float|int $value Value to multiply with
*
* @return Money
*
@ -279,7 +279,7 @@ final class Money implements \Serializable
/**
* Div.
*
* @param int|float $value Value to divide by
* @param float|int $value Value to divide by
*
* @return Money
*
@ -311,7 +311,7 @@ final class Money implements \Serializable
/**
* Power.
*
* @param int|float $value Value to power
* @param float|int $value Value to power
*
* @return Money
*

View File

@ -65,7 +65,7 @@ final class FileLogger implements LoggerInterface
*
* Potential values are null or a valid file pointer
*
* @var resource|false
* @var false|resource
* @since 1.0.0
*/
private $fp = false;

View File

@ -40,7 +40,7 @@ class FiniteDifference
* Example: ('2*x^3-4x', ['x' => 99])
*
* @param string $formula Formula to differentiate
* @param array<string, int|float> $variable Variable to differentiate (name value assiziation)
* @param array<string, float|int> $variable Variable to differentiate (name value assiziation)
*
* @return float
*
@ -57,7 +57,7 @@ class FiniteDifference
* Example: ('2*x^3-4x', ['x' => 99])
*
* @param string $formula Formula to differentiate
* @param array<string, int|float> $variable Variable to differentiate (name value assiziation)
* @param array<string, float|int> $variable Variable to differentiate (name value assiziation)
*
* @return float
*
@ -74,7 +74,7 @@ class FiniteDifference
* Example: ('2*x^3-4x', ['x' => 99], 3)
*
* @param string $formula Formula to differentiate
* @param array<string, int|float> $variable Variable to differentiate (name value assiziation)
* @param array<string, float|int> $variable Variable to differentiate (name value assiziation)
* @param int $derivative Derivative (4th = highest)
*
* @return float

View File

@ -127,9 +127,9 @@ final class Functions
/**
* Applying abs to every array value
*
* @param array<int|float> $values Numeric values
* @param array<float|int> $values Numeric values
*
* @return array<int|float>
* @return array<float|int>
*
* @since 1.0.0
*/
@ -240,7 +240,7 @@ final class Functions
/**
* Power all values in array.
*
* @param array<int|float> $values Values to square
* @param array<float|int> $values Values to square
* @param float $exp Exponent
*
* @return array<float>
@ -261,10 +261,10 @@ final class Functions
/**
* Power all values in array.
*
* @param array<int|float> $values Values to square
* @param array<float|int> $values Values to square
* @param int $exp Exponent
*
* @return array<int|float>
* @return array<float|int>
*
* @since 1.0.0
*/
@ -282,9 +282,9 @@ final class Functions
/**
* Sqrt all values in array.
*
* @param array<int|float> $values Values to sqrt
* @param array<float|int> $values Values to sqrt
*
* @return array<int|float>
* @return array<float|int>
*
* @since 1.0.0
*/

View File

@ -38,9 +38,9 @@ final class MonotoneChain
/**
* Create convex hull
*
* @param array<int, array<string, int|float>> $points Points (Point Cloud)
* @param array<int, array<string, float|int>> $points Points (Point Cloud)
*
* @return array<int, array<string, int|float>>
* @return array<int, array<string, float|int>>
*
* @since 1.0.0
*/
@ -81,9 +81,9 @@ final class MonotoneChain
/**
* Counter clock wise turn?
*
* @param array<string, int|float> $a Point a
* @param array<string, int|float> $b Point b
* @param array<string, int|float> $c Point c
* @param array<string, float|int> $a Point a
* @param array<string, float|int> $b Point b
* @param array<string, float|int> $c Point c
*
* @return float
*
@ -97,8 +97,8 @@ final class MonotoneChain
/**
* Sort by x coordinate then by z coordinate
*
* @param array<string, int|float> $a Point a
* @param array<string, int|float> $b Point b
* @param array<string, float|int> $a Point a
* @param array<string, float|int> $b Point b
*
* @return float
*

View File

@ -59,7 +59,7 @@ final class Polygon implements D2ShapeInterface
/**
* Point polygon relative position
*
* @param array<string, int|float> $point Point location
* @param array<string, float|int> $point Point location
*
* @return int
*
@ -76,8 +76,8 @@ final class Polygon implements D2ShapeInterface
/**
* Point polygon relative position
*
* @param array<string, int|float> $point Point location
* @param array<int, array<string, int|float>> $polygon Polygon definition
* @param array<string, float|int> $point Point location
* @param array<int, array<string, float|int>> $polygon Polygon definition
*
* @return int -1 inside polygon 0 on vertice 1 outside
*
@ -141,8 +141,8 @@ final class Polygon implements D2ShapeInterface
/**
* Is point on vertex?
*
* @param array<string, int|float> $point Point location
* @param array<int, array<string, int|float>> $polygon Polygon definition
* @param array<string, float|int> $point Point location
* @param array<int, array<string, float|int>> $polygon Polygon definition
*
* @return bool
*
@ -239,7 +239,7 @@ final class Polygon implements D2ShapeInterface
/**
* Get barycenter
*
* @return array<string, int|float>
* @return array<string, float|int>
*
* @since 1.0.0
*/

View File

@ -370,7 +370,7 @@ class Matrix implements \ArrayAccess, \Iterator
/**
* Set matrix array.
*
* @param array<int, array<int|float>> $matrix Matrix
* @param array<int, array<float|int>> $matrix Matrix
*
* @return Matrix
*
@ -621,7 +621,7 @@ class Matrix implements \ArrayAccess, \Iterator
/**
* Trianglize matrix.
*
* @param array<int, array<int|float>> $arr Matrix to trianglize
* @param array<int, array<float|int>> $arr Matrix to trianglize
*
* @return int Det sign
*

View File

@ -40,9 +40,9 @@ final class Basic
*
* Example: ([4, 5, 9, 1, 3])
*
* @param array<int|float|array> $values Values
* @param array<array|float|int> $values Values
*
* @return array<int|float|array>
* @return array<array|float|int>
*
* @since 1.0.0
*/

View File

@ -40,8 +40,8 @@ final class Correlation
*
* Example: ([4, 5, 9, 1, 3], [4, 5, 9, 1, 3])
*
* @param array<int|float> $x Values
* @param array<int|float> $y Values
* @param array<float|int> $x Values
* @param array<float|int> $y Values
*
* @return float
*
@ -55,7 +55,7 @@ final class Correlation
/**
* Get the autocorrelation coefficient (ACF).
*
* @param array<int|float> $x Dataset
* @param array<float|int> $x Dataset
* @param int $k k-th coefficient
*
* @return float

View File

@ -31,7 +31,7 @@ class Forecasts
* @param float $standardDeviation Standard Deviation of forecast
* @param float $interval Forecast multiplier for prediction intervals
*
* @return array<int|float>
* @return array<float|int>
*
* @since 1.0.0
*/

View File

@ -33,8 +33,8 @@ abstract class RegressionAbstract
*
* @latex y = b_{0} + b_{1} \cdot x
*
* @param array<int|float> $x Obersved x values
* @param array<int|float> $y Observed y values
* @param array<float|int> $x Obersved x values
* @param array<float|int> $y Observed y values
*
* @return array [b0 => ?, b1 => ?]
*
@ -60,7 +60,7 @@ abstract class RegressionAbstract
*
* @latex s_{e} = \sqrt{\frac{1}{N - 2}\sum_{i = 1}^{N} e_{i}^{2}}
*
* @param array<int|float> $errors Errors (e = y - y_forecasted)
* @param array<float|int> $errors Errors (e = y - y_forecasted)
*
* @return float
*
@ -83,11 +83,11 @@ abstract class RegressionAbstract
* Get predictional interval for linear regression.
*
* @param float $forecasted Forecasted y value
* @param array<int|float> $x observex x values
* @param array<int|float> $errors Errors for y values (y - y_forecasted)
* @param array<float|int> $x observex x values
* @param array<float|int> $errors Errors for y values (y - y_forecasted)
* @param float $multiplier Multiplier for interval
*
* @return array<int|float>
* @return array<float|int>
*
* @since 1.0.0
*/
@ -111,8 +111,8 @@ abstract class RegressionAbstract
*
* @latex \beta_{1} = \frac{\sum_{i=1}^{N} \left(y_{i} - \bar{y}\right)\left(x_{i} - \bar{x}\right)}{\sum_{i=1}^{N} \left(x_{i} - \bar{x}\right)^{2}}
*
* @param array<int|float> $x Obersved x values
* @param array<int|float> $y Observed y values
* @param array<float|int> $x Obersved x values
* @param array<float|int> $y Observed y values
*
* @return float
*
@ -140,8 +140,8 @@ abstract class RegressionAbstract
*
* @latex \beta_{0} = \bar{x} - b_{1} \cdot \bar{x}
*
* @param array<int|float> $x Obersved x values
* @param array<int|float> $y Observed y values
* @param array<float|int> $x Obersved x values
* @param array<float|int> $y Observed y values
* @param float $b1 Beta 1
*
* @return float

View File

@ -27,7 +27,7 @@ interface MessageInterface
/**
* Retrieves all message header values.
*
* @return HeaderAbstract|null
* @return null|HeaderAbstract
*
* @since 1.0.0
*/

View File

@ -264,7 +264,7 @@ abstract class ModuleAbstract
* @param RequestAbstract $request Request
* @param mixed $old Response object old
* @param mixed $new Response object new
* @param string|\Closure $mapper Object mapper
* @param \Closure|string $mapper Object mapper
* @param string $trigger Trigger for the event manager
*
* @return void

View File

@ -133,7 +133,7 @@ final class ModuleManager
*
* @param RequestAbstract $request Request
*
* @return array<string|int, array>
* @return array<int|string, array>
*
* @since 1.0.0
*/
@ -611,7 +611,7 @@ final class ModuleManager
/**
* Initialize module.
*
* @param string|array $modules Module name
* @param array|string $modules Module name
*
* @return void
*

View File

@ -92,7 +92,7 @@ class CommandManager implements \Countable
* @param mixed $conn Client ID
* @param mixed $para Parameters to pass
*
* @return mixed|bool
* @return bool|mixed
*
* @since 1.0.0
*/

View File

@ -128,7 +128,7 @@ class Graph
*
* @param mixed $key Node key
*
* @return Node|null
* @return null|Node
*
* @since 1.0.0
*/
@ -154,7 +154,7 @@ class Graph
*
* @param mixed $key Edge key
*
* @return Edge|null
* @return null|Edge
*
* @since 1.0.0
*/

View File

@ -76,7 +76,7 @@ class MultiMap implements \Countable
/**
* Add data.
*
* @param array<string|int|float> $keys Keys for value
* @param array<float|int|string> $keys Keys for value
* @param mixed $value Value to store
* @param bool $overwrite Add value if key exists
*

View File

@ -46,7 +46,7 @@ interface DirectoryInterface extends ContainerInterface, \Iterator, \ArrayAccess
*
* @param string $name File/direcotry name
*
* @return ContainerInterface|null
* @return null|ContainerInterface
*
* @since 1.0.0
*/

View File

@ -105,7 +105,7 @@ final class Directory extends FileAbstract implements DirectoryInterface
* @param string $extension Extension
* @param string $exclude Pattern to exclude
*
* @return array<string|array>
* @return array<array|string>
*
* @since 1.0.0
*/

View File

@ -88,7 +88,7 @@ final class Storage
* Register storage environment.
*
* @param string $name Name of the environment
* @param string|StorageAbstract|mixed $class Class to register. This can be either a namespace path, a anonymous class or storage implementation.
* @param mixed|StorageAbstract|string $class Class to register. This can be either a namespace path, a anonymous class or storage implementation.
*
* @return bool
*

View File

@ -224,7 +224,7 @@ final class UriFactory
* $ = Other data
*
* @param string $uri Path data
* @param array<string, string|float|int|bool> $toMatch Optional special replacements
* @param array<string, bool|float|int|string> $toMatch Optional special replacements
*
* @return string
*

View File

@ -370,7 +370,7 @@ final class ArrayUtils
* @param int $start Start index
* @param int $count Amount of elements to sum
*
* @return int|float
* @return float|int
*
* @since 1.0.0
*/

View File

@ -34,7 +34,7 @@ class Currency
/**
* ECB currency rates.
*
* @var array|null
* @var null|array
* @since 1.0.0
*/
private static $ecbCurrencies = null;

View File

@ -277,7 +277,7 @@ class Repository
/**
* Files to add to commit.
*
* @param string|array $files Files to commit
* @param array|string $files Files to commit
*
* @return string
*
@ -295,7 +295,7 @@ class Repository
/**
* Remove file(s) from repository
*
* @param string|array $files Files to remove
* @param array|string $files Files to remove
* @param bool $cached ?
*
* @return string
@ -312,7 +312,7 @@ class Repository
/**
* Remove file(s) from repository
*
* @param string|array $files Files to remove
* @param array|string $files Files to remove
*
* @return string
*

View File

@ -41,7 +41,7 @@ final class Permutation
* @param array $toPermute data to permutate
* @param array $result existing permutations
*
* @return array<string|array>
* @return array<array|string>
*
* @since 1.0.0
*/
@ -101,7 +101,7 @@ final class Permutation
/**
* Permutate based on transposition key.
*
* @param string|array $toPermute To permutate
* @param array|string $toPermute To permutate
* @param array $key Permutation keys
*
* @return mixed

View File

@ -31,7 +31,7 @@ class Phone
* @param bool $isInt This number uses a country code
* @param string $struct Number layout
* @param array<null|array> $size Digits per placeholder [min, max]
* @param array|null $countries Country codes
* @param null|array $countries Country codes
*
* @return string
*

View File

@ -98,7 +98,7 @@ final class StringUtils
* In case of an array the function will test if any of the needles is at the end of the haystack string.
*
* @param string $haystack Haystack
* @param string|array $needles Needles to check if they are at the end of the haystack.
* @param array|string $needles Needles to check if they are at the end of the haystack.
*
* @example StringUtils::endsWith('Test string', ['test1', 'string']); // true
*
@ -128,7 +128,7 @@ final class StringUtils
* In case of an array the function will test if any of the needles is at the beginning of the haystack string.
*
* @param string $haystack Haystack
* @param string|array $needles Needles to check if they are at the beginning of the haystack.
* @param array|string $needles Needles to check if they are at the beginning of the haystack.
*
* @example StringUtils::startsWith('Test string', ['Test', 'something']); // true
* @example StringUtils::startsWith('Test string', 'string'); // false
@ -160,7 +160,7 @@ final class StringUtils
* In case of an array the function will test if any of the needles is at the beginning of the haystack string.
*
* @param string $haystack Haystack
* @param string|array $needles Needles to check if they are at the beginning of the haystack.
* @param array|string $needles Needles to check if they are at the beginning of the haystack.
*
* @return bool The function returns true if any of the needles is at the beginning of the haystack, false otherwise.
*
@ -188,7 +188,7 @@ final class StringUtils
* In case of an array the function will test if any of the needles is at the end of the haystack string.
*
* @param string $haystack Haystack
* @param string|array $needles Needles to check if they are at the end of the haystack.
* @param array|string $needles Needles to check if they are at the end of the haystack.
*
* @example StringUtils::endsWith('Test string', ['test1', 'string']); // true
* @example StringUtils::endsWith('Test string', 'string'); // true

View File

@ -67,7 +67,7 @@ final class Validator extends ValidatorAbstract
* Validate variable by type.
*
* @param mixed $var Variable to validate
* @param string[]|string $constraint Array of allowed types
* @param string|string[] $constraint Array of allowed types
*
* @return bool
*
@ -114,7 +114,7 @@ final class Validator extends ValidatorAbstract
* Validate variable by substring.
*
* @param string $var Variable to validate
* @param string|array $substr Substring
* @param array|string $substr Substring
*
* @return bool
*
@ -143,9 +143,9 @@ final class Validator extends ValidatorAbstract
/**
* Validate variable by interval.
*
* @param int|float $var Variable to validate
* @param int|float $min Min. value
* @param int|float $max Max. value
* @param float|int $var Variable to validate
* @param float|int $min Min. value
* @param float|int $max Max. value
*
* @return bool
*

View File

@ -50,7 +50,7 @@ class View extends ViewAbstract
/**
* Application.
*
* @var ApplicationAbstract|null
* @var null|ApplicationAbstract
* @since 1.0.0
*/
protected $app = null;
@ -58,7 +58,7 @@ class View extends ViewAbstract
/**
* Request.
*
* @var RequestAbstract|null
* @var null|RequestAbstract
* @since 1.0.0
*/
protected $request = null;
@ -66,7 +66,7 @@ class View extends ViewAbstract
/**
* Request.
*
* @var ResponseAbstract|null
* @var null|ResponseAbstract
* @since 1.0.0
*/
protected $response = null;
@ -228,7 +228,7 @@ class View extends ViewAbstract
/**
* Get request of view
*
* @return RequestAbstract|null
* @return null|RequestAbstract
*
* @since 1.0.0
*/
@ -240,7 +240,7 @@ class View extends ViewAbstract
/**
* Get response of view
*
* @return ResponseAbstract|null
* @return null|ResponseAbstract
*
* @since 1.0.0
*/

View File

@ -21,7 +21,7 @@ class BaseModelMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -21,7 +21,7 @@ class BelongsToModelMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -21,7 +21,7 @@ class ManyToManyDirectModelMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -21,7 +21,7 @@ class ManyToManyRelModelMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [

View File

@ -21,7 +21,7 @@ class OwnsOneModelMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, string|bool>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [