diff --git a/Math/Number/Complex.php b/Math/Number/Complex.php index 30d4672d6..4da33fd24 100644 --- a/Math/Number/Complex.php +++ b/Math/Number/Complex.php @@ -146,6 +146,17 @@ final class Complex return $this->multComplex($this); } + /** + * Pow opperator + * + * @param mixed $value Value to pow + * + * @return Complex + * + * @throws \InvalidArgumentException This exception is thrown if the argument has an invalid type + * + * @since 1.0.0 + */ public function pow($value) : self { if (\is_int($value)) { @@ -196,7 +207,7 @@ final class Complex * * @return Complex * - * @throws \InvalidArgumentException + * @throws \InvalidArgumentException This exception is thrown if the argument has an invalid type * * @since 1.0.0 */ @@ -246,7 +257,7 @@ final class Complex * * @return Complex * - * @throws \InvalidArgumentException + * @throws \InvalidArgumentException This exception is thrown if the argument has an invalid type * * @since 1.0.0 */ @@ -296,7 +307,7 @@ final class Complex * * @return Complex * - * @throws \InvalidArgumentException + * @throws \InvalidArgumentException This exception is thrown if the argument has an invalid type * * @since 1.0.0 */ @@ -349,7 +360,7 @@ final class Complex * * @return Complex * - * @throws \InvalidArgumentException + * @throws \InvalidArgumentException This exception is thrown if the argument has an invalid type * * @since 1.0.0 */ diff --git a/Module/InstallerAbstract.php b/Module/InstallerAbstract.php index 38696292a..698380c38 100644 --- a/Module/InstallerAbstract.php +++ b/Module/InstallerAbstract.php @@ -255,7 +255,8 @@ abstract class InstallerAbstract * * @return void * - * @throws PermissionException + * @throws PathException This exception is thrown if the hook file doesn't exist + * @throws PermissionException This exception is thrown if the hook file couldn't be updated (no write permission) * * @since 1.0.0 */ diff --git a/Stdlib/Queue/PriorityQueue.php b/Stdlib/Queue/PriorityQueue.php index a03d653ad..5b0cb61d7 100644 --- a/Stdlib/Queue/PriorityQueue.php +++ b/Stdlib/Queue/PriorityQueue.php @@ -45,6 +45,8 @@ class PriorityQueue implements \Countable, \Serializable /** * Constructor. * + * @throws InvalidEnumValue This exception is thrown if the priority mode is invalid + * * @since 1.0.0 */ public function __construct(int $type = PriorityMode::FIFO) diff --git a/Utils/ArrayUtils.php b/Utils/ArrayUtils.php index e4213d2c5..7d063247c 100644 --- a/Utils/ArrayUtils.php +++ b/Utils/ArrayUtils.php @@ -85,6 +85,8 @@ final class ArrayUtils * * @return array * + * @throws \Exception This exception is thrown if the path is corrupted + * * @since 1.0.0 */ public static function setArray(string $path, array $data, $value, string $delim = '/', bool $overwrite = false) : array @@ -124,6 +126,8 @@ final class ArrayUtils * * @return mixed * + * @throws \Exception This exception is thrown if the path is corrupted + * * @since 1.0.0 */ public static function getArray(string $path, array $data, string $delim = '/') diff --git a/Utils/Converter/Numeric.php b/Utils/Converter/Numeric.php index 6b9c34195..b05dec915 100644 --- a/Utils/Converter/Numeric.php +++ b/Utils/Converter/Numeric.php @@ -56,6 +56,8 @@ class Numeric * * @return string * + * @throws \Exception This exception is thrown if one of the bases or the number is invalid + * * @since 1.0.0 */ public static function convertBase(string $numberInput, string $fromBaseInput, string $toBaseInput) : string diff --git a/Utils/Git/Git.php b/Utils/Git/Git.php index b7542d7a6..e582412fa 100644 --- a/Utils/Git/Git.php +++ b/Utils/Git/Git.php @@ -76,7 +76,7 @@ class Git * * @return void * - * @throws PathException This exceptio is thrown if the binary path doesn't exist + * @throws PathException This exception is thrown if the binary path doesn't exist * * @since 1.0.0 */ diff --git a/Utils/StringUtils.php b/Utils/StringUtils.php index f50c16b72..bc0292484 100644 --- a/Utils/StringUtils.php +++ b/Utils/StringUtils.php @@ -515,6 +515,8 @@ final class StringUtils * * @return array * + * @throws \Exception This exception is thrown if one of the parameters is empty + * * @since 1.0.0 */ private static function computeLCSDiff(array $from, array $to) : array