From 03233b1d58a3ff100196393321aa7cff9727dd91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 10 Apr 2017 19:08:30 +0200 Subject: [PATCH] Hide methods not needed outside the class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- .../features/core/NextcloudTestServerDockerHelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/acceptance/features/core/NextcloudTestServerDockerHelper.php b/build/acceptance/features/core/NextcloudTestServerDockerHelper.php index bfa5f695fdb..71c7f9ad850 100644 --- a/build/acceptance/features/core/NextcloudTestServerDockerHelper.php +++ b/build/acceptance/features/core/NextcloudTestServerDockerHelper.php @@ -130,7 +130,7 @@ class NextcloudTestServerDockerHelper { * * @throws \Exception if the Docker command failed to execute. */ - public function createAndStartContainer() { + private function createAndStartContainer() { $moreEntropy = true; $this->containerName = uniqid($this->imageName . "-", $moreEntropy); @@ -185,7 +185,7 @@ class NextcloudTestServerDockerHelper { * * @throws \Exception if the Docker command failed to execute. */ - public function stopAndRemoveContainer() { + private function stopAndRemoveContainer() { // Although the Nextcloud image does not define a volume "--volumes" is // used anyway just in case any of its ancestor images does. $this->executeDockerCommand("rm --volumes --force " . $this->containerName); @@ -210,7 +210,7 @@ class NextcloudTestServerDockerHelper { * @throws \Exception if the Docker command failed to execute or the * container is not running. */ - public function getNextcloudTestServerAddress() { + private function getNextcloudTestServerAddress() { return $this->executeDockerCommand("port " . $this->containerName . " 80"); } @@ -220,7 +220,7 @@ class NextcloudTestServerDockerHelper { * @return boolean true if the container exists, false otherwise. * @throws \Exception if the Docker command failed to execute. */ - public function isContainerRegistered() { + private function isContainerRegistered() { // With the "--quiet" option "docker ps" only shows the ID of the // matching containers, without table headers. Therefore, if the // container does not exist the output will be empty (not even a new