summaryrefslogtreecommitdiffstats
path: root/lib/public/DirectEditing
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 14:19:56 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 14:19:56 +0200
commitcaff1023ea72bb2ea94130e18a2a6e2ccf819e5f (patch)
tree186d494c2aea5dea7255d3584ef5d595fc6e6194 /lib/public/DirectEditing
parentedf8ce32cffdb920e8171207b342abbd7f1fbe73 (diff)
downloadnextcloud-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/DirectEditing')
-rw-r--r--lib/public/DirectEditing/ACreateEmpty.php1
-rw-r--r--lib/public/DirectEditing/ACreateFromTemplate.php1
-rw-r--r--lib/public/DirectEditing/IManager.php1
-rw-r--r--lib/public/DirectEditing/IToken.php1
-rw-r--r--lib/public/DirectEditing/RegisterDirectEditorEvent.php1
5 files changed, 0 insertions, 5 deletions
diff --git a/lib/public/DirectEditing/ACreateEmpty.php b/lib/public/DirectEditing/ACreateEmpty.php
index 71a18c94e23..cbb17d5d3e2 100644
--- a/lib/public/DirectEditing/ACreateEmpty.php
+++ b/lib/public/DirectEditing/ACreateEmpty.php
@@ -73,6 +73,5 @@ abstract class ACreateEmpty {
* @param File $file
*/
public function create(File $file, string $creatorId = null, string $templateId = null): void {
-
}
}
diff --git a/lib/public/DirectEditing/ACreateFromTemplate.php b/lib/public/DirectEditing/ACreateFromTemplate.php
index e4aa461772a..43a21fdf4e9 100644
--- a/lib/public/DirectEditing/ACreateFromTemplate.php
+++ b/lib/public/DirectEditing/ACreateFromTemplate.php
@@ -35,5 +35,4 @@ abstract class ACreateFromTemplate extends ACreateEmpty {
* @return ATemplate[]
*/
abstract public function getTemplates(): array;
-
}
diff --git a/lib/public/DirectEditing/IManager.php b/lib/public/DirectEditing/IManager.php
index e9548a91e7a..6cdf656c015 100644
--- a/lib/public/DirectEditing/IManager.php
+++ b/lib/public/DirectEditing/IManager.php
@@ -85,5 +85,4 @@ interface IManager {
* @return int number of deleted tokens
*/
public function cleanup(): int;
-
}
diff --git a/lib/public/DirectEditing/IToken.php b/lib/public/DirectEditing/IToken.php
index 46c423053fe..511b12d4aed 100644
--- a/lib/public/DirectEditing/IToken.php
+++ b/lib/public/DirectEditing/IToken.php
@@ -80,5 +80,4 @@ interface IToken {
* @return string
*/
public function getUser(): string;
-
}
diff --git a/lib/public/DirectEditing/RegisterDirectEditorEvent.php b/lib/public/DirectEditing/RegisterDirectEditorEvent.php
index fe494e7fded..c9e04f23cfc 100644
--- a/lib/public/DirectEditing/RegisterDirectEditorEvent.php
+++ b/lib/public/DirectEditing/RegisterDirectEditorEvent.php
@@ -53,5 +53,4 @@ class RegisterDirectEditorEvent extends Event {
public function register(IEditor $editor): void {
$this->manager->registerDirectEditor($editor);
}
-
}