Completed
Pull Request — master (#210)
by korelstar
35:08
created
service/notesservice.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@  discard block
 block discarded – undo
45 45
         $this->appName = $appName;
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $userId
50
+     */
48 51
     public function getCategories($userId) {
49 52
         $notesFolder = $this->getFolderForUser($userId);
50 53
         $categories = $this->gatherSubfolders($notesFolder);
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
         return $this->getNote($this->getFileById($folder, $id), $folder, $this->getTags($id));
91 94
     }
92 95
 
96
+    /**
97
+     * @param integer $id
98
+     */
93 99
     private function getTags ($id) {
94 100
         $tagger = \OC::$server->getTagManager()->load('files');
95 101
         if($tagger===null) {
@@ -141,6 +147,7 @@  discard block
 block discarded – undo
141 147
      * @param string $content the content which will be written into the note
142 148
      * the title is generated from the first line of the content
143 149
      * @param int $mtime time of the note modification (optional)
150
+     * @param string $userId
144 151
      * @throws NoteDoesNotExistException if note does not exist
145 152
      * @return \OCA\Notes\Db\Note the updated note
146 153
      */
@@ -199,6 +206,7 @@  discard block
 block discarded – undo
199 206
      * Set or unset a note as favorite.
200 207
      * @param int $id the id of the note used to update
201 208
      * @param boolean $favorite whether the note should be a favorite or not
209
+     * @param string $userId
202 210
      * @throws NoteDoesNotExistException if note does not exist
203 211
      * @return boolean the new favorite state of the note
204 212
      */
@@ -254,6 +262,9 @@  discard block
 block discarded – undo
254 262
         return trim($str);
255 263
     }
256 264
 
265
+    /**
266
+     * @param string $content
267
+     */
257 268
     private function getSafeTitleFromContent($content) {
258 269
         // prepare content: remove markdown characters and empty spaces
259 270
         $content = preg_replace("/^\s*[*+-]\s+/mu", "", $content); // list item
Please login to merge, or discard this patch.