@@ -73,13 +73,13 @@ |
||
73 | 73 | /** |
74 | 74 | * OcrStatus constructor. |
75 | 75 | * |
76 | - * @param null $status |
|
76 | + * @param string $status |
|
77 | 77 | * @param null $fileId |
78 | - * @param null $newName |
|
78 | + * @param string $newName |
|
79 | 79 | * @param null $tempFile |
80 | - * @param null $type |
|
80 | + * @param string $type |
|
81 | 81 | * @param null $userId |
82 | - * @param null $errorDisplayed |
|
82 | + * @param boolean $errorDisplayed |
|
83 | 83 | */ |
84 | 84 | public function __construct($status = null, $fileId = null, $newName = null, $tempFile = null, $type = null, $userId = null, $errorDisplayed = null) { |
85 | 85 | $this->setStatus($status); |
@@ -240,6 +240,7 @@ discard block |
||
240 | 240 | * The PersonalSettingsController will have the opportunity to delete ocr status objects. |
241 | 241 | * |
242 | 242 | * @param $statusId |
243 | + * @param string $userId |
|
243 | 244 | * @return OcrStatus |
244 | 245 | */ |
245 | 246 | public function deleteStatus($statusId, $userId) { |
@@ -269,7 +270,7 @@ discard block |
||
269 | 270 | /** |
270 | 271 | * Gets all status objects for a specific user in order to list them on the personal settings page. |
271 | 272 | * |
272 | - * @param $userId |
|
273 | + * @param string $userId |
|
273 | 274 | * @return array |
274 | 275 | */ |
275 | 276 | public function getAllForPersonal($userId) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @return \OCP\AppFramework\Http\DataResponse |
63 | 63 | */ |
64 | 64 | public function getAll() { |
65 | - return $this->handleNotFound(function () { |
|
65 | + return $this->handleNotFound(function() { |
|
66 | 66 | return $this->service->getAllForPersonal($this->userId); |
67 | 67 | }); |
68 | 68 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @return \OCP\AppFramework\Http\DataResponse |
74 | 74 | */ |
75 | 75 | public function deleteStatus($id) { |
76 | - return $this->handleNotFound(function () use ($id) { |
|
76 | + return $this->handleNotFound(function() use ($id) { |
|
77 | 77 | return $this->service->deleteStatus($id, $this->userId); |
78 | 78 | }); |
79 | 79 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function run(IOutput $output) { |
46 | 46 | $output->startProgress(1); |
47 | - if ($this->connection->tableExists('ocr_status')){ |
|
47 | + if ($this->connection->tableExists('ocr_status')) { |
|
48 | 48 | $this->connection->dropTable('ocr_status'); |
49 | 49 | } |
50 | 50 | $output->advance(1, "Drop old database table: ocr_status"); |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * Registers the Personal Settings Page for deletion of status objects and such things. |
129 | 129 | * @codeCoverageIgnore |
130 | 130 | */ |
131 | - public function registerPersonal(){ |
|
131 | + public function registerPersonal() { |
|
132 | 132 | \OCP\App::registerPersonal($this->getContainer()->getAppName(), 'personal'); |
133 | 133 | } |
134 | 134 |