mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-16 16:55:28 +00:00
:octocat: fix PHPCS config, add Slevomat rules
This commit is contained in:
@@ -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()){
|
||||
|
||||
Reference in New Issue
Block a user