diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-10 14:19:56 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-10 14:19:56 +0200 |
commit | caff1023ea72bb2ea94130e18a2a6e2ccf819e5f (patch) | |
tree | 186d494c2aea5dea7255d3584ef5d595fc6e6194 /lib/public/Dashboard | |
parent | edf8ce32cffdb920e8171207b342abbd7f1fbe73 (diff) | |
download | nextcloud-server-caff1023ea72bb2ea94130e18a2a6e2ccf819e5f.tar.gz nextcloud-server-caff1023ea72bb2ea94130e18a2a6e2ccf819e5f.zip |
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Dashboard')
-rw-r--r-- | lib/public/Dashboard/IDashboardManager.php | 1 | ||||
-rw-r--r-- | lib/public/Dashboard/IDashboardWidget.php | 1 | ||||
-rw-r--r-- | lib/public/Dashboard/Model/IWidgetConfig.php | 2 | ||||
-rw-r--r-- | lib/public/Dashboard/Model/IWidgetRequest.php | 1 | ||||
-rw-r--r-- | lib/public/Dashboard/Model/WidgetSetting.php | 4 | ||||
-rw-r--r-- | lib/public/Dashboard/Model/WidgetSetup.php | 2 | ||||
-rw-r--r-- | lib/public/Dashboard/Model/WidgetTemplate.php | 2 | ||||
-rw-r--r-- | lib/public/Dashboard/Service/IEventsService.php | 2 | ||||
-rw-r--r-- | lib/public/Dashboard/Service/IWidgetsService.php | 1 |
9 files changed, 0 insertions, 16 deletions
diff --git a/lib/public/Dashboard/IDashboardManager.php b/lib/public/Dashboard/IDashboardManager.php index 7805bc236e8..812338bfb30 100644 --- a/lib/public/Dashboard/IDashboardManager.php +++ b/lib/public/Dashboard/IDashboardManager.php @@ -127,5 +127,4 @@ interface IDashboardManager { * @throws DashboardAppNotAvailableException */ public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId = ''); - } diff --git a/lib/public/Dashboard/IDashboardWidget.php b/lib/public/Dashboard/IDashboardWidget.php index 9010845355a..ef8b9c74d15 100644 --- a/lib/public/Dashboard/IDashboardWidget.php +++ b/lib/public/Dashboard/IDashboardWidget.php @@ -138,5 +138,4 @@ interface IDashboardWidget { * @param IWidgetRequest $request */ public function requestWidget(IWidgetRequest $request); - } diff --git a/lib/public/Dashboard/Model/IWidgetConfig.php b/lib/public/Dashboard/Model/IWidgetConfig.php index bc33b37f544..41c9e233177 100644 --- a/lib/public/Dashboard/Model/IWidgetConfig.php +++ b/lib/public/Dashboard/Model/IWidgetConfig.php @@ -119,6 +119,4 @@ interface IWidgetConfig { * @return bool */ public function isEnabled(): bool; - - } diff --git a/lib/public/Dashboard/Model/IWidgetRequest.php b/lib/public/Dashboard/Model/IWidgetRequest.php index b646935978a..18ad855006c 100644 --- a/lib/public/Dashboard/Model/IWidgetRequest.php +++ b/lib/public/Dashboard/Model/IWidgetRequest.php @@ -127,5 +127,4 @@ interface IWidgetRequest { * @return $this */ public function addResultArray(string $key, array $result): IWidgetRequest; - } diff --git a/lib/public/Dashboard/Model/WidgetSetting.php b/lib/public/Dashboard/Model/WidgetSetting.php index b20d8d68b38..27daa76cbdf 100644 --- a/lib/public/Dashboard/Model/WidgetSetting.php +++ b/lib/public/Dashboard/Model/WidgetSetting.php @@ -48,8 +48,6 @@ use JsonSerializable; * @package OCP\Dashboard\Model */ final class WidgetSetting implements JsonSerializable { - - const TYPE_INPUT = 'input'; const TYPE_CHECKBOX = 'checkbox'; @@ -231,6 +229,4 @@ final class WidgetSetting implements JsonSerializable { 'placeholder' => $this->getPlaceholder() ]; } - - } diff --git a/lib/public/Dashboard/Model/WidgetSetup.php b/lib/public/Dashboard/Model/WidgetSetup.php index 80885705633..8a502b09e58 100644 --- a/lib/public/Dashboard/Model/WidgetSetup.php +++ b/lib/public/Dashboard/Model/WidgetSetup.php @@ -41,8 +41,6 @@ use JsonSerializable; * @package OCP\Dashboard\Model */ final class WidgetSetup implements JsonSerializable { - - const SIZE_TYPE_MIN = 'min'; const SIZE_TYPE_MAX = 'max'; const SIZE_TYPE_DEFAULT = 'default'; diff --git a/lib/public/Dashboard/Model/WidgetTemplate.php b/lib/public/Dashboard/Model/WidgetTemplate.php index 979a49a342d..e25abb02540 100644 --- a/lib/public/Dashboard/Model/WidgetTemplate.php +++ b/lib/public/Dashboard/Model/WidgetTemplate.php @@ -308,6 +308,4 @@ final class WidgetTemplate implements JsonSerializable { 'settings' => $this->getSettings() ]; } - - } diff --git a/lib/public/Dashboard/Service/IEventsService.php b/lib/public/Dashboard/Service/IEventsService.php index a9898f578e6..f79d1a28e5a 100644 --- a/lib/public/Dashboard/Service/IEventsService.php +++ b/lib/public/Dashboard/Service/IEventsService.php @@ -83,6 +83,4 @@ interface IEventsService { * @param string $uniqueId */ public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId); - - } diff --git a/lib/public/Dashboard/Service/IWidgetsService.php b/lib/public/Dashboard/Service/IWidgetsService.php index dfa89ec1f59..dea20489e13 100644 --- a/lib/public/Dashboard/Service/IWidgetsService.php +++ b/lib/public/Dashboard/Service/IWidgetsService.php @@ -52,5 +52,4 @@ interface IWidgetsService { * @return IWidgetConfig */ public function getWidgetConfig(string $widgetId, string $userId): IWidgetConfig; - } |