Completed
Pull Request — master (#930)
by Dan Michael O.
01:51
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.
model/ConceptMappingPropertyValue.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -169,6 +169,8 @@
 block discarded – undo
169 169
 
170 170
     /**
171 171
      * Return the mapping as a JSKOS-compatible array.
172
+     * @param string $lang
173
+     * @param string $hrefLink
172 174
      * @return array
173 175
      */
174 176
     public function asJskos($queryExVocabs = true, $lang = null, $hrefLink = null)
Please login to merge, or discard this patch.
model/VocabularyConfig.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,6 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
     /**
268 268
      * Returns skosmos:marcSourcecode value set in config.ttl.
269
+     * @param string $lang
269 270
      * @return string marcsource name
270 271
      */
271 272
     public function getMarcSourceCode($lang = null)
@@ -275,7 +276,7 @@  discard block
 block discarded – undo
275 276
 
276 277
     /**
277 278
      * Returns a boolean value set in the config.ttl config.
278
-     * @return array array of concept class URIs (can be empty)
279
+     * @return string[] array of concept class URIs (can be empty)
279 280
      */
280 281
     public function getIndexClasses()
281 282
     {
@@ -284,7 +285,7 @@  discard block
 block discarded – undo
284 285
 
285 286
     /**
286 287
      * Returns skosmos:externalProperty values set in the config.ttl config.
287
-     * @return array array of external property URIs (can be empty)
288
+     * @return string[] array of external property URIs (can be empty)
288 289
      */
289 290
     public function getExtProperties()
290 291
     {
@@ -410,6 +411,7 @@  discard block
 block discarded – undo
410 411
 
411 412
     /**
412 413
      * Returns the vocabulary dc:type value(s) with their labels and uris, if set in the vocabulary configuration.
414
+     * @param string $lang
413 415
      * @return array of objects or an empty array
414 416
      */
415 417
     public function getTypes($lang = null)
Please login to merge, or discard this patch.
controller/WebController.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      *
263 263
      * @param Concept $concept
264 264
      * @param Vocabulary $vocab
265
-     * @return DateTime|null
265
+     * @return DateTime
266 266
      */
267 267
     protected function getModifiedDate(Concept $concept, Vocabulary $vocab)
268 268
     {
@@ -438,6 +438,11 @@  discard block
 block discarded – undo
438 438
             ));
439 439
     }
440 440
 
441
+    /**
442
+     * @param string $fromName
443
+     * @param string|null $fromEmail
444
+     * @param string $sender
445
+     */
441 446
     private function createFeedbackHeaders($fromName, $fromEmail, $toMail, $sender)
442 447
     {
443 448
         $headers = "MIME-Version: 1.0″ . '\r\n";
@@ -460,6 +465,7 @@  discard block
 block discarded – undo
460 465
      * @param string $fromName senders own name.
461 466
      * @param string $fromEmail senders email adress.
462 467
      * @param string $fromVocab which vocabulary is the feedback related to.
468
+     * @param string $toMail
463 469
      */
464 470
     public function sendFeedback($request, $message, $fromName = null, $fromEmail = null, $fromVocab = null, $toMail = null)
465 471
     {
@@ -740,6 +746,7 @@  discard block
 block discarded – undo
740 746
 
741 747
     /**
742 748
      * Invokes a very generic errorpage.
749
+     * @param string $message
743 750
      */
744 751
     public function invokeGenericErrorPage($request, $message = null)
745 752
     {
Please login to merge, or discard this patch.
model/Vocabulary.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * Get the localname of a concept in the vocabulary. If the URI is not
110 110
      * in the URI space of this vocabulary, return the full URI.
111 111
      *
112
-     * @param $uri string full URI of concept
112
+     * @param string $uri string full URI of concept
113 113
      * @return string local name of concept, or original full URI if the local name cannot be determined
114 114
      */
115 115
     public function getLocalName($uri)
@@ -281,6 +281,8 @@  discard block
 block discarded – undo
281 281
 
282 282
     /**
283 283
      * Counts the statistics of the vocabulary.
284
+     * @param string $array
285
+     * @param string $group
284 286
      * @return array of the concept/group counts
285 287
      */
286 288
     public function getStatistics($lang = '', $array=null, $group=null)
@@ -320,6 +322,7 @@  discard block
 block discarded – undo
320 322
     /**
321 323
      * Gets the child relations of a concept and whether these children have more children.
322 324
      * @param string $uri
325
+     * @param string $lang
323 326
      */
324 327
     public function getConceptChildren($uri, $lang)
325 328
     {
@@ -428,6 +431,8 @@  discard block
 block discarded – undo
428 431
     /**
429 432
      * Lists the concepts available in the concept group.
430 433
      * @param $clname
434
+     * @param string $glname
435
+     * @param string $clang
431 436
      * @return array
432 437
      */
433 438
     public function listConceptGroupContents($glname, $clang)
@@ -595,6 +600,7 @@  discard block
 block discarded – undo
595 600
      * Returns a list of recently changed or entirely new concepts.
596 601
      * @param string $clang content language for the labels
597 602
      * @param string $lang UI language for the dates
603
+     * @param string $prop
598 604
      * @return Array
599 605
      */
600 606
     public function getChangeList($prop, $clang, $lang, $offset)
@@ -608,6 +614,9 @@  discard block
 block discarded – undo
608 614
       return $bydate;
609 615
     }
610 616
 
617
+    /**
618
+     * @param string $lang
619
+     */
611 620
     public function getTitle($lang=null) {
612 621
       return $this->config->getTitle($lang);
613 622
     }
Please login to merge, or discard this patch.