Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-04-15 10:33:27 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-04-15 10:33:27 +0300
commit007721b2eb68113694fea7ea6f747e9e0285154e (patch)
tree103f150b95a041f8ce7df7d818b6d9813963037c /lib
parent2e776d4c6d27c4a795277a8091d3b4476bcc8e64 (diff)
Fix php-cs issues
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/Response.php5
-rw-r--r--lib/Service/CollectionsService.php4
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/Controller/Response.php b/lib/Controller/Response.php
index 9dac6506..5790a6fd 100644
--- a/lib/Controller/Response.php
+++ b/lib/Controller/Response.php
@@ -26,7 +26,6 @@ use \Closure;
use \OCP\AppFramework\Http\JSONResponse;
trait Response {
-
protected function generateResponse(Closure $callback) {
try {
$message = [
@@ -34,8 +33,7 @@ trait Response {
'data' => $callback(),
'message' => null
];
-
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
$message = [
'status' => 'error',
'data' => null,
@@ -44,5 +42,4 @@ trait Response {
}
return new JSONResponse($message);
}
-
}
diff --git a/lib/Service/CollectionsService.php b/lib/Service/CollectionsService.php
index c8a91053..5b7d266c 100644
--- a/lib/Service/CollectionsService.php
+++ b/lib/Service/CollectionsService.php
@@ -98,7 +98,7 @@ class CollectionsService {
'show' => 2,
'icon' => 'sprt-checkmark']
];
- foreach ($collections as $key => $collection){
+ foreach ($collections as $key => $collection) {
$tmp = $this->settings->getUserValue($this->userId, $this->appName,'show_'.$collection['id']);
if (!in_array($tmp, ['0','1','2'])) {
$this->settings->setUserValue($this->userId, $this->appName,'show_'.$collection['id'],$collections[$key]['show']);
@@ -117,7 +117,7 @@ class CollectionsService {
* @return bool
*/
public function setVisibility(string $collectionID, int $visibility):bool {
- if (in_array($visibility, [0,1,2])){
+ if (in_array($visibility, [0,1,2])) {
$this->settings->setUserValue($this->userId, $this->appName,'show_'.$collectionID,$visibility);
}
return true;