Completed
Pull Request — master (#982)
by
unknown
01:51
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/RestController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -575,9 +575,9 @@  discard block
 block discarded – undo
575 575
                 $vocid = $request->getVocab()->getId();
576 576
                 return $this->returnError('404', 'Not Found', "No download source URL known for vocabulary $vocid in language $dataLang");
577 577
             }
578
-		} else {
578
+    } else {
579 579
             header("Location: " . $urls[$format]);
580
-		}
580
+    }
581 581
     }
582 582
 
583 583
     private function returnDataResults($results, $format) {
@@ -1090,9 +1090,9 @@  discard block
 block discarded – undo
1090 1090
 
1091 1091
         return $this->returnJson(array_merge_recursive($this->context,
1092 1092
                                                         array('@context' => array( '@language' => $request->getLang(),
1093
-                                                                                     'prefLabel' => 'skos:prefLabel',
1094
-                                                                                     'xsd' => 'http://www.w3.org/2001/XMLSchema#',
1095
-                                                                                     'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#date') )
1093
+                                                                                      'prefLabel' => 'skos:prefLabel',
1094
+                                                                                      'xsd' => 'http://www.w3.org/2001/XMLSchema#',
1095
+                                                                                      'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#date') )
1096 1096
                                                         ),
1097 1097
                                                         array('changeList' => $changeList)));
1098 1098
 
Please login to merge, or discard this patch.