Completed
Branch master (082d55)
by Rudie
02:26
created
src/Client.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -328,6 +328,7 @@
 block discarded – undo
328 328
 
329 329
 	/**
330 330
 	 * HTTP POST
331
+	 * @param string $uri
331 332
 	 */
332 333
 	public function _post( $uri, $options = array() ) {
333 334
 		return $this->_http($uri, $options + array('method' => 'POST'));
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Vehicle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.