Completed
Pull Request — master (#834)
by
unknown
01:56
created
controller/WebController.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -278,6 +278,10 @@  discard block
 block discarded – undo
278 278
             ));
279 279
     }
280 280
 
281
+    /**
282
+     * @param string $fromName
283
+     * @param string|null $fromEmail
284
+     */
281 285
     private function createFeedbackHeaders($fromName, $fromEmail, $toMail, $sender)
282 286
     {
283 287
         $headers = "MIME-Version: 1.0″ . '\r\n";
@@ -580,6 +584,7 @@  discard block
 block discarded – undo
580 584
 
581 585
     /**
582 586
      * Invokes a very generic errorpage.
587
+     * @param string $message
583 588
      */
584 589
     public function invokeGenericErrorPage($request, $message = null)
585 590
     {
Please login to merge, or discard this patch.
model/sparql/GenericSparql.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -289,6 +289,7 @@  discard block
 block discarded – undo
289 289
     /**
290 290
      * Counts the number of concepts in a easyRDF graph with a specific language.
291 291
      * @param array $langs Languages to query for
292
+     * @param string[] $classes
292 293
      * @return Array containing count of concepts for each language and property.
293 294
      */
294 295
     public function countLangConcepts($langs, $classes = null) {
@@ -473,7 +474,7 @@  discard block
 block discarded – undo
473 474
      * Returns information (as a graph) for one or more concept URIs
474 475
      * @param mixed $uris concept URI (string) or array of URIs
475 476
      * @param string|null $arrayClass the URI for thesaurus array class, or null if not used
476
-     * @param \Vocabulary[]|null $vocabs vocabularies to target
477
+     * @param Vocabulary[] $vocabs vocabularies to target
477 478
      * @return \EasyRdf\Graph
478 479
      */
479 480
     public function queryConceptInfoGraph($uris, $arrayClass = null, $vocabs = array()) {
@@ -489,7 +490,7 @@  discard block
 block discarded – undo
489 490
 
490 491
     /**
491 492
      * Returns information (as an array of Concept objects) for one or more concept URIs
492
-     * @param mixed $uris concept URI (string) or array of URIs
493
+     * @param string $uris concept URI (string) or array of URIs
493 494
      * @param string|null $arrayClass the URI for thesaurus array class, or null if not used
494 495
      * @param \Vocabulary[] $vocabs vocabularies to target
495 496
      * @param string|null $clang content language
@@ -704,7 +705,7 @@  discard block
 block discarded – undo
704 705
 
705 706
     /**
706 707
      * Generate a VALUES clause for limiting the targeted graphs.
707
-     * @param Vocabulary[]|null $vocabs array of Vocabulary objects to target
708
+     * @param Vocabulary[] $vocabs array of Vocabulary objects to target
708 709
      * @return string VALUES clause, or "" if not necessary to limit
709 710
      */
710 711
     protected function formatValuesGraph($vocabs) {
@@ -884,6 +885,7 @@  discard block
 block discarded – undo
884 885
      * @param string $searchLang language code used for matching labels (null means any language)
885 886
      * @param string[] $props properties to target e.g. array('skos:prefLabel','skos:altLabel')
886 887
      * @param boolean $unique restrict results to unique concepts (default: false)
888
+     * @param string $filterGraph
887 889
      * @return string sparql query
888 890
      */
889 891
     protected function generateConceptSearchQueryInner($term, $lang, $searchLang, $props, $unique, $filterGraph)
@@ -1158,6 +1160,7 @@  discard block
 block discarded – undo
1158 1160
     /**
1159 1161
      * Generates sparql query clauses used for creating the alphabetical index.
1160 1162
      * @param string $letter the letter (or special class) to search for
1163
+     * @param string $lang
1161 1164
      * @return array of sparql query clause strings
1162 1165
      */
1163 1166
     private function formatFilterConditions($letter, $lang) {
@@ -1325,6 +1328,7 @@  discard block
 block discarded – undo
1325 1328
     /**
1326 1329
      * Query for the first characters (letter or otherwise) of the labels in the particular language.
1327 1330
      * @param string $lang language
1331
+     * @param string[] $classes
1328 1332
      * @return array array of characters
1329 1333
      */
1330 1334
     public function queryFirstCharacters($lang, $classes = null) {
@@ -1647,7 +1651,7 @@  discard block
 block discarded – undo
1647 1651
     /**
1648 1652
      * Query a single transitive property of a concept.
1649 1653
      * @param string $uri
1650
-     * @param array $props the property/properties.
1654
+     * @param string[] $props the property/properties.
1651 1655
      * @param string $lang
1652 1656
      * @param string $fallbacklang language to use if label is not available in the preferred language
1653 1657
      * @param integer $limit
Please login to merge, or discard this patch.
model/Vocabulary.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -271,6 +271,8 @@  discard block
 block discarded – undo
271 271
 
272 272
     /**
273 273
      * Counts the statistics of the vocabulary.
274
+     * @param string $array
275
+     * @param string $group
274 276
      * @return array of the concept/group counts
275 277
      */
276 278
     public function getStatistics($lang = '', $array=null, $group=null)
@@ -310,6 +312,7 @@  discard block
 block discarded – undo
310 312
     /**
311 313
      * Gets the child relations of a concept and whether these children have more children.
312 314
      * @param string $uri
315
+     * @param string $lang
313 316
      */
314 317
     public function getConceptChildren($uri, $lang)
315 318
     {
@@ -418,6 +421,8 @@  discard block
 block discarded – undo
418 421
     /**
419 422
      * Lists the concepts available in the concept group.
420 423
      * @param $clname
424
+     * @param string $glname
425
+     * @param string $clang
421 426
      * @return array
422 427
      */
423 428
     public function listConceptGroupContents($glname, $clang)
@@ -585,6 +590,7 @@  discard block
 block discarded – undo
585 590
      * Returns a list of recently changed or entirely new concepts.
586 591
      * @param string $clang content language for the labels
587 592
      * @param string $lang UI language for the dates
593
+     * @param string $prop
588 594
      * @return Array
589 595
      */
590 596
     public function getChangeList($prop, $clang, $lang, $offset)
@@ -598,6 +604,9 @@  discard block
 block discarded – undo
598 604
       return $bydate;
599 605
     }
600 606
 
607
+    /**
608
+     * @param string $lang
609
+     */
601 610
     public function getTitle($lang=null) {
602 611
       return $this->config->getTitle($lang);
603 612
     }
Please login to merge, or discard this patch.