Fix visibility of public API methods

This commit is contained in:
Joas Schilling 2015-04-20 12:52:40 +02:00
parent 96a5b65484
commit 6da9e1a742
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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