diff --git a/config/module.config.php b/config/module.config.php index 6e8cc17..1a4cbed 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -9,10 +9,10 @@ namespace PolderKnowledge\PhpSettingsModule; -return array( - 'phpSettings' => array( - 'error_reporting' => 0, +return [ + 'phpSettings' => [ + // defaults for production environment 'display_errors' => 0, 'display_startup_errors' => 0, - ), -); + ], +]; diff --git a/src/Module.php b/src/Module.php index e2e9db5..e49acaa 100644 --- a/src/Module.php +++ b/src/Module.php @@ -26,13 +26,13 @@ class Module */ public function getAutoloaderConfig() { - return array( - 'Zend\Loader\StandardAutoloader' => array( - 'namespaces' => array( + return [ + 'Zend\Loader\StandardAutoloader' => [ + 'namespaces' => [ __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, - ), - ), - ); + ], + ], + ]; } /** @@ -56,7 +56,7 @@ public function init(ModuleManager $moduleManager) $sharedManager->attach( Application::class, MvcEvent::EVENT_BOOTSTRAP, - array(new PhpSettings, 'onBootstrap'), + [new PhpSettings, 'onBootstrap'], PHP_INT_MAX ); }