]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/VFSTrait.php
DE translation updates THX FOSS+
[friendica.git] / tests / Util / VFSTrait.php
index 96f385b3bad3813bb2a5f29bc56483e50611b45b..53d37f85c81be96443acc7765af5786c78a1a338 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -43,6 +43,7 @@ trait VFSTrait
                        'static' => [],
                        'test' => [],
                        'logs' => [],
+                       'config2' => [],
                ];
 
                // create a virtual directory and copy all needed files and folders to it
@@ -58,9 +59,9 @@ trait VFSTrait
         * Copying a config file from the file system to the Virtual File System
         *
         * @param string $filename The filename of the config file
-        * @param bool $static True, if the folder `static` instead of `config` should be used
+        * @param bool   $static   True, if the folder `static` instead of `config` should be used
         */
-       protected function setConfigFile($filename, bool $static = false)
+       protected function setConfigFile(string $filename, bool $static = false)
        {
                $file = dirname(__DIR__) . DIRECTORY_SEPARATOR .
                        '..' . DIRECTORY_SEPARATOR .
@@ -78,9 +79,9 @@ trait VFSTrait
         * Delets a config file from the Virtual File System
         *
         * @param string $filename The filename of the config file
-        * @param bool $static True, if the folder `static` instead of `config` should be used
+        * @param bool   $static   True, if the folder `static` instead of `config` should be used
         */
-       protected function delConfigFile($filename, bool $static = false)
+       protected function delConfigFile(string $filename, bool $static = false)
        {
                if ($this->root->hasChild(($static ? 'static' : 'config') . '/' . $filename)) {
                        $this->root->getChild(($static ? 'static' : 'config'))->removeChild($filename);