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/Comments | |
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/Comments')
-rw-r--r-- | lib/public/Comments/CommentsEntityEvent.php | 1 | ||||
-rw-r--r-- | lib/public/Comments/CommentsEvent.php | 1 | ||||
-rw-r--r-- | lib/public/Comments/IComment.php | 1 | ||||
-rw-r--r-- | lib/public/Comments/ICommentsManager.php | 1 | ||||
-rw-r--r-- | lib/public/Comments/IllegalIDChangeException.php | 3 | ||||
-rw-r--r-- | lib/public/Comments/MessageTooLongException.php | 3 | ||||
-rw-r--r-- | lib/public/Comments/NotFoundException.php | 3 |
7 files changed, 6 insertions, 7 deletions
diff --git a/lib/public/Comments/CommentsEntityEvent.php b/lib/public/Comments/CommentsEntityEvent.php index 2bcc44f8b16..53ccd87f08d 100644 --- a/lib/public/Comments/CommentsEntityEvent.php +++ b/lib/public/Comments/CommentsEntityEvent.php @@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event; * @since 9.1.0 */ class CommentsEntityEvent extends Event { - const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity'; /** @var string */ diff --git a/lib/public/Comments/CommentsEvent.php b/lib/public/Comments/CommentsEvent.php index 3e12c03542a..b2116eb51ec 100644 --- a/lib/public/Comments/CommentsEvent.php +++ b/lib/public/Comments/CommentsEvent.php @@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event; * @since 9.0.0 */ class CommentsEvent extends Event { - const EVENT_ADD = 'OCP\Comments\ICommentsManager::addComment'; const EVENT_PRE_UPDATE = 'OCP\Comments\ICommentsManager::preUpdateComment'; const EVENT_UPDATE = 'OCP\Comments\ICommentsManager::updateComment'; diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php index b98a015a30e..604aaefd890 100644 --- a/lib/public/Comments/IComment.php +++ b/lib/public/Comments/IComment.php @@ -279,5 +279,4 @@ interface IComment { * @since 19.0.0 */ public function setReferenceId(?string $referenceId): IComment; - } diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index 7c19b36e59a..bb3a6fe255c 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -322,5 +322,4 @@ interface ICommentsManager { * provided ID is unknown. It must be ensured that a string is returned. */ public function resolveDisplayName($type, $id); - } diff --git a/lib/public/Comments/IllegalIDChangeException.php b/lib/public/Comments/IllegalIDChangeException.php index 5f8428a0f85..f821333800e 100644 --- a/lib/public/Comments/IllegalIDChangeException.php +++ b/lib/public/Comments/IllegalIDChangeException.php @@ -28,4 +28,5 @@ namespace OCP\Comments; * Exception for illegal attempts to modify a comment ID * @since 9.0.0 */ -class IllegalIDChangeException extends \Exception {} +class IllegalIDChangeException extends \Exception { +} diff --git a/lib/public/Comments/MessageTooLongException.php b/lib/public/Comments/MessageTooLongException.php index 5b0bd96e468..bccf75adc1b 100644 --- a/lib/public/Comments/MessageTooLongException.php +++ b/lib/public/Comments/MessageTooLongException.php @@ -27,4 +27,5 @@ namespace OCP\Comments; * Exception thrown when a comment message exceeds the allowed character limit * @since 9.0.0 */ -class MessageTooLongException extends \OverflowException {} +class MessageTooLongException extends \OverflowException { +} diff --git a/lib/public/Comments/NotFoundException.php b/lib/public/Comments/NotFoundException.php index 7a06447eb21..80bad3d6bec 100644 --- a/lib/public/Comments/NotFoundException.php +++ b/lib/public/Comments/NotFoundException.php @@ -28,4 +28,5 @@ namespace OCP\Comments; * Exception for not found entity * @since 9.0.0 */ -class NotFoundException extends \Exception {} +class NotFoundException extends \Exception { +} |