@@ -13,7 +13,7 @@ |
||
| 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; |
@@ -12,12 +12,12 @@ discard block |
||
| 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 |
||
| 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 | |