Completed
Push — master ( be6a7f...0208d4 )
by korelstar
32:55
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
      */
@@ -172,6 +176,7 @@  discard block
 block discarded – undo
172 176
      * Set or unset a note as favorite.
173 177
      * @param int $id the id of the note used to update
174 178
      * @param boolean $favorite whether the note should be a favorite or not
179
+     * @param string $userId
175 180
      * @throws NoteDoesNotExistException if note does not exist
176 181
      * @return boolean the new favorite state of the note
177 182
      */
@@ -205,6 +210,9 @@  discard block
 block discarded – undo
205 210
         $file->delete();
206 211
     }
207 212
 
213
+    /**
214
+     * @param string $content
215
+     */
208 216
     private function getSafeTitleFromContent($content) {
209 217
         // prepare content: remove markdown characters and empty spaces
210 218
         $content = preg_replace("/^\s*[*+-]\s+/mu", "", $content); // list item
Please login to merge, or discard this patch.