Skip to content

Commit

Permalink
Update php-cs-fixer configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Oct 18, 2022
1 parent 260b435 commit a539aef
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 250 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -13,7 +13,7 @@
"php": ">=7.3 <=8.1"
},
"require-dev": {
"nextcloud/coding-standard": "^0.3.0",
"nextcloud/coding-standard": "^1.0.0",
"phpunit/phpunit": "^9.5"
},
"config": {
Expand Down
333 changes: 96 additions & 237 deletions composer.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions lib/AppInfo/Application.php
Expand Up @@ -31,14 +31,13 @@
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;

class Application extends App implements IBootstrap {

/** @var string */
public const APP_ID = 'tasks';

/**
* @param array $params
*/
public function __construct(array $params=[]) {
public function __construct(array $params = []) {
parent::__construct(self::APP_ID, $params);
}

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/CollectionsController.php
Expand Up @@ -27,7 +27,6 @@
use \OCP\AppFramework\Controller;

class CollectionsController extends Controller {

/**
* @var CollectionsService
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/PageController.php
Expand Up @@ -32,7 +32,6 @@
* Controller class for main page.
*/
class PageController extends Controller {

/**
* @var IInitialStateService
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/SettingsController.php
Expand Up @@ -27,7 +27,6 @@
use \OCP\IRequest;

class SettingsController extends Controller {

/**
* @var SettingsService
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Dashboard/TasksWidget.php
Expand Up @@ -30,7 +30,6 @@
use OCP\IL10N;

class TasksWidget implements IWidget {

/**
* @var IL10N
*/
Expand Down
7 changes: 3 additions & 4 deletions lib/Service/CollectionsService.php
Expand Up @@ -26,7 +26,6 @@
use OCP\IL10N;

class CollectionsService {

/**
* @var string
*/
Expand Down Expand Up @@ -99,9 +98,9 @@ public function getAll():array {
'icon' => 'Check']
];
foreach ($collections as $key => $collection) {
$tmp = $this->settings->getUserValue($this->userId, $this->appName,'show_'.$collection['id']);
$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']);
$this->settings->setUserValue($this->userId, $this->appName, 'show_'.$collection['id'], $collections[$key]['show']);
} else {
$collections[$key]['show'] = (int)$tmp;
}
Expand All @@ -118,7 +117,7 @@ public function getAll():array {
*/
public function setVisibility(string $collectionID, int $visibility):bool {
if (in_array($visibility, [0,1,2])) {
$this->settings->setUserValue($this->userId, $this->appName,'show_'.$collectionID,$visibility);
$this->settings->setUserValue($this->userId, $this->appName, 'show_'.$collectionID, $visibility);
}
return true;
}
Expand Down
1 change: 0 additions & 1 deletion lib/Service/SettingsService.php
Expand Up @@ -26,7 +26,6 @@
use OCP\IConfig;

class SettingsService {

/**
* @var ?string
*/
Expand Down
2 changes: 1 addition & 1 deletion templates/main.php
@@ -1,3 +1,3 @@
<?php

script('tasks', 'tasks-main');
script('tasks', 'tasks-main');

0 comments on commit a539aef

Please sign in to comment.