automated fixes

This commit is contained in:
Dennis Eichhorn 2023-09-21 01:41:56 +00:00
parent 177d7cf2b5
commit c9a03bfff3
7 changed files with 41 additions and 42 deletions

View File

@ -540,7 +540,7 @@ class Builder extends BuilderAbstract
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function where(string | array | Builder $columns, string | array $operator = null, mixed $values = null, string | array $boolean = 'and') : self public function where(string | array | self $columns, string | array $operator = null, mixed $values = null, string | array $boolean = 'and') : self
{ {
if (!\is_array($columns)) { if (!\is_array($columns)) {
$columns = [$columns]; $columns = [$columns];
@ -595,7 +595,7 @@ class Builder extends BuilderAbstract
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function orWhere(string | array | Builder $where, string | array $operator = null, mixed $values = null) : self public function orWhere(string | array | self $where, string | array $operator = null, mixed $values = null) : self
{ {
return $this->where($where, $operator, $values, 'or'); return $this->where($where, $operator, $values, 'or');
} }

View File

@ -16,7 +16,6 @@ namespace phpOMS\Message\Http;
use phpOMS\Localization\ISO3166TwoEnum; use phpOMS\Localization\ISO3166TwoEnum;
use phpOMS\Localization\ISO639x1Enum; use phpOMS\Localization\ISO639x1Enum;
use phpOMS\Message\Http\HttpRequest;
/** /**
* Request statistic class. * Request statistic class.

View File

@ -39,7 +39,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1649, 'elo' => 1649,
'rd' => 186, 'rd' => 186,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1500, 200, 0.06, [1800], [1.0], [150]), $rating->rating(1500, 200, 0.06, [1800], [1.0], [150]),
0.0001 0.0001
@ -49,7 +49,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1717, 'elo' => 1717,
'rd' => 144, 'rd' => 144,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1800, 150, 0.06, [1500], [0.0], [200]), $rating->rating(1800, 150, 0.06, [1500], [0.0], [200]),
0.0001 0.0001
@ -60,7 +60,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1638, 'elo' => 1638,
'rd' => 187, 'rd' => 187,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1500, 200, 0.06, [1800], [1.0], [200]), $rating->rating(1500, 200, 0.06, [1800], [1.0], [200]),
0.0001 0.0001
@ -70,7 +70,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1661, 'elo' => 1661,
'rd' => 187, 'rd' => 187,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1800, 200, 0.06, [1500], [0.0], [200]), $rating->rating(1800, 200, 0.06, [1500], [0.0], [200]),
0.0001 0.0001
@ -81,7 +81,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1621, 'elo' => 1621,
'rd' => 177, 'rd' => 177,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1550, 200, 0.06, [1500], [1.0], [150]), $rating->rating(1550, 200, 0.06, [1500], [1.0], [150]),
0.0001 0.0001
@ -91,7 +91,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1428, 'elo' => 1428,
'rd' => 177, 'rd' => 177,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1500, 200, 0.06, [1550], [0.0], [150]), $rating->rating(1500, 200, 0.06, [1550], [0.0], [150]),
0.0001 0.0001
@ -102,7 +102,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1539, 'elo' => 1539,
'rd' => 177, 'rd' => 177,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1550, 200, 0.06, [1500], [0.5], [150]), $rating->rating(1550, 200, 0.06, [1500], [0.5], [150]),
0.0001 0.0001
@ -112,7 +112,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1510, 'elo' => 1510,
'rd' => 177, 'rd' => 177,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1500, 200, 0.06, [1550], [0.5], [150]), $rating->rating(1500, 200, 0.06, [1550], [0.5], [150]),
0.0001 0.0001
@ -123,7 +123,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 2401, 'elo' => 2401,
'rd' => 199, 'rd' => 199,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(2400, 200, 0.06, [1500], [1.0], [150]), $rating->rating(2400, 200, 0.06, [1500], [1.0], [150]),
0.0001 0.0001
@ -133,7 +133,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1498, 'elo' => 1498,
'rd' => 199, 'rd' => 199,
'vol' => 0.06 'vol' => 0.06,
], ],
$rating->rating(1500, 200, 0.06, [2400], [0.0], [150]), $rating->rating(1500, 200, 0.06, [2400], [0.0], [150]),
0.0001 0.0001
@ -153,7 +153,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
[ [
'elo' => 1464, 'elo' => 1464,
'rd' => 151, 'rd' => 151,
'vol' => 0.059999 'vol' => 0.059999,
], ],
$rating->rating(1500, 200, 0.06, [1400, 1550, 1700], [1.0, 0.0, 0.0], [30, 100, 300]), $rating->rating(1500, 200, 0.06, [1400, 1550, 1700], [1.0, 0.0, 0.0], [30, 100, 300]),
0.0001 0.0001