Completed
Push — master ( 2f5117...f224df )
by Morris
32:47
created
service/notesservice.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use OCP\Files\IRootFolder;
17 17
 use OCP\Files\Folder;
18 18
 use OCP\ILogger;
19
-
20 19
 use OCA\Notes\Db\Note;
21 20
 
22 21
 /**
Please login to merge, or discard this patch.
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
         return Note::fromFile($this->getFileById($folder, $id), $folder, $this->getTags($id));
85 85
     }
86 86
 
87
+    /**
88
+     * @param integer $id
89
+     */
87 90
     private function getTags ($id) {
88 91
         $tagger = \OC::$server->getTagManager()->load('files');
89 92
         if($tagger===null) {
@@ -121,6 +124,7 @@  discard block
 block discarded – undo
121 124
      * @param string $content the content which will be written into the note
122 125
      * the title is generated from the first line of the content
123 126
      * @param int $mtime time of the note modification (optional)
127
+     * @param string $userId
124 128
      * @throws NoteDoesNotExistException if note does not exist
125 129
      * @return \OCA\Notes\Db\Note the updated note
126 130
      */
@@ -179,6 +183,7 @@  discard block
 block discarded – undo
179 183
      * Set or unset a note as favorite.
180 184
      * @param int $id the id of the note used to update
181 185
      * @param boolean $favorite whether the note should be a favorite or not
186
+     * @param string $userId
182 187
      * @throws NoteDoesNotExistException if note does not exist
183 188
      * @return boolean the new favorite state of the note
184 189
      */
@@ -227,6 +232,9 @@  discard block
 block discarded – undo
227 232
         return trim($str);
228 233
     }
229 234
 
235
+    /**
236
+     * @param string $content
237
+     */
230 238
     private function getSafeTitleFromContent($content) {
231 239
         // prepare content: remove markdown characters and empty spaces
232 240
         $content = preg_replace("/^\s*[*+-]\s+/mu", "", $content); // list item
Please login to merge, or discard this patch.