@@ -7,7 +7,7 @@ discard block |
||
| 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 |
||
| 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. |
@@ -11,7 +11,7 @@ |
||
| 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 | ], |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | // Decline static file requests back to the PHP built-in webserver |
| 13 | 13 | if (php_sapi_name() === 'cli-server') { |
| 14 | - $path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
| 14 | + $path = realpath(__DIR__.parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
| 15 | 15 | if (__FILE__ !== $path && is_file($path)) { |
| 16 | 16 | return false; |
| 17 | 17 | } |
@@ -19,9 +19,9 @@ discard block |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // Composer autoloading |
| 22 | -include __DIR__ . '/../vendor/autoload.php'; |
|
| 22 | +include __DIR__.'/../vendor/autoload.php'; |
|
| 23 | 23 | |
| 24 | -if (! class_exists(Application::class)) { |
|
| 24 | +if (!class_exists(Application::class)) { |
|
| 25 | 25 | throw new RuntimeException( |
| 26 | 26 | "Unable to load application.\n" |
| 27 | 27 | . "- Type `composer install` if you are developing locally.\n" |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | // Retrieve configuration |
| 34 | -$appConfig = require __DIR__ . '/../config/application.config.php'; |
|
| 35 | -if (file_exists(__DIR__ . '/../config/development.config.php')) { |
|
| 36 | - $appConfig = ArrayUtils::merge($appConfig, require __DIR__ . '/../config/development.config.php'); |
|
| 34 | +$appConfig = require __DIR__.'/../config/application.config.php'; |
|
| 35 | +if (file_exists(__DIR__.'/../config/development.config.php')) { |
|
| 36 | + $appConfig = ArrayUtils::merge($appConfig, require __DIR__.'/../config/development.config.php'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | // Run the application! |
@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | -return array ( |
|
| 2 | +return array( |
|
| 3 | 3 | ); |
| 4 | 4 | \ No newline at end of file |
@@ -13,6 +13,6 @@ |
||
| 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 | } |
@@ -50,13 +50,13 @@ |
||
| 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 | ]; |
@@ -22,7 +22,7 @@ |
||
| 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 | |
@@ -26,7 +26,7 @@ |
||
| 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 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | $params = $this->params()->fromRoute(); |
| 31 | 31 | |
| 32 | - $ano = (int)$params['ano']; |
|
| 32 | + $ano = (int) $params['ano']; |
|
| 33 | 33 | |
| 34 | 34 | $response = []; |
| 35 | 35 | |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | $response = []; |
| 76 | 76 | $arrGraphData = []; |
| 77 | 77 | |
| 78 | - $ano = (int)$params['ano']; |
|
| 79 | - $sector_id = (int)$params['sector_id']; |
|
| 78 | + $ano = (int) $params['ano']; |
|
| 79 | + $sector_id = (int) $params['sector_id']; |
|
| 80 | 80 | |
| 81 | 81 | $sql = 'SELECT SUM(e.valor) as total, a.id, a.nombre |
| 82 | 82 | FROM emision e |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | { |
| 229 | 229 | $params = $this->params()->fromRoute(); |
| 230 | 230 | |
| 231 | - $ano = (int)$params['ano']; |
|
| 231 | + $ano = (int) $params['ano']; |
|
| 232 | 232 | |
| 233 | 233 | $response = []; |
| 234 | 234 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | { |
| 261 | 261 | $params = $this->params()->fromRoute(); |
| 262 | 262 | |
| 263 | - $ano = (int)$params['ano']; |
|
| 263 | + $ano = (int) $params['ano']; |
|
| 264 | 264 | |
| 265 | 265 | $response = []; |
| 266 | 266 | |