@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * @param float|string $amount the amount to convert. |
| 62 | 62 | * @param string $from currency to convert from |
| 63 | 63 | * @param string $to currency to convert to |
| 64 | - * @return float $amount converted |
|
| 64 | + * @return string $amount converted |
|
| 65 | 65 | */ |
| 66 | 66 | public function convert($amount, $from, $to) |
| 67 | 67 | { |
@@ -128,7 +128,8 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Format float number using configuration |
| 130 | 130 | * |
| 131 | - * @return floatval |
|
| 131 | + * @param double $number |
|
| 132 | + * @return string |
|
| 132 | 133 | */ |
| 133 | 134 | private function _formatConvert($number) |
| 134 | 135 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace CurrencyConverter\Controller\Component; |
| 4 | 4 | |
| 5 | 5 | use Cake\Controller\Component; |
| 6 | -use Cake\Datasource\ConnectionManager; |
|
| 7 | 6 | use Cake\ORM\TableRegistry; |
| 8 | 7 | use Cake\I18n\Time; |
| 9 | 8 | |
@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Convert method take an amount as first parameter and convert it using $from currency and $to currency. |
| 50 | 50 | * |
| 51 | - * @param float|string $amount the amount to convert. |
|
| 51 | + * @param double $amount the amount to convert. |
|
| 52 | 52 | * @param string $from currency to convert from |
| 53 | 53 | * @param string $to currency to convert to |
| 54 | - * @return float $amount converted |
|
| 54 | + * @return string $amount converted |
|
| 55 | 55 | */ |
| 56 | 56 | public function convert($amount, $from, $to) |
| 57 | 57 | { |
@@ -118,7 +118,8 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Format float number using configuration |
| 120 | 120 | * |
| 121 | - * @return floatval |
|
| 121 | + * @param double $number |
|
| 122 | + * @return string |
|
| 122 | 123 | */ |
| 123 | 124 | private function _formatConvert($number) |
| 124 | 125 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Cake\View\Helper; |
| 6 | 6 | use Cake\ORM\TableRegistry; |
| 7 | -use Cake\I18n\Time; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * @property \Cake\View\Helper\HtmlHelper $Html |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use CurrencyConverter\Controller\Component\CurrencyConverterComponent; |
| 6 | 6 | use Cake\Controller\Controller; |
| 7 | 7 | use Cake\Controller\ComponentRegistry; |
| 8 | -use Cake\Event\Event; |
|
| 9 | 8 | use Cake\Http\ServerRequest; |
| 10 | 9 | use Cake\Http\Response; |
| 11 | 10 | use Cake\TestSuite\TestCase; |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Cake\Controller\Controller; |
| 15 | 15 | use Cake\Network\Request; |
| 16 | -use Cake\Routing\Router; |
|
| 17 | 16 | use Cake\TestSuite\TestCase; |
| 18 | 17 | use Cake\View\View; |
| 19 | 18 | use CurrencyConverter\View\Helper\CurrencyConverterHelper; |