mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Change visibility to private
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
fabd3e7ba1
commit
3b7ac0c94d
2 changed files with 2 additions and 2 deletions
|
|
@ -438,7 +438,7 @@ class Setup {
|
|||
* @return string
|
||||
* @throws InvalidArgumentException when invalid value for overwrite.cli.url
|
||||
*/
|
||||
public static function findWebRoot(SystemConfig $config): string {
|
||||
private static function findWebRoot(SystemConfig $config): string {
|
||||
// For CLI read the value from overwrite.cli.url
|
||||
if (\OC::$CLI) {
|
||||
$webRoot = $config->getValue('overwrite.cli.url', '');
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class SetupTest extends \Test\TestCase {
|
|||
\OC::$CLI = true;
|
||||
|
||||
try {
|
||||
$webRoot = $this->setupClass::findWebRoot($this->config);
|
||||
$webRoot = self::invokePrivate($this->setupClass, 'findWebRoot', [$this->config]);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$webRoot = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue