[Pkg-owncloud-commits] [owncloud] 101/165: Fix visibility of public API methods

David Prévot taffit at moszumanska.debian.org
Thu Apr 23 04:06:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 6da9e1a7420bfeb411848c95ba8c307e6a07b231
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Mon Apr 20 12:52:40 2015 +0200

    Fix visibility of public API methods
---
 lib/private/appframework/http/request.php            | 2 +-
 lib/private/appframework/utility/simplecontainer.php | 4 ++--
 lib/private/avatarmanager.php                        | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index 002c115..8176622 100644
--- a/lib/private/appframework/http/request.php
+++ b/lib/private/appframework/http/request.php
@@ -360,7 +360,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
 	 * @param string $key the key that will be taken from the $_COOKIE array
 	 * @return array the value in the $_COOKIE element
 	 */
-	function getCookie($key) {
+	public function getCookie($key) {
 		return isset($this->cookies[$key]) ? $this->cookies[$key] : null;
 	}
 
diff --git a/lib/private/appframework/utility/simplecontainer.php b/lib/private/appframework/utility/simplecontainer.php
index 9e80f89..c7dff6f 100644
--- a/lib/private/appframework/utility/simplecontainer.php
+++ b/lib/private/appframework/utility/simplecontainer.php
@@ -106,7 +106,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
 	 * @param string $name
 	 * @param mixed $value
 	 */
-	function registerParameter($name, $value) {
+	public function registerParameter($name, $value) {
 		$this[$name] = $value;
 	}
 
@@ -119,7 +119,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
 	 * @param \Closure $closure the closure to be called on service creation
 	 * @param bool $shared
 	 */
-	function registerService($name, \Closure $closure, $shared = true) {
+	public function registerService($name, \Closure $closure, $shared = true) {
 		if (isset($this[$name]))  {
 			unset($this[$name]);
 		}
diff --git a/lib/private/avatarmanager.php b/lib/private/avatarmanager.php
index 578ab05..0ff4a34 100644
--- a/lib/private/avatarmanager.php
+++ b/lib/private/avatarmanager.php
@@ -38,7 +38,7 @@ class AvatarManager implements IAvatarManager {
 	 * @param string $user the ownCloud user id
 	 * @return \OCP\IAvatar
 	 */
-	function getAvatar($user) {
+	public function getAvatar($user) {
 		return new Avatar($user);
 	}
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list