mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
code fixes
This commit is contained in:
parent
aae3cc3a06
commit
e1ef45da2a
|
|
@ -246,7 +246,7 @@ class Account implements ArrayableInterface, \JsonSerializable
|
|||
*
|
||||
* The method accepts an array of permissions. All existing permissions are replaced.
|
||||
*
|
||||
* @param PermissionAbstract[] $permissions
|
||||
* @param PermissionAbstract[] $permissions Account permissions
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
|
|
@ -306,13 +306,13 @@ class Account implements ArrayableInterface, \JsonSerializable
|
|||
*
|
||||
* Checks if the account has a permission defined
|
||||
*
|
||||
* @param int $permission Permission to check
|
||||
* @param int $unit Unit Unit to check (null if all are acceptable)
|
||||
* @param string $app App App to check (null if all are acceptable)
|
||||
* @param int $module Module Module to check (null if all are acceptable)
|
||||
* @param int $type Type (e.g. customer) (null if all are acceptable)
|
||||
* @param int $element (e.g. customer id) (null if all are acceptable)
|
||||
* @param int $component (e.g. address) (null if all are acceptable)
|
||||
* @param int $permission Permission to check
|
||||
* @param int $unit Unit Unit to check (null if all are acceptable)
|
||||
* @param string $app App App to check (null if all are acceptable)
|
||||
* @param int $module Module Module to check (null if all are acceptable)
|
||||
* @param int $type Type (e.g. customer) (null if all are acceptable)
|
||||
* @param int $element (e.g. customer id) (null if all are acceptable)
|
||||
* @param int $component (e.g. address) (null if all are acceptable)
|
||||
*
|
||||
* @return bool Returns true if the account has the permission, false otherwise
|
||||
*
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class AccountManager implements \Countable
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param SessionInterface $session Session
|
||||
* @param SessionInterface $session Session
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ class ApplicationAbstract
|
|||
/**
|
||||
* Set values
|
||||
*
|
||||
* @param string $name Variable name
|
||||
* @param string $name Variable name
|
||||
* @param string $value Variable value
|
||||
*
|
||||
* @return void
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class Auth
|
|||
/**
|
||||
* Authenticates user.
|
||||
*
|
||||
* @param SessionInterface $session Session
|
||||
* @param SessionInterface $session Session
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
|
|
@ -57,7 +57,7 @@ class Auth
|
|||
/**
|
||||
* Logout the given user.
|
||||
*
|
||||
* @param SessionInterface $session Session
|
||||
* @param SessionInterface $session Session
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ class AutoloadException extends \RuntimeException
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $message Exception message
|
||||
* @param int $code Exception code
|
||||
* @param string $message Exception message
|
||||
* @param int $code Exception code
|
||||
* @param \Exception $previous Previous exception
|
||||
*
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -198,9 +198,9 @@ class Error
|
|||
/**
|
||||
* Get R Bar Squared
|
||||
*
|
||||
* @param float $R R
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
* @param float $R R
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
|
|
@ -214,9 +214,9 @@ class Error
|
|||
/**
|
||||
* Get Aike's information criterion (AIC)
|
||||
*
|
||||
* @param float $sse SSE
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
* @param float $sse SSE
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
|
|
@ -232,9 +232,9 @@ class Error
|
|||
*
|
||||
* Correction for small amount of observations
|
||||
*
|
||||
* @param float $aic AIC
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
* @param float $aic AIC
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
|
|
@ -248,9 +248,9 @@ class Error
|
|||
/**
|
||||
* Get Bayesian information criterion (BIC)
|
||||
*
|
||||
* @param float $sse SSE
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
* @param float $sse SSE
|
||||
* @param int $observations Amount of observations
|
||||
* @param int $predictors Amount of predictors
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class Router
|
|||
* Route request.
|
||||
*
|
||||
* @param string|RequestAbstract $request Request to route
|
||||
* @param int $verb Route verb
|
||||
* @param int $verb Route verb
|
||||
*
|
||||
* @return array[]
|
||||
*
|
||||
|
|
|
|||
|
|
@ -156,13 +156,13 @@ class StringCompare
|
|||
/**
|
||||
* Calculate fuzzy match score.
|
||||
*
|
||||
* @param string $s1 Word 1
|
||||
* @param string $s2 Word 2
|
||||
* @param float $phraseWeight Weighting for phrase score
|
||||
* @param float $wordWeight Weighting for word score
|
||||
* @param float $minWeight Min weight
|
||||
* @param float $maxWeight Max weight
|
||||
* @param float $lengthWeight Weighting for word length
|
||||
* @param string $s1 Word 1
|
||||
* @param string $s2 Word 2
|
||||
* @param float $phraseWeight Weighting for phrase score
|
||||
* @param float $wordWeight Weighting for word score
|
||||
* @param float $minWeight Min weight
|
||||
* @param float $maxWeight Max weight
|
||||
* @param float $lengthWeight Weighting for word length
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ class TestUtils
|
|||
/**
|
||||
* Set private object member
|
||||
*
|
||||
* @param object|string $obj Object to modify
|
||||
* @param string $name Member name to modify
|
||||
* @param mixed $value Value to set
|
||||
* @param object|string $obj Object to modify
|
||||
* @param string $name Member name to modify
|
||||
* @param mixed $value Value to set
|
||||
*
|
||||
* @return bool The function returns true after setting the member
|
||||
*
|
||||
|
|
@ -63,8 +63,8 @@ class TestUtils
|
|||
/**
|
||||
* Get private object member
|
||||
*
|
||||
* @param object|string $obj Object to read
|
||||
* @param string $name Member name to read
|
||||
* @param object|string $obj Object to read
|
||||
* @param string $name Member name to read
|
||||
*
|
||||
* @return mixed Returns the member variable value
|
||||
*
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ trait ModelValidationTrait
|
|||
*
|
||||
* @param mixed $var Variable to set
|
||||
* @param string $name Name of the variable
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception
|
||||
*
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ class View extends ViewAbstract
|
|||
/**
|
||||
* Get translation.
|
||||
*
|
||||
* @param mixed $translation Text
|
||||
* @param mixed $translation Text
|
||||
* @param string $module Module name
|
||||
* @param string $theme Theme name
|
||||
*
|
||||
|
|
@ -204,7 +204,7 @@ class View extends ViewAbstract
|
|||
/**
|
||||
* Get translation.
|
||||
*
|
||||
* @param mixed $translation Text
|
||||
* @param mixed $translation Text
|
||||
* @param string $module Module name
|
||||
* @param string $theme Theme name
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user