Test Failed
Push — zf3-version ( c5fe3e...47d53a )
by Diego
03:23
created
module/Application/src/Controller/IndexController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 class IndexController extends AbstractActionController
14 14
 {
15 15
     /**
16
-     * @return mixed
16
+     * @return ViewModel
17 17
      */
18 18
     public function indexAction()
19 19
     {
Please login to merge, or discard this patch.
config/application.config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 return [
9 9
     // Retrieve list of modules used in this application.
10
-    'modules' => require __DIR__ . '/modules.config.php',
10
+    'modules' => require __DIR__.'/modules.config.php',
11 11
 
12 12
     // These are various options for the listeners attached to the ModuleManager
13 13
     'module_listener_options' => [
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // modules are loaded. These effectively override configuration
25 25
         // provided by modules themselves. Paths may use GLOB_BRACE notation.
26 26
         'config_glob_paths' => [
27
-            realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php',
27
+            realpath(__DIR__).'/autoload/{{,*.}global,{,*.}local}.php',
28 28
         ],
29 29
 
30 30
         // Whether or not to enable a configuration cache.
Please login to merge, or discard this patch.
config/development.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     ],
12 12
     // Configuration overrides during development mode
13 13
     'module_listener_options' => [
14
-        'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'],
14
+        'config_glob_paths' => [realpath(__DIR__).'/autoload/{,*.}{global,local}-development.php'],
15 15
         'config_cache_enabled' => false,
16 16
         'module_map_cache_enabled' => false,
17 17
     ],
Please login to merge, or discard this patch.
module/Application/src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 
14 14
     public function getConfig()
15 15
     {
16
-        return include __DIR__ . '/../config/module.config.php';
16
+        return include __DIR__.'/../config/module.config.php';
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
module/Application/config/module.config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@
 block discarded – undo
50 50
         'not_found_template'       => 'error/404',
51 51
         'exception_template'       => 'error/index',
52 52
         'template_map' => [
53
-            'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
54
-            'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
55
-            'error/404'               => __DIR__ . '/../view/error/404.phtml',
56
-            'error/index'             => __DIR__ . '/../view/error/index.phtml',
53
+            'layout/layout'           => __DIR__.'/../view/layout/layout.phtml',
54
+            'application/index/index' => __DIR__.'/../view/application/index/index.phtml',
55
+            'error/404'               => __DIR__.'/../view/error/404.phtml',
56
+            'error/index'             => __DIR__.'/../view/error/index.phtml',
57 57
         ],
58 58
         'template_path_stack' => [
59
-            __DIR__ . '/../view',
59
+            __DIR__.'/../view',
60 60
         ],
61 61
     ],
62 62
 ];
Please login to merge, or discard this patch.
module/Application/test/Controller/IndexControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $configOverrides = [];
23 23
 
24 24
         $this->setApplicationConfig(ArrayUtils::merge(
25
-            include __DIR__ . '/../../../../config/application.config.php',
25
+            include __DIR__.'/../../../../config/application.config.php',
26 26
             $configOverrides
27 27
         ));
28 28
 
Please login to merge, or discard this patch.
module/Api/src/Controller/IndicatorsReportController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $params = $this->params()->fromRoute();
28 28
 
29
-        $indicador_id = (int)$params['indicador_id'];
29
+        $indicador_id = (int) $params['indicador_id'];
30 30
 
31 31
         $response = [];
32 32
 
Please login to merge, or discard this patch.
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
 
10 8
 /**
11 9
  *
Please login to merge, or discard this patch.
module/Api/src/Controller/EvolutionReportController.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $arrValores = [];
58 58
         $arrColores = [];
59 59
 
60
-        for ($i=1990;$i<=2014;$i++) {
60
+        for ($i = 1990; $i <= 2014; $i++) {
61 61
             $arrAnos[] = $i;
62 62
         }
63 63
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         while ($sector = $arrSectores->next()) {
67 67
             $response['column_'.$column][] = $sector['nombre'];
68
-            $response['colores'][] =  $sector['color'];
68
+            $response['colores'][] = $sector['color'];
69 69
 
70 70
             foreach ($arrAnos as $ano) {
71 71
                 // ATENCION, CABECEADA
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $params = $this->params()->fromRoute();
99 99
 
100
-        $sector_id  = (int)$params['sector_id'];
100
+        $sector_id = (int) $params['sector_id'];
101 101
 
102 102
         $response = [];
103 103
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $arrValores = [];
136 136
         $arrColores = [];
137 137
 
138
-        for ($i=1990;$i<=2014;$i++) {
138
+        for ($i = 1990; $i <= 2014; $i++) {
139 139
             $arrAnos[] = $i;
140 140
         }
141 141
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         while ($sector = $arrSectores->next()) {
145 145
             $response['column_'.$column][] = $sector['nombre'];
146
-            $response['colores'][] =  $sector['color'];
146
+            $response['colores'][] = $sector['color'];
147 147
 
148 148
             foreach ($arrAnos as $ano) {
149 149
                 // ATENCION, CABECEADA
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     {
177 177
         $params = $this->params()->fromRoute();
178 178
 
179
-        $sector_id = (int)$params['sector_id'];
179
+        $sector_id = (int) $params['sector_id'];
180 180
 
181 181
         $response = [];
182 182
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $arrValores = [];
221 221
         $arrColores = [];
222 222
 
223
-        for ($i=1990;$i<=2014;$i++) {
223
+        for ($i = 1990; $i <= 2014; $i++) {
224 224
             $arrAnos[] = $i;
225 225
         }
226 226
 
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $params = $this->params()->fromRoute();
265 265
 
266
-        $sector_id = (int)$params['sector_id'];
267
-        $subactividad_id = (int)$params['subactividad_id'];
266
+        $sector_id = (int) $params['sector_id'];
267
+        $subactividad_id = (int) $params['subactividad_id'];
268 268
 
269 269
         $response = [];
270 270
 
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         $arrColores = array();
315 315
 
316 316
 
317
-        for ($i=1990;$i<=2014;$i++) {
317
+        for ($i = 1990; $i <= 2014; $i++) {
318 318
             $arrAnos[] = $i;
319 319
         }
320 320
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 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 7
 use Api\Helper\Utils;
Please login to merge, or discard this patch.
module/Api/src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 
14 14
     public function getConfig()
15 15
     {
16
-        return include __DIR__ . '/../config/module.config.php';
16
+        return include __DIR__.'/../config/module.config.php';
17 17
     }
18 18
 }
Please login to merge, or discard this patch.