Skip to content

Commit 3628c30

Browse files
committed
Apply fixes from StyleCI
1 parent dab7077 commit 3628c30

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/JsonQuery.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ protected function parameterExists(string $requestParameter): bool
102102
}
103103

104104
/**
105-
* @param string $requestParameter
106-
* @param bool|null $rawArguments
105+
* @param string $requestParameter
106+
* @param bool|null $rawArguments
107107
* @return AbstractParameter
108+
*
108109
* @throws JsonQueryBuilderException
109110
*/
110111
protected function instantiateRequestParameter(string $requestParameter, ?bool $rawArguments = false): AbstractParameter

src/RequestParameters/AbstractParameter.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ abstract class AbstractParameter
1616
protected bool $rawArguments;
1717

1818
/**
19-
* AbstractParameter constructor
20-
* @param array $arguments
21-
* @param Builder $builder
22-
* @param ModelConfig $modelConfig
23-
* @param bool|null $rawArguents
19+
* AbstractParameter constructor.
20+
*
21+
* @param array $arguments
22+
* @param Builder $builder
23+
* @param ModelConfig $modelConfig
24+
* @param bool|null $rawArguents
2425
*/
2526
public function __construct(array $arguments, Builder $builder, ModelConfig $modelConfig, ?bool $rawArguments = false)
2627
{

src/RequestParameters/GroupByParameter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ protected function appendQuery(): void
1515
{
1616
if (!$this->rawArguments) {
1717
$this->builder->groupBy($this->arguments);
18-
}
19-
else {
20-
foreach($this->arguments as $arg) {
18+
} else {
19+
foreach ($this->arguments as $arg) {
2120
$this->builder->groupByRaw($arg);
2221
}
2322
}

src/RequestParameters/ReturnsParameter.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ protected function appendQuery(): void
1515
{
1616
if (!$this->rawArguments) {
1717
$this->builder->addSelect($this->arguments);
18-
}
19-
else {
20-
foreach($this->arguments as $arg) {
21-
$this->builder->selectRaw( $arg );
18+
} else {
19+
foreach ($this->arguments as $arg) {
20+
$this->builder->selectRaw($arg);
2221
}
2322
}
2423
}

0 commit comments

Comments
 (0)