Skip to content

Commit a539aef

Browse files
Update php-cs-fixer configuration
Signed-off-by: Raimund Schlüßler <[email protected]>
1 parent 260b435 commit a539aef

File tree

11 files changed

+102
-250
lines changed

11 files changed

+102
-250
lines changed
File renamed without changes.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"php": ">=7.3 <=8.1"
1414
},
1515
"require-dev": {
16-
"nextcloud/coding-standard": "^0.3.0",
16+
"nextcloud/coding-standard": "^1.0.0",
1717
"phpunit/phpunit": "^9.5"
1818
},
1919
"config": {

composer.lock

Lines changed: 96 additions & 237 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/AppInfo/Application.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@
3131
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
3232

3333
class Application extends App implements IBootstrap {
34-
3534
/** @var string */
3635
public const APP_ID = 'tasks';
3736

3837
/**
3938
* @param array $params
4039
*/
41-
public function __construct(array $params=[]) {
40+
public function __construct(array $params = []) {
4241
parent::__construct(self::APP_ID, $params);
4342
}
4443

lib/Controller/CollectionsController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use \OCP\AppFramework\Controller;
2828

2929
class CollectionsController extends Controller {
30-
3130
/**
3231
* @var CollectionsService
3332
*/

lib/Controller/PageController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
* Controller class for main page.
3333
*/
3434
class PageController extends Controller {
35-
3635
/**
3736
* @var IInitialStateService
3837
*/

lib/Controller/SettingsController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use \OCP\IRequest;
2828

2929
class SettingsController extends Controller {
30-
3130
/**
3231
* @var SettingsService
3332
*/

lib/Dashboard/TasksWidget.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use OCP\IL10N;
3131

3232
class TasksWidget implements IWidget {
33-
3433
/**
3534
* @var IL10N
3635
*/

lib/Service/CollectionsService.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use OCP\IL10N;
2727

2828
class CollectionsService {
29-
3029
/**
3130
* @var string
3231
*/
@@ -99,9 +98,9 @@ public function getAll():array {
9998
'icon' => 'Check']
10099
];
101100
foreach ($collections as $key => $collection) {
102-
$tmp = $this->settings->getUserValue($this->userId, $this->appName,'show_'.$collection['id']);
101+
$tmp = $this->settings->getUserValue($this->userId, $this->appName, 'show_'.$collection['id']);
103102
if (!in_array($tmp, ['0','1','2'])) {
104-
$this->settings->setUserValue($this->userId, $this->appName,'show_'.$collection['id'],$collections[$key]['show']);
103+
$this->settings->setUserValue($this->userId, $this->appName, 'show_'.$collection['id'], $collections[$key]['show']);
105104
} else {
106105
$collections[$key]['show'] = (int)$tmp;
107106
}
@@ -118,7 +117,7 @@ public function getAll():array {
118117
*/
119118
public function setVisibility(string $collectionID, int $visibility):bool {
120119
if (in_array($visibility, [0,1,2])) {
121-
$this->settings->setUserValue($this->userId, $this->appName,'show_'.$collectionID,$visibility);
120+
$this->settings->setUserValue($this->userId, $this->appName, 'show_'.$collectionID, $visibility);
122121
}
123122
return true;
124123
}

lib/Service/SettingsService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use OCP\IConfig;
2727

2828
class SettingsService {
29-
3029
/**
3130
* @var ?string
3231
*/

0 commit comments

Comments
 (0)