diff options
author | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2014-08-08 11:15:03 +0400 |
---|---|---|
committer | Scrutinizer <auto-fixer@scrutinizer-ci.com> | 2014-08-08 11:15:03 +0400 |
commit | c05cdfd28af4a52795a2990fef5345cdcfdba444 (patch) | |
tree | 9ae9461c64a7a82629148b18e4dc33ab68c4579c /lib | |
parent | 388e73c0acf31cbf175c5ecad62d1d34aab98e40 (diff) |
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/tasks/inspections/d3a91d9b-361d-4b6a-ae62-e97f80fb50f8
Enabled analysis tools:
- PHP Analyzer
- PHP PDepend
- PHP Similarity Analyzer
- PHP Change Tracking Analyzer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/controller.php | 6 | ||||
-rw-r--r-- | lib/controller/collectionscontroller.php | 4 | ||||
-rw-r--r-- | lib/controller/listscontroller.php | 4 | ||||
-rw-r--r-- | lib/controller/pagecontroller.php | 4 | ||||
-rw-r--r-- | lib/controller/settingscontroller.php | 4 | ||||
-rw-r--r-- | lib/controller/taskscontroller.php | 9 | ||||
-rw-r--r-- | lib/dispatcher.php | 14 |
7 files changed, 24 insertions, 21 deletions
diff --git a/lib/controller.php b/lib/controller.php index 067d61dc..281d485b 100644 --- a/lib/controller.php +++ b/lib/controller.php @@ -11,9 +11,9 @@ namespace OCA\Tasks; -use OCP\AppFramework\IAppContainer, - OCP\AppFramework\Controller as BaseController, - OCP\IRequest; +use OCP\AppFramework\IAppContainer; +use OCP\AppFramework\Controller as BaseController; +use OCP\IRequest; /** * Base Controller class for Issues App diff --git a/lib/controller/collectionscontroller.php b/lib/controller/collectionscontroller.php index 984cb5bb..a20faeb0 100644 --- a/lib/controller/collectionscontroller.php +++ b/lib/controller/collectionscontroller.php @@ -23,8 +23,8 @@ namespace OCA\Tasks\Controller; -use OCA\Tasks\Controller, - OCP\AppFramework\Http\JSONResponse; +use OCA\Tasks\Controller; +use OCP\AppFramework\Http\JSONResponse; class CollectionsController extends Controller { diff --git a/lib/controller/listscontroller.php b/lib/controller/listscontroller.php index 3d72fcaf..35506032 100644 --- a/lib/controller/listscontroller.php +++ b/lib/controller/listscontroller.php @@ -23,8 +23,8 @@ namespace OCA\Tasks\Controller; -use OCA\Tasks\Controller, - OCP\AppFramework\Http\JSONResponse; +use OCA\Tasks\Controller; +use OCP\AppFramework\Http\JSONResponse; class ListsController extends Controller { diff --git a/lib/controller/pagecontroller.php b/lib/controller/pagecontroller.php index 54419304..5d4b49c3 100644 --- a/lib/controller/pagecontroller.php +++ b/lib/controller/pagecontroller.php @@ -10,8 +10,8 @@ namespace OCA\Tasks\Controller; -use OCA\Tasks\Controller, - OCP\AppFramework\Http\TemplateResponse; +use OCA\Tasks\Controller; +use OCP\AppFramework\Http\TemplateResponse; /** diff --git a/lib/controller/settingscontroller.php b/lib/controller/settingscontroller.php index 9a002ff4..d7c03667 100644 --- a/lib/controller/settingscontroller.php +++ b/lib/controller/settingscontroller.php @@ -23,8 +23,8 @@ namespace OCA\Tasks\Controller; -use OCA\Tasks\Controller, - OCP\AppFramework\Http\JSONResponse; +use OCA\Tasks\Controller; +use OCP\AppFramework\Http\JSONResponse; class SettingsController extends Controller { diff --git a/lib/controller/taskscontroller.php b/lib/controller/taskscontroller.php index 22b2752f..89741e31 100644 --- a/lib/controller/taskscontroller.php +++ b/lib/controller/taskscontroller.php @@ -23,9 +23,9 @@ namespace OCA\Tasks\Controller; -use OCA\Tasks\Controller, - OCA\Tasks\Helper, - OCP\AppFramework\Http\JSONResponse; +use OCA\Tasks\Controller; +use OCA\Tasks\Helper; +use OCP\AppFramework\Http\JSONResponse; class TasksController extends Controller { @@ -69,6 +69,9 @@ class TasksController extends Controller { return $response; } + /** + * @param boolean $isStarred + */ private function setStarred($isStarred){ $taskId = (int) $this->params('taskID'); try { diff --git a/lib/dispatcher.php b/lib/dispatcher.php index d2c4cdfe..ce9fe1f3 100644 --- a/lib/dispatcher.php +++ b/lib/dispatcher.php @@ -10,13 +10,13 @@ namespace OCA\Tasks; -use OCP\AppFramework\App as MainApp, - OCP\AppFramework\IAppContainer, - OCA\Tasks\Controller\PageController, - OCA\Tasks\Controller\CollectionsController, - OCA\Tasks\Controller\ListsController, - OCA\Tasks\Controller\TasksController, - OCA\Tasks\Controller\SettingsController; +use OCP\AppFramework\App as MainApp; +use OCP\AppFramework\IAppContainer; +use OCA\Tasks\Controller\PageController; +use OCA\Tasks\Controller\CollectionsController; +use OCA\Tasks\Controller\ListsController; +use OCA\Tasks\Controller\TasksController; +use OCA\Tasks\Controller\SettingsController; /** * This class manages our app actions |