mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +00:00
Phpstan fixes
This commit is contained in:
parent
f23734464d
commit
d9c7bd0b50
|
|
@ -501,7 +501,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
*/
|
*/
|
||||||
public function inverse(int $algorithm = InverseType::GAUSS_JORDAN) : Matrix
|
public function inverse(int $algorithm = InverseType::GAUSS_JORDAN) : Matrix
|
||||||
{
|
{
|
||||||
return $this->solve(new IdentityMatrix($this->m, $this->m));
|
return $this->solve(new IdentityMatrix($this->m));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ class Complex
|
||||||
*/
|
*/
|
||||||
public function square() : Complex
|
public function square() : Complex
|
||||||
{
|
{
|
||||||
return $this->multComplex($this, $this);
|
return $this->multComplex($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function pow($value) : Complex
|
public function pow($value) : Complex
|
||||||
|
|
|
||||||
|
|
@ -175,8 +175,8 @@ class MeasureOfDispersion
|
||||||
*
|
*
|
||||||
* @param array $x Values
|
* @param array $x Values
|
||||||
* @param array $y Values
|
* @param array $y Values
|
||||||
* @param array $meanX Mean
|
* @param float $meanX Mean
|
||||||
* @param array $meanY Mean
|
* @param float $meanY Mean
|
||||||
*
|
*
|
||||||
* @return float
|
* @return float
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -121,8 +121,8 @@ class PhpCode
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function validateFileIntegrity(string $source, string $hash) : array
|
public static function validateFileIntegrity(string $source, string $hash) : bool
|
||||||
{
|
{
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Header implements \Serializable
|
||||||
/**
|
/**
|
||||||
* Packet type.
|
* Packet type.
|
||||||
*
|
*
|
||||||
* @var \phpOMS\Socket\Packets\PacketType
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $type = 0;
|
private $type = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user