Skip to content

Commit fb43ce9

Browse files
committed
Apply fixes from StyleCI
1 parent 4962f76 commit fb43ce9

9 files changed

+30
-32
lines changed

src/Api/Advertisers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Advertisers extends AbstractApi
77
public function get(bool $autotraderAdvertAllowances = false)
88
{
99
return $this->_get('/advertisers', [
10-
'autotraderAdvertAllowances' => $autotraderAdvertAllowances ? 'true' : 'false'
10+
'autotraderAdvertAllowances' => $autotraderAdvertAllowances ? 'true' : 'false',
1111
]);
1212
}
13-
}
13+
}

src/Api/Builders/TrendedValuationDateRequestBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function setDate(string $date): TrendedValuationDateRequestBuilder
2323
return $this;
2424
}
2525

26-
public function getDate():? \DateTimeInterface
26+
public function getDate(): ?\DateTimeInterface
2727
{
2828
return $this->date;
2929
}
@@ -35,7 +35,7 @@ public function setOdometerReadingMiles(string $miles): TrendedValuationDateRequ
3535
return $this;
3636
}
3737

38-
public function getOdometerReadingMiles():? string
38+
public function getOdometerReadingMiles(): ?string
3939
{
4040
return $this->odometerReadingMiles;
4141
}
@@ -68,7 +68,7 @@ public function toArray(): array
6868

6969
return $this->filterPrepareOutput([
7070
'odometerReading' => $this->odometerReadingMiles,
71-
'date' => $this->date,
71+
'date' => $this->date,
7272
]);
7373
}
74-
}
74+
}

src/Api/Builders/TrendedValuationRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ public function toArray(): array
117117
'derivativeId' => $this->derivativeId,
118118
'firstRegistrationDate' => $this->firstRegistrationDate->format('Y-m-d'),
119119
],
120-
'features' => $this->features->toArray(),
121-
'condition' => $this->condition,
120+
'features' => $this->features->toArray(),
121+
'condition' => $this->condition,
122122
'valuations' => $this->valuations->toArray(),
123123
]);
124124
}
125-
}
125+
}

src/Api/Builders/TrendedValuationValuationsRequestBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public function toArray(): array
108108
$this->validate();
109109

110110
return $this->filterPrepareOutput([
111-
'markets' => $this->markets,
111+
'markets' => $this->markets,
112112
'frequency' => $this->frequency,
113-
'start' => $this->start->toArray(),
114-
'end' => $this->end->toArray(),
113+
'start' => $this->start->toArray(),
114+
'end' => $this->end->toArray(),
115115
]);
116116
}
117-
}
117+
}

src/Api/Enums/StockSearchFlags.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
class StockSearchFlags extends SharedFlags
66
{
77
/**
8-
* Response Metrics
8+
* Response Metrics.
99
*
1010
* Return advertising performance data for stock.
11-
*
1211
*/
1312
const RESPONSE_METRICS = 'responseMetrics';
1413

1514
/**
16-
* Valuations
15+
* Valuations.
1716
*
1817
* Return valuation data for stock.
1918
*/

src/Api/Enums/TrendedValuationFrequencyTypes.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44

55
class TrendedValuationFrequencyTypes extends AbstractEnum
66
{
7-
const DAY = "day";
7+
const DAY = 'day';
88

9-
const WEEK = "week";
9+
const WEEK = 'week';
1010

11-
const MONTH = "month";
11+
const MONTH = 'month';
1212

13-
const YEAR = "year";
14-
15-
}
13+
const YEAR = 'year';
14+
}

src/Api/Enums/TrendedValuationMarketTypes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class TrendedValuationMarketTypes extends AbstractEnum
66
{
7-
const RETAIL = "retail";
7+
const RETAIL = 'retail';
88

9-
const TRADE = "trade";
10-
}
9+
const TRADE = 'trade';
10+
}

src/Api/Enums/ValuationConditionTypes.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
class ValuationConditionTypes extends AbstractEnum
66
{
7-
const EXCELLENT = "EXCELLENT";
7+
const EXCELLENT = 'EXCELLENT';
88

9-
const GREAT = "GREAT";
9+
const GREAT = 'GREAT';
1010

11-
const GOOD = "GOOD";
11+
const GOOD = 'GOOD';
1212

13-
const FAIR = "FAIR";
13+
const FAIR = 'FAIR';
1414

15-
const POOR = "POOR";
16-
}
15+
const POOR = 'POOR';
16+
}

src/WebhookHashValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ public function validate(string $hash, string $timestamp, string $body): bool
1717

1818
return strcmp($hash, $computedHash) === 0;
1919
}
20-
}
20+
}

0 commit comments

Comments
 (0)