From 625ef3947eacaf98583da0918119b0432844df35 Mon Sep 17 00:00:00 2001 From: Imants Horsts Date: Sun, 16 Apr 2023 22:55:36 +0300 Subject: [PATCH] Fix ConfigTrait comments (#375) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Voříšek --- src/ConfigTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ConfigTrait.php b/src/ConfigTrait.php index 9f8a83c5..17ab16e0 100644 --- a/src/ConfigTrait.php +++ b/src/ConfigTrait.php @@ -10,7 +10,7 @@ * 1. use Trait in your APP Class * use \Atk4\Core\ConfigTrait; * 2. create config-default.php and/or config.php file and add config values like - * $config['key'] = 'value'; + * return ['key' => 'value']; * 3. call $this->readConfig(); * before using config. */ @@ -23,8 +23,8 @@ trait ConfigTrait * Read config file or files and store it in $config property. * * Supported formats: - * php - PHP file with return ['foo'] = 'bar' structure - * json - JSON file with {'foo':'bar'} structure + * php - PHP file with return ['foo' => 'bar'] structure + * json - JSON file with { 'foo': 'bar' } structure * yaml - YAML file with yaml structure * * @param string|array $files One or more filenames