Skip to content

Commit

Permalink
Fix PHP CS fixer warnings
Browse files Browse the repository at this point in the history
anvit committed Aug 8, 2024
1 parent 3c77e88 commit b30e60b
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions plugins/arSolrPlugin/lib/query/arSolrRangeQuery.class.php
Original file line number Diff line number Diff line change
@@ -42,8 +42,6 @@ class arSolrRangeQuery extends arSolrAbstractQuery

/**
* Array of Query Params.
*
* @var array
*/
protected array $query = [];

11 changes: 6 additions & 5 deletions test/phpunit/arSolrPlugin/lib/query/ArSolrRangeQueryTest.php
Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ public function createSolrRangeQueryProvider()
* @param string $field
* @param array $range
* @param string $type
* @param mixed $result
*/
public function testCreateSolrRangeQuery($field, $range, $result)
{
@@ -144,7 +145,7 @@ public function getQueryParamsExceptionProvider(): array
return [
'Test range query with NULL field' => [
'type' => 'test_type',
'field' => NULL,
'field' => null,
'range' => ['lte' => 'test_date', 'gte' => 'test_date'],
'expectedException' => '\Exception',
'expectedExceptionMessage' => 'Field is not set.',
@@ -163,10 +164,10 @@ public function getQueryParamsExceptionProvider(): array
* @dataProvider getQueryParamsExceptionProvider
*
* @param string $type
* @param array $field
* @param mixed $range
* @param mixed $expectedException
* @param mixed $expectedExceptionMessage
* @param array $field
* @param mixed $range
* @param mixed $expectedException
* @param mixed $expectedExceptionMessage
*/
public function testGetQueryParamsException($type, $field, $range, $expectedException, $expectedExceptionMessage)
{

0 comments on commit b30e60b

Please sign in to comment.