Skip to content

Commit

Permalink
added note regarding auto-generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 14, 2022
1 parent 61d8e95 commit 15be429
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/RexStanUserConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ final class RexStanUserConfig {
* @param int $level
* @param array<string> $paths
* @param array<string> $includes
*
* @return void
*/
static public function save(int $level, array $paths, array $includes) {
$file = [];
$file['includes'] = $includes;
$file['parameters']['level'] = $level;
$file['parameters']['paths'] = $paths;

rex_file::put(self::userconfig(), rex_string::yamlEncode($file, 3));
$prefix = "# rexstan auto generated file - do not edit\n\n";

rex_file::put(self::userconfig(), $prefix . rex_string::yamlEncode($file, 3));
}

static public function getLevel(): int {
Expand Down

0 comments on commit 15be429

Please sign in to comment.