Completed
Push — exception_in_tasks ( 94fe4f...7fbe21 )
by Branko
01:33
created
lib/AppInfo/Application.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
 	/**
36 36
 	 * Application constructor.
37 37
 	 *
38
-	 * @param string $appName
39 38
 	 * @param array $urlParams
40 39
 	 */
41 40
 	public function __construct(array $urlParams = []) {
Please login to merge, or discard this patch.
lib/Command/Analyze.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -274,10 +274,16 @@
 block discarded – undo
274 274
 		$this->output->writeln(count($facesFound).' faces(s) found.');
275 275
 	}
276 276
 
277
+	/**
278
+	 * @param integer $progress
279
+	 */
277 280
 	private function updateProgress($progress) {
278 281
 		$this->config->setAppValue('facerecognition', 'queue-done', $progress);
279 282
 	}
280 283
 
284
+	/**
285
+	 * @param integer $time
286
+	 */
281 287
 	private function setStartTime($time) {
282 288
 		$this->config->setAppValue('facerecognition', 'starttime', $time);
283 289
 	}
Please login to merge, or discard this patch.
lib/Controller/FaceController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
 	 * @NoAdminRequired
113 113
 	 *
114 114
 	 * @param int $id
115
-	 * @param string $name
115
+	 * @param string $newName
116 116
 	 */
117 117
 	public function updateName ($id, $newName) {
118 118
 		$face = $this->faceMapper->find($id, $this->userId);
Please login to merge, or discard this patch.
lib/Controller/PersonController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
 	/**
51 51
 	 * @NoAdminRequired
52 52
 	 *
53
-	 * @param string $oldName
54 53
 	 * @param string $newName
55 54
 	 */
56 55
 	public function updateName($name, $newName) {
Please login to merge, or discard this patch.
lib/Db/FaceMapper.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@  discard block
 block discarded – undo
22 22
 		return $this->findEntities($sql, [$userId]);
23 23
 	}
24 24
 
25
+	/**
26
+	 * @param integer $limit
27
+	 * @param integer $offset
28
+	 */
25 29
 	public function findAllQueued($userId, $limit = null, $offset = null) {
26 30
 		$sql = 'SELECT * FROM *PREFIX*face_recognition WHERE uid = ? AND distance = -1 AND encoding IS NULL';
27 31
 		return $this->findEntities($sql, [$userId], $limit, $offset);
@@ -42,6 +46,9 @@  discard block
 block discarded – undo
42 46
 		return $this->findEntities($sql, [$userId]);
43 47
 	}
44 48
 
49
+	/**
50
+	 * @param integer $limit
51
+	 */
45 52
 	public function findAllNamed($userId, $query, $limit = null, $offset = null) {
46 53
 		$sql = 'SELECT id, name, distance FROM *PREFIX*face_recognition WHERE uid = ? AND encoding IS NOT NULL AND LOWER(name) LIKE LOWER(?)';
47 54
 		return $this->findEntities($sql, [$userId, $query], $limit, $offset);
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
@@ -11,6 +11,9 @@  discard block
 block discarded – undo
11 11
 		parent::__construct($db, 'face_recognition_faces', '\OCA\FaceRecognition\Db\FaceNew');
12 12
 	}
13 13
 
14
+	/**
15
+	 * @param integer $model
16
+	 */
14 17
 	public function countFaces(string $userId, $model): int {
15 18
 		$qb = $this->db->getQueryBuilder();
16 19
 		$query = $qb
@@ -28,6 +31,9 @@  discard block
 block discarded – undo
28 31
 		return (int)$data[0];
29 32
 	}
30 33
 
34
+	/**
35
+	 * @param integer $model
36
+	 */
31 37
 	public function getFaces(string $userId, $model): array {
32 38
 		$qb = $this->db->getQueryBuilder();
33 39
 		$query = $qb
Please login to merge, or discard this patch.
lib/Db/ImageMapper.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@  discard block
 block discarded – undo
53 53
 		return $row ? (int)$row['id'] : null;
54 54
 	}
55 55
 
56
+	/**
57
+	 * @param integer $model
58
+	 */
56 59
 	public function countUserImages(string $userId, $model): int {
57 60
 		$qb = $this->db->getQueryBuilder();
58 61
 		$query = $qb
@@ -69,6 +72,9 @@  discard block
 block discarded – undo
69 72
 		return (int)$data[0];
70 73
 	}
71 74
 
75
+	/**
76
+	 * @param integer $model
77
+	 */
72 78
 	public function countUserProcessedImages(string $userId, $model): int {
73 79
 		$qb = $this->db->getQueryBuilder();
74 80
 		$query = $qb
Please login to merge, or discard this patch.
lib/Helper/PythonAnalyzer.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -11,6 +11,11 @@  discard block
 block discarded – undo
11 11
 	protected $model;
12 12
 	protected $fileList;
13 13
 
14
+	/**
15
+	 * @param string $command
16
+	 * @param string $predictor
17
+	 * @param string $model
18
+	 */
14 19
 	function __construct($command, $predictor, $model) {
15 20
 		$this->command = $command;
16 21
 		$this->predictor = $predictor;
@@ -18,6 +23,9 @@  discard block
 block discarded – undo
18 23
 		$this->fileList = "";
19 24
 	}
20 25
 
26
+	/**
27
+	 * @param string $filename
28
+	 */
21 29
 	public function appendFile ($filename)
22 30
 	{
23 31
 		$this->fileList .= " ".escapeshellarg($filename);
Please login to merge, or discard this patch.