Skip to content

Commit f5127bf

Browse files
committed
CS rules
1 parent a0e98a2 commit f5127bf

File tree

127 files changed

+509
-509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+509
-509
lines changed

src/Aggregation/AggregationCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class AggregationCollection implements LeafAggregationInterface
1818

1919

2020
public function __construct(
21-
?\Spameri\ElasticQuery\Filter\FilterCollection $filter = NULL
22-
, \Spameri\ElasticQuery\Aggregation\LeafAggregationCollection ... $aggregations
21+
\Spameri\ElasticQuery\Filter\FilterCollection|null $filter = NULL
22+
, \Spameri\ElasticQuery\Aggregation\LeafAggregationCollection ... $aggregations,
2323
)
2424
{
2525
if ( ! $filter) {
@@ -44,7 +44,7 @@ public function filter(): \Spameri\ElasticQuery\Filter\FilterCollection
4444

4545

4646
public function add(
47-
LeafAggregationCollection $leafAggregation
47+
LeafAggregationCollection $leafAggregation,
4848
): void
4949
{
5050
$this->aggregations[$leafAggregation->key()] = $leafAggregation;
@@ -58,7 +58,7 @@ public function keys(): array
5858

5959

6060
public function isKey(
61-
string $key
61+
string $key,
6262
): bool
6363
{
6464
return \array_key_exists($key, \array_map('\strval', \array_keys($this->aggregations)));

src/Aggregation/Avg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Avg implements \Spameri\ElasticQuery\Aggregation\LeafAggregationInterface
1212

1313

1414
public function __construct(
15-
string $field
15+
string $field,
1616
)
1717
{
1818
$this->field = $field;

src/Aggregation/Histogram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Histogram implements LeafAggregationInterface
1616

1717
public function __construct(
1818
string $field
19-
, int $interval
19+
, int $interval,
2020
)
2121
{
2222
$this->field = $field;

src/Aggregation/LeafAggregationCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class LeafAggregationCollection implements LeafAggregationInterface, \IteratorAg
2424

2525
public function __construct(
2626
string $name
27-
, ?\Spameri\ElasticQuery\Filter\FilterCollection $filter
28-
, \Spameri\ElasticQuery\Aggregation\LeafAggregationInterface ... $aggregations
27+
, \Spameri\ElasticQuery\Filter\FilterCollection|null $filter
28+
, \Spameri\ElasticQuery\Aggregation\LeafAggregationInterface ... $aggregations,
2929
)
3030
{
3131
if ( ! $filter) {

src/Aggregation/Max.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Max implements \Spameri\ElasticQuery\Aggregation\LeafAggregationInterface
99

1010

1111
public function __construct(
12-
string $field
12+
string $field,
1313
)
1414
{
1515
$this->field = $field;

src/Aggregation/Min.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Min implements \Spameri\ElasticQuery\Aggregation\LeafAggregationInterface
99

1010

1111
public function __construct(
12-
string $field
12+
string $field,
1313
) {
1414
$this->field = $field;
1515
}

src/Aggregation/Nested.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Nested implements \Spameri\ElasticQuery\Aggregation\LeafAggregationInterfa
99

1010

1111
public function __construct(
12-
string $path
12+
string $path,
1313
) {
1414
$this->path = $path;
1515
}

src/Aggregation/Range.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Range implements LeafAggregationInterface
2828
public function __construct(
2929
string $field
3030
, bool $keyed = FALSE
31-
, \Spameri\ElasticQuery\Aggregation\RangeValueCollection $rangeValueCollection = NULL
31+
, \Spameri\ElasticQuery\Aggregation\RangeValueCollection $rangeValueCollection = NULL,
3232
)
3333
{
3434
$this->field = $field;

src/Aggregation/RangeValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
$from,
3232
$to,
3333
bool $fromEqual = TRUE,
34-
bool $toEqual = TRUE
34+
bool $toEqual = TRUE,
3535
)
3636
{
3737
$this->key = $key;

src/Aggregation/RangeValueCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class RangeValueCollection implements \IteratorAggregate
1313

1414

1515
public function __construct(
16-
RangeValue ... $collection
16+
RangeValue ... $collection,
1717
)
1818
{
1919
$this->collection = $collection;
@@ -27,7 +27,7 @@ public function getIterator(): \ArrayIterator
2727

2828

2929
public function add(
30-
\Spameri\ElasticQuery\Aggregation\RangeValue $rangeValue
30+
\Spameri\ElasticQuery\Aggregation\RangeValue $rangeValue,
3131
): void
3232
{
3333
$this->collection[] = $rangeValue;

0 commit comments

Comments
 (0)