Test Failed
Push — zf3-version ( b5b4e1...3457ba )
by Diego
04:58
created
module/Api/src/Controller/IndicatorsReportController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Api\Controller;
4 4
 
5
-use Zend\Db\Adapter\AdapterInterface;
6 5
 use Zend\Mvc\Controller\AbstractRestfulController;
7 6
 use Zend\View\Model\JsonModel;
8
-use Api\Helper\Utils;
9 7
 use Api\Entity\Indicator;
10 8
 use Api\Entity\IndicatorValue;
11 9
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     }
27 27
     public function getIndicatorAction()
28 28
     {
29
-        $indicator = (int)$this->params()->fromRoute('indicator');
29
+        $indicator = (int) $this->params()->fromRoute('indicator');
30 30
 
31 31
         $response = [];
32 32
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $arrIndicador = $this->entityManager->getRepository(Indicator::class)
35 35
             ->getIndicator($indicator);
36 36
 
37
-        foreach($arrIndicador as $indicador) {
37
+        foreach ($arrIndicador as $indicador) {
38 38
             $response['indicador'] = $indicador;
39 39
             break;
40 40
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $arrAnos = [];
46 46
         $arrValor = [];
47 47
 
48
-        foreach($arrValores as $a) {
48
+        foreach ($arrValores as $a) {
49 49
             // SI EL NOMBRE TIENE UNA COMA LO TENGO QUE PONER ENTRE COMILLAS
50 50
             $arrAnos[]  = $a['year'];
51 51
             $arrValor[] = $a['value'];
Please login to merge, or discard this patch.