@@ -2,10 +2,8 @@ |
||
| 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 | |
@@ -26,7 +26,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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']; |