Completed
Push — master ( ad017e...43c479 )
by Rudie
02:43
created
lib/fuelly/src/UnitConversion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	/**
14 14
 	 * Dependency constructor
15 15
 	 */
16
-	public function __construct( $distance, $volume, $mileage, $decimals, $thousands ) {
16
+	public function __construct($distance, $volume, $mileage, $decimals, $thousands) {
17 17
 		$this->distance = $distance;
18 18
 		$this->volume = $volume;
19 19
 		$this->mileage = $mileage;
Please login to merge, or discard this patch.
lib/fuelly/src/InputConversion.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 	/**
13 13
 	 *
14 14
 	 */
15
-	public function convertNumber( $number ) {
15
+	public function convertNumber($number) {
16 16
 		// 1.000,45 => 1000,45
17 17
 		$number = str_replace($this->thousands, '', $number);
18 18
 
19 19
 		// 1000,45 => 1000.45
20
-		if ( $this->decimals != '.' ) {
20
+		if ($this->decimals != '.') {
21 21
 			$number = str_replace($this->decimals, '.', $number);
22 22
 		}
23 23
 
@@ -27,21 +27,21 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 *
29 29
 	 */
30
-	public function convertDistance( $distance ) {
30
+	public function convertDistance($distance) {
31 31
 		return new Length($distance, $this->distance);
32 32
 	}
33 33
 
34 34
 	/**
35 35
 	 *
36 36
 	 */
37
-	public function convertVolume( $volume ) {
37
+	public function convertVolume($volume) {
38 38
 		return new Volume($volume, $this->volume);
39 39
 	}
40 40
 
41 41
 	/**
42 42
 	 *
43 43
 	 */
44
-	public function convertMileage( $mileage ) {
44
+	public function convertMileage($mileage) {
45 45
 		return new Mileage($mileage, $this->mileage);
46 46
 	}
47 47
 
Please login to merge, or discard this patch.
test.edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 $client = getTestClient(FUELLY_TEST_MAIL, FUELLY_TEST_PASS, @$_GET['session']);
6 6
 
7 7
 $client->ensureSession();
8
-echo $client->auth->session . "\n\n\n";
8
+echo $client->auth->session."\n\n\n";
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
 
Please login to merge, or discard this patch.