@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | echo "Vehicle:\n"; |
11 | 11 | $vehicles = $client->vehicles; |
12 | -$vehicle = $vehicles[ array_rand($vehicles) ]; |
|
12 | +$vehicle = $vehicles[array_rand($vehicles)]; |
|
13 | 13 | print_r($vehicle); |
14 | 14 | echo "\n\n"; |
15 | 15 |
@@ -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 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | echo "Vehicle:\n"; |
11 | 11 | $vehicles = $client->vehicles; |
12 | -$vehicle = $vehicles[ array_rand($vehicles) ]; |
|
12 | +$vehicle = $vehicles[array_rand($vehicles)]; |
|
13 | 13 | print_r($vehicle); |
14 | 14 | echo "\n\n"; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use rdx\fuelly\Client; |
10 | 10 | use rdx\fuelly\WebAuth; |
11 | 11 | |
12 | -function getTestClient($mail, $pass, $session) { |
|
12 | +function getTestClient( $mail, $pass, $session ) { |
|
13 | 13 | $auth = new WebAuth($mail, $pass, $session); |
14 | 14 | $input = new InputConversion('km', 'l', 'kmpl', ',', '.'); |
15 | 15 | $client = new Client($auth, $input); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | echo "Vehicle:\n"; |
11 | 11 | $vehicles = $client->vehicles; |
12 | -$vehicle = $vehicles[ array_rand($vehicles) ]; |
|
12 | +$vehicle = $vehicles[array_rand($vehicles)]; |
|
13 | 13 | print_r($vehicle); |
14 | 14 | echo "\n\n"; |
15 | 15 |
@@ -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 |