Change visibility to private

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-09-13 12:24:06 +02:00
parent fabd3e7ba1
commit 3b7ac0c94d
No known key found for this signature in database
GPG key ID: 36E3664E099D0614
2 changed files with 2 additions and 2 deletions

View file

@ -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', '');

View file

@ -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;
}