@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | use rdx\fuelly\FuelUp; |
| 7 | -use rdx\fuelly\UnitConversion; |
|
| 8 | 7 | use rdx\fuelly\Vehicle; |
| 9 | 8 | use rdx\fuelly\WebAuth; |
| 10 | 9 | use rdx\http\HTTP; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | foreach ( $matches as $match ) { |
| 53 | 53 | if ( in_array($match[1], array('_token', 'miles_last_fuelup', 'price_per_unit', 'amount', 'fuelup_date')) ) { |
| 54 | 54 | preg_match('#value="([^"]+)"#', $match[0], $match2); |
| 55 | - $fuelup[ $match[1] ] = $match2[1]; |
|
| 55 | + $fuelup[$match[1]] = $match2[1]; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | 'amount' => $fuelup[4][0], |
| 133 | 133 | ); |
| 134 | 134 | |
| 135 | - $fuelups[ $fuelup['id'] ] = FuelUp::createFromDetail($vehicle, $fuelup); |
|
| 135 | + $fuelups[$fuelup['id']] = FuelUp::createFromDetail($vehicle, $fuelup); |
|
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | 138 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | if ( isset($vehicle['trend']) ) { |
| 30 | 30 | $input = $client->createTrendInputConversion(); |
| 31 | 31 | |
| 32 | - foreach ( $vehicle['trend'] as $fuelup) { |
|
| 32 | + foreach ( $vehicle['trend'] as $fuelup ) { |
|
| 33 | 33 | $this->trend[] = FuelUp::createFromTrend($this, $fuelup, $input); |
| 34 | 34 | } |
| 35 | 35 | |