Test Failed
Pull Request — master (#14)
by
unknown
13:32
created
src/Controller/Component/CurrencyConverterComponent.php 2 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/View/Helper/CurrencyConverterHelper.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
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 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
Please login to merge, or discard this patch.
tests/TestCase/Controller/Component/CurrencyConverterComponentTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/TestCase/View/Helper/CurrencyConverterHelperTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.