Completed
Pull Request — master (#848)
by
unknown
02:59 queued 01:14
created
model/VocabularyCategory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
  */
11 11
 class VocabularyCategory extends DataObject
12 12
 {
13
+    /**
14
+     * @param Model $model
15
+     */
13 16
     public function __construct($model, $resource)
14 17
     {
15 18
         if (!($model instanceof Model)) {
Please login to merge, or discard this patch.
model/SkosmosTurtleParser.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -55,6 +55,7 @@
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * Steps back, restoring the previous character or statement read() to the input buffer.
58
+     * @param string $chars
58 59
      */
59 60
     protected function unread($chars)
60 61
     {
Please login to merge, or discard this patch.
model/LabelSkosXL.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -3,6 +3,9 @@
 block discarded – undo
3 3
 class LabelSkosXL extends DataObject
4 4
 {
5 5
 
6
+    /**
7
+     * @param Model $model
8
+     */
6 9
     public function __construct($model, $resource)
7 10
     {
8 11
         parent::__construct($model, $resource);
Please login to merge, or discard this patch.
model/ConceptPropertyValueLiteral.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -10,6 +10,11 @@
 block discarded – undo
10 10
     /** property type */
11 11
     private $type;
12 12
 
13
+    /**
14
+     * @param Model $model
15
+     * @param Vocabulary $vocab
16
+     * @param Resource $resource
17
+     */
13 18
     public function __construct($model, $vocab, $resource, $literal, $prop)
14 19
     {
15 20
         parent::__construct($model, $vocab, $resource);
Please login to merge, or discard this patch.
model/Concept.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -74,6 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param Vocabulary $vocab
75 75
      * @param EasyRdf\Resource $resource
76 76
      * @param EasyRdf\Graph $graph
77
+     * @param string|null $clang
77 78
      */
78 79
     public function __construct($model, $vocab, $resource, $graph, $clang)
79 80
     {
@@ -738,6 +739,7 @@  discard block
 block discarded – undo
738 739
 
739 740
     /**
740 741
      * Gets the groups/arrays the concept belongs to.
742
+     * @param boolean $includeArrays
741 743
      */
742 744
     private function getCollections($includeArrays) {
743 745
         $groups = array();
Please login to merge, or discard this patch.
controller/RestController.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
         return $this->returnJson($ret);
98 98
     }
99 99
 
100
+    /**
101
+     * @param Request $request
102
+     */
100 103
     private function constructSearchParameters($request)
101 104
     {
102 105
         $parameters = new ConceptSearchParameters($request, $this->model->getConfig(), true);
@@ -112,6 +115,10 @@  discard block
 block discarded – undo
112 115
         return $parameters;
113 116
     }
114 117
 
118
+    /**
119
+     * @param Request $request
120
+     * @param ConceptSearchParameters $parameters
121
+     */
115 122
     private function transformSearchResults($request, $results, $parameters)
116 123
     {
117 124
         // before serializing to JSON, get rid of the Vocabulary object that came with each resource
@@ -408,6 +415,10 @@  discard block
 block discarded – undo
408 415
         return $this->returnJson($ret);
409 416
     }
410 417
 
418
+    /**
419
+     * @param string $label
420
+     * @param string $lang
421
+     */
411 422
     private function findLookupHits($results, $label, $lang)
412 423
     {
413 424
         $hits = array();
@@ -469,6 +480,9 @@  discard block
 block discarded – undo
469 480
         return $hits;
470 481
     }
471 482
 
483
+    /**
484
+     * @param string $lang
485
+     */
472 486
     private function transformLookupResults($lang, $hits)
473 487
     {
474 488
         if (sizeof($hits) == 0) {
@@ -540,6 +554,9 @@  discard block
 block discarded – undo
540 554
         return $this->returnJson($ret);
541 555
     }
542 556
 
557
+    /**
558
+     * @param Request $request
559
+     */
543 560
     private function redirectToVocabData($request) {
544 561
         $urls = $request->getVocab()->getConfig()->getDataURLs();
545 562
         if (sizeof($urls) == 0) {
@@ -555,6 +572,9 @@  discard block
 block discarded – undo
555 572
         header("Location: " . $urls[$format]);
556 573
     }
557 574
 
575
+    /**
576
+     * @param string $format
577
+     */
558 578
     private function returnDataResults($results, $format) {
559 579
         if ($format == 'application/ld+json' || $format == 'application/json') {
560 580
             // further compact JSON-LD document using a context
@@ -650,6 +670,12 @@  discard block
 block discarded – undo
650 670
         return $this->returnJson($ret);
651 671
     }
652 672
 
673
+    /**
674
+     * @param string $uri
675
+     * @param string $lang
676
+     * @param string $propname
677
+     * @param string $propuri
678
+     */
653 679
     private function transformPropertyResults($uri, $lang, $objects, $propname, $propuri)
654 680
     {
655 681
         $results = array();
@@ -665,6 +691,14 @@  discard block
 block discarded – undo
665 691
         return $ret;
666 692
     }
667 693
 
694
+    /**
695
+     * @param string $uri
696
+     * @param string $lang
697
+     * @param string $tpropname
698
+     * @param string $tpropuri
699
+     * @param string $dpropname
700
+     * @param string $dpropuri
701
+     */
668 702
     private function transformTransitivePropertyResults($uri, $lang, $objects, $tpropname, $tpropuri, $dpropname, $dpropuri)
669 703
     {
670 704
         $results = array();
Please login to merge, or discard this patch.
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/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.
model/VocabularyConfig.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -265,6 +265,7 @@  discard block
 block discarded – undo
265 265
 
266 266
     /**
267 267
      * Returns skosmos:marcSourcecode value set in config.ttl.
268
+     * @param string $lang
268 269
      * @return string marcsource name
269 270
      */
270 271
     public function getMarcSourceCode($lang = null)
@@ -274,7 +275,7 @@  discard block
 block discarded – undo
274 275
 
275 276
     /**
276 277
      * Returns a boolean value set in the config.ttl config.
277
-     * @return array array of concept class URIs (can be empty)
278
+     * @return string[] array of concept class URIs (can be empty)
278 279
      */
279 280
     public function getIndexClasses()
280 281
     {
@@ -283,7 +284,7 @@  discard block
 block discarded – undo
283 284
 
284 285
     /**
285 286
      * Returns skosmos:externalProperty values set in the config.ttl config.
286
-     * @return array array of external property URIs (can be empty)
287
+     * @return string[] array of external property URIs (can be empty)
287 288
      */
288 289
     public function getExtProperties()
289 290
     {
@@ -409,6 +410,7 @@  discard block
 block discarded – undo
409 410
 
410 411
     /**
411 412
      * Returns the vocabulary dc:type value(s) with their labels and uris, if set in the vocabulary configuration.
413
+     * @param string $lang
412 414
      * @return array of objects or an empty array
413 415
      */
414 416
     public function getTypes($lang = null)
@@ -429,7 +431,7 @@  discard block
 block discarded – undo
429 431
      * Additionally, the chosen content language is inserted with the highest priority
430 432
      * and the vocab default language is inserted with the lowest priority.
431 433
      * @param string $clang
432
-     * @return array of language code strings
434
+     * @return string[] of language code strings
433 435
      */
434 436
     public function getLanguageOrder($clang)
435 437
     {
Please login to merge, or discard this patch.