aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-22 21:10:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-07-22 21:10:16 +0200
commit361d2badd8f5be949acd94f52fc9ba2d0a98052d (patch)
tree76811147fccd8c0c62bc9884e32a349bf72c8806 /lib/public/AppFramework
parent9a151056d034f4124ea837f77b5a13f35834fd22 (diff)
downloadnextcloud-server-361d2badd8f5be949acd94f52fc9ba2d0a98052d.tar.gz
nextcloud-server-361d2badd8f5be949acd94f52fc9ba2d0a98052d.zip
Some phpstorm inspection fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Http/DataDisplayResponse.php2
-rw-r--r--lib/public/AppFramework/Http/ICallbackResponse.php2
-rw-r--r--lib/public/AppFramework/IApi.php10
-rw-r--r--lib/public/AppFramework/IAppContainer.php14
4 files changed, 14 insertions, 14 deletions
diff --git a/lib/public/AppFramework/Http/DataDisplayResponse.php b/lib/public/AppFramework/Http/DataDisplayResponse.php
index 0fc10129b8a..820e00ff963 100644
--- a/lib/public/AppFramework/Http/DataDisplayResponse.php
+++ b/lib/public/AppFramework/Http/DataDisplayResponse.php
@@ -46,7 +46,7 @@ class DataDisplayResponse extends Response {
* @param array $headers additional key value based headers
* @since 8.1.0
*/
- public function __construct($data="", $statusCode=Http::STATUS_OK,
+ public function __construct($data='', $statusCode=Http::STATUS_OK,
$headers=[]) {
$this->data = $data;
$this->setStatus($statusCode);
diff --git a/lib/public/AppFramework/Http/ICallbackResponse.php b/lib/public/AppFramework/Http/ICallbackResponse.php
index 4bf5ce36f7e..2e23946112e 100644
--- a/lib/public/AppFramework/Http/ICallbackResponse.php
+++ b/lib/public/AppFramework/Http/ICallbackResponse.php
@@ -39,6 +39,6 @@ interface ICallbackResponse {
* @param IOutput $output a small wrapper that handles output
* @since 8.1.0
*/
- function callback(IOutput $output);
+ public function callback(IOutput $output);
}
diff --git a/lib/public/AppFramework/IApi.php b/lib/public/AppFramework/IApi.php
index 419e1782686..1c3f9419ccd 100644
--- a/lib/public/AppFramework/IApi.php
+++ b/lib/public/AppFramework/IApi.php
@@ -43,7 +43,7 @@ interface IApi {
* @return string the user id of the current user
* @deprecated 8.0.0 Use \OC::$server->getUserSession()->getUser()->getUID()
*/
- function getUserId();
+ public function getUserId();
/**
@@ -53,7 +53,7 @@ interface IApi {
* @param string $appName the name of the app, defaults to the current one
* @return void
*/
- function addScript($scriptName, $appName = null);
+ public function addScript($scriptName, $appName = null);
/**
@@ -63,7 +63,7 @@ interface IApi {
* @param string $appName the name of the app, defaults to the current one
* @return void
*/
- function addStyle($styleName, $appName = null);
+ public function addStyle($styleName, $appName = null);
/**
@@ -72,7 +72,7 @@ interface IApi {
* @param string $name the name of the file without the suffix
* @return void
*/
- function add3rdPartyScript($name);
+ public function add3rdPartyScript($name);
/**
@@ -81,7 +81,7 @@ interface IApi {
* @param string $name the name of the file without the suffix
* @return void
*/
- function add3rdPartyStyle($name);
+ public function add3rdPartyStyle($name);
/**
diff --git a/lib/public/AppFramework/IAppContainer.php b/lib/public/AppFramework/IAppContainer.php
index f26afbdcd17..4aac6085d63 100644
--- a/lib/public/AppFramework/IAppContainer.php
+++ b/lib/public/AppFramework/IAppContainer.php
@@ -42,41 +42,41 @@ interface IAppContainer extends IContainer {
* @return string the name of your application
* @since 6.0.0
*/
- function getAppName();
+ public function getAppName();
/**
* @deprecated 8.0.0 implements only deprecated methods
* @return IApi
* @since 6.0.0
*/
- function getCoreApi();
+ public function getCoreApi();
/**
* @return \OCP\IServerContainer
* @since 6.0.0
*/
- function getServer();
+ public function getServer();
/**
* @param string $middleWare
* @return boolean
* @since 6.0.0
*/
- function registerMiddleWare($middleWare);
+ public function registerMiddleWare($middleWare);
/**
* @deprecated 8.0.0 use IUserSession->isLoggedIn()
* @return boolean
* @since 6.0.0
*/
- function isLoggedIn();
+ public function isLoggedIn();
/**
* @deprecated 8.0.0 use IGroupManager->isAdmin($userId)
* @return boolean
* @since 6.0.0
*/
- function isAdminUser();
+ public function isAdminUser();
/**
* @deprecated 8.0.0 use the ILogger instead
@@ -85,7 +85,7 @@ interface IAppContainer extends IContainer {
* @return mixed
* @since 6.0.0
*/
- function log($message, $level);
+ public function log($message, $level);
/**
* Register a capability