@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * |
20 | 20 | */ |
21 | - public function __construct( Client $client, array $vehicle ) { |
|
21 | + public function __construct(Client $client, array $vehicle) { |
|
22 | 22 | $this->client = $client; |
23 | 23 | |
24 | 24 | $this->id = $vehicle['id']; |
@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | $this->name = $vehicle['name']; |
27 | 27 | $this->image = $vehicle['image']; |
28 | 28 | |
29 | - if ( isset($vehicle['trend']) ) { |
|
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 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -spl_autoload_register(function( $class ) { |
|
3 | +spl_autoload_register(function($class) { |
|
4 | 4 | $ns = explode('\\', $class); |
5 | 5 | $lib = array_splice($ns, 0, 2); |
6 | - if ( $lib == array('rdx', 'fuelly') ) { |
|
7 | - if ( file_exists($file = __DIR__ . '/src/' . implode('/', $ns) . '.php') ) { |
|
6 | + if ($lib == array('rdx', 'fuelly')) { |
|
7 | + if (file_exists($file = __DIR__.'/src/'.implode('/', $ns).'.php')) { |
|
8 | 8 | include $file; |
9 | 9 | } |
10 | 10 | } |