Completed
Pull Request — master (#982)
by
unknown
01:45
created
model/Vocabulary.php 1 patch
Doc Comments   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Get the localname of a concept in the vocabulary. If the URI is not
122 122
      * in the URI space of this vocabulary, return the full URI.
123 123
      *
124
-     * @param $uri string full URI of concept
124
+     * @param string $uri string full URI of concept
125 125
      * @return string local name of concept, or original full URI if the local name cannot be determined
126 126
      */
127 127
     public function getLocalName($uri)
@@ -293,6 +293,8 @@  discard block
 block discarded – undo
293 293
 
294 294
     /**
295 295
      * Counts the statistics of the vocabulary.
296
+     * @param string $array
297
+     * @param string $group
296 298
      * @return array of the concept/group counts
297 299
      */
298 300
     public function getStatistics($lang = '', $array=null, $group=null)
@@ -332,6 +334,7 @@  discard block
 block discarded – undo
332 334
     /**
333 335
      * Gets the child relations of a concept and whether these children have more children.
334 336
      * @param string $uri
337
+     * @param string $lang
335 338
      */
336 339
     public function getConceptChildren($uri, $lang)
337 340
     {
@@ -440,6 +443,8 @@  discard block
 block discarded – undo
440 443
     /**
441 444
      * Lists the concepts available in the concept group.
442 445
      * @param $clname
446
+     * @param string $glname
447
+     * @param string $clang
443 448
      * @return array
444 449
      */
445 450
     public function listConceptGroupContents($glname, $clang)
@@ -466,7 +471,7 @@  discard block
 block discarded – undo
466 471
     /**
467 472
      * Returns the letters of the alphabet which have been used in this vocabulary.
468 473
      * The returned letters may also include specials such as '0-9' (digits) and '!*' (special characters).
469
-     * @param $clang content language
474
+     * @param string $clang content language
470 475
      * @return array array of letters
471 476
      */
472 477
     public function getAlphabet($clang)
@@ -501,6 +506,7 @@  discard block
 block discarded – undo
501 506
      * Also the special tokens '0-9' (digits), '!*' (special characters) and '*'
502 507
      * (everything) are supported.
503 508
      * @param $letter letter (or special token) to search for
509
+     * @param string $clang
504 510
      */
505 511
     public function searchConceptsAlphabetical($letter, $limit = null, $offset = null, $clang = null)
506 512
     {
@@ -606,7 +612,7 @@  discard block
 block discarded – undo
606 612
     /**
607 613
      * Returns a list of recently changed or entirely new concepts.
608 614
      * @param string $clang content language for the labels
609
-     * @param string $lang UI language for the dates
615
+     * @param string $prop
610 616
      * @return Array
611 617
      */
612 618
     public function getChangeList($prop, $clang, $offset)
@@ -614,6 +620,9 @@  discard block
 block discarded – undo
614 620
       return $this->getSparql()->queryChangeList($clang, $offset, $prop);
615 621
     }
616 622
 
623
+    /**
624
+     * @param string $lang
625
+     */
617 626
     public function getTitle($lang=null) {
618 627
       return $this->config->getTitle($lang);
619 628
     }
Please login to merge, or discard this patch.
controller/WebController.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -235,6 +235,11 @@  discard block
 block discarded – undo
235 235
             ));
236 236
     }
237 237
 
238
+    /**
239
+     * @param string $fromName
240
+     * @param string|null $fromEmail
241
+     * @param string $sender
242
+     */
238 243
     private function createFeedbackHeaders($fromName, $fromEmail, $toMail, $sender)
239 244
     {
240 245
         $headers = "MIME-Version: 1.0" . "\r\n";
@@ -256,6 +261,7 @@  discard block
 block discarded – undo
256 261
      * @param string $fromName senders own name.
257 262
      * @param string $fromEmail senders email address.
258 263
      * @param string $fromVocab which vocabulary is the feedback related to.
264
+     * @param string $toMail
259 265
      */
260 266
     public function sendFeedback($request, $message, $fromName = null, $fromEmail = null, $fromVocab = null, $toMail = null)
261 267
     {
@@ -538,6 +544,7 @@  discard block
 block discarded – undo
538 544
 
539 545
     /**
540 546
      * Invokes a very generic errorpage.
547
+     * @param string $message
541 548
      */
542 549
     public function invokeGenericErrorPage($request, $message = null)
543 550
     {
@@ -574,6 +581,9 @@  discard block
 block discarded – undo
574 581
             );
575 582
     }
576 583
 
584
+    /**
585
+     * @param Request $request
586
+     */
577 587
     public function formatChangeList($request, $prop='dc:created') {
578 588
         // set language parameters for gettext
579 589
         $this->setLanguageProperties($request->getLang());
Please login to merge, or discard this patch.