From b49c85b1e98d89f30608ff92b11f6b8d37603b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Fri, 10 Apr 2020 13:20:16 +0200 Subject: Apply php-cs-fixer fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- tests/php/integration/AppInfo/ApplicationTest.php | 1 - .../unit/Controller/CollectionsControllerTest.php | 1 - tests/php/unit/Controller/PageControllerTest.php | 1 - .../php/unit/Controller/SettingsControllerTest.php | 1 - tests/php/unit/Service/CollectionsServiceTest.php | 29 +++++++++++----------- tests/php/unit/Service/SettingsServiceTest.php | 1 - 6 files changed, 14 insertions(+), 20 deletions(-) (limited to 'tests') diff --git a/tests/php/integration/AppInfo/ApplicationTest.php b/tests/php/integration/AppInfo/ApplicationTest.php index e1447fb1..a78fb33b 100644 --- a/tests/php/integration/AppInfo/ApplicationTest.php +++ b/tests/php/integration/AppInfo/ApplicationTest.php @@ -23,7 +23,6 @@ * */ -use OCP\AppFramework\App; use PHPUnit\Framework\TestCase; class AppTest extends TestCase { diff --git a/tests/php/unit/Controller/CollectionsControllerTest.php b/tests/php/unit/Controller/CollectionsControllerTest.php index 046bceac..bfcdde70 100644 --- a/tests/php/unit/Controller/CollectionsControllerTest.php +++ b/tests/php/unit/Controller/CollectionsControllerTest.php @@ -28,7 +28,6 @@ use OCP\IRequest; use PHPUnit\Framework\TestCase; - class CollectionsControllerTest extends TestCase { private $appName; diff --git a/tests/php/unit/Controller/PageControllerTest.php b/tests/php/unit/Controller/PageControllerTest.php index e74a934f..a6dba9fe 100644 --- a/tests/php/unit/Controller/PageControllerTest.php +++ b/tests/php/unit/Controller/PageControllerTest.php @@ -14,7 +14,6 @@ namespace OCA\Tasks\Controller; use OCP\AppFramework\Http\TemplateResponse; use PHPUnit\Framework\TestCase as Base; - class PageControllerTest extends Base { private $controller; diff --git a/tests/php/unit/Controller/SettingsControllerTest.php b/tests/php/unit/Controller/SettingsControllerTest.php index 4a534bea..7e9c99c8 100644 --- a/tests/php/unit/Controller/SettingsControllerTest.php +++ b/tests/php/unit/Controller/SettingsControllerTest.php @@ -28,7 +28,6 @@ use OCP\IRequest; use PHPUnit\Framework\TestCase; - class SettingsControllerTest extends TestCase { private $appName; diff --git a/tests/php/unit/Service/CollectionsServiceTest.php b/tests/php/unit/Service/CollectionsServiceTest.php index 3348e06c..eef7ef6c 100644 --- a/tests/php/unit/Service/CollectionsServiceTest.php +++ b/tests/php/unit/Service/CollectionsServiceTest.php @@ -28,7 +28,6 @@ use OCP\IL10N; use PHPUnit\Framework\TestCase; - class CollectionsServiceTest extends TestCase { private $collectionsService; @@ -56,38 +55,38 @@ class CollectionsServiceTest extends TestCase { } public function testGetAll() { - $return = array( - array( + $return = [ + [ 'id' => "starred", 'displayName' => 'Important', 'show' => 2, - 'icon' => 'sprt-task-star'), - array( + 'icon' => 'sprt-task-star'], + [ 'id' => "today", 'displayName' => 'Today', 'show' => 2, - 'icon' => 'sprt-calendar'), - array( + 'icon' => 'sprt-calendar'], + [ 'id' => "week", 'displayName' => 'Week', 'show' => 2, - 'icon' => 'sprt-calendar'), - array( + 'icon' => 'sprt-calendar'], + [ 'id' => "all", 'displayName' => 'All', 'show' => 2, - 'icon' => 'sprt-all'), - array( + 'icon' => 'sprt-all'], + [ 'id' => "current", 'displayName' => 'Current', 'show' => 2, - 'icon' => 'sprt-current'), - array( + 'icon' => 'sprt-current'], + [ 'id' => "completed", 'displayName' => 'Completed', 'show' => 2, - 'icon' => 'sprt-checkmark') - ); + 'icon' => 'sprt-checkmark'] + ]; $map = [ ['Important', [],'Important'], diff --git a/tests/php/unit/Service/SettingsServiceTest.php b/tests/php/unit/Service/SettingsServiceTest.php index ce4878f1..36ffa5f6 100644 --- a/tests/php/unit/Service/SettingsServiceTest.php +++ b/tests/php/unit/Service/SettingsServiceTest.php @@ -27,7 +27,6 @@ use OCP\IConfig; use PHPUnit\Framework\TestCase; - class SettingsServiceTest extends TestCase { private $settingsService; -- cgit v1.2.3