:octocat: fix PHPCS config, add Slevomat rules

This commit is contained in:
smiley
2024-07-21 14:54:15 +02:00
parent 89cdd09044
commit f32696c8a7
97 changed files with 462 additions and 654 deletions
-13
View File
@@ -31,7 +31,6 @@ final class GenericGFPoly{
/**
* @param int[] $coefficients array coefficients as ints representing elements of GF(size), arranged
* from most significant (highest-power term) coefficient to the least significant
* @param int|null $degree
*
* @throws \chillerlan\QRCode\QRCodeException if argument is null or empty, or if leading coefficient is 0 and this
* is not a constant polynomial (that is, it is not the monomial "0")
@@ -116,9 +115,6 @@ final class GenericGFPoly{
return $result;
}
/**
*
*/
public function multiply(GenericGFPoly $other):self{
if($this->isZero() || $other->isZero()){
@@ -163,9 +159,6 @@ final class GenericGFPoly{
}
/**
*
*/
public function multiplyInt(int $scalar):self{
if($scalar === 0){
@@ -207,9 +200,6 @@ final class GenericGFPoly{
return new self($product);
}
/**
*
*/
public function mod(GenericGFPoly $other):self{
if((count($this->coefficients) - count($other->coefficients)) < 0){
@@ -225,9 +215,6 @@ final class GenericGFPoly{
return (new self($this->coefficients))->mod($other);
}
/**
*
*/
public function addOrSubtract(GenericGFPoly $other):self{
if($this->isZero()){