Completed
Pull Request — master (#49)
by Matias
02:08
created
lib/Controller/FaceController.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -5,17 +5,10 @@
 block discarded – undo
5 5
 use OCP\Files\IRootFolder;
6 6
 use OCP\AppFramework\Http;
7 7
 use OCP\AppFramework\Http\DataResponse;
8
-use OCP\AppFramework\Http\JSONResponse;
9 8
 use OCP\AppFramework\Http\DataDisplayResponse;
10 9
 use OCP\AppFramework\Controller;
11
-
12
-use OCA\FaceRecognition\Db\Face;
13 10
 use OCA\FaceRecognition\Db\FaceMapper;
14
-
15
-use OCA\FaceRecognition\Db\FaceNew;
16 11
 use OCA\FaceRecognition\Db\FaceNewMapper;
17
-
18
-use OCA\FaceRecognition\Db\Image;
19 12
 use OCA\FaceRecognition\Db\ImageMapper;
20 13
 
21 14
 class FaceController extends Controller {
Please login to merge, or discard this patch.
lib/Db/FaceNewMapper.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@  discard block
 block discarded – undo
22 22
 		return $faces;
23 23
 	}
24 24
 
25
+	/**
26
+	 * @param integer $model
27
+	 */
25 28
 	public function countFaces(string $userId, $model): int {
26 29
 		$qb = $this->db->getQueryBuilder();
27 30
 		$query = $qb
@@ -39,6 +42,9 @@  discard block
 block discarded – undo
39 42
 		return (int)$data[0];
40 43
 	}
41 44
 
45
+	/**
46
+	 * @param integer $model
47
+	 */
42 48
 	public function getFaces(string $userId, $model): array {
43 49
 		$qb = $this->db->getQueryBuilder();
44 50
 		$query = $qb
Please login to merge, or discard this patch.
lib/Controller/PersonController.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -3,16 +3,9 @@
 block discarded – undo
3 3
 
4 4
 use OCP\IRequest;
5 5
 use OCP\Files\IRootFolder;
6
-use OCP\AppFramework\Http;
7 6
 use OCP\AppFramework\Http\DataResponse;
8
-use OCP\AppFramework\Http\JSONResponse;
9
-use OCP\AppFramework\Http\DataDisplayResponse;
10 7
 use OCP\AppFramework\Controller;
11
-
12
-use OCA\FaceRecognition\Db\Face;
13 8
 use OCA\FaceRecognition\Db\FaceMapper;
14
-
15
-use OCA\FaceRecognition\Db\Person;
16 9
 use OCA\FaceRecognition\Db\PersonMapper;
17 10
 
18 11
 class PersonController extends Controller {
Please login to merge, or discard this patch.