Completed
Pull Request — master (#803)
by Dan Michael O.
25:42
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.
controller/Honeypot.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
         return $html;
40 40
     }
41 41
     /**
42
-    * Validate honeypot is empty
43
-    *
44
-    * @param  mixed $value
45
-    * @return boolean
46
-    */
42
+     * Validate honeypot is empty
43
+     *
44
+     * @param  mixed $value
45
+     * @return boolean
46
+     */
47 47
     public function validateHoneypot($value)
48 48
     {
49 49
         if ($this->disabled) {
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/sparql/GenericSparql.php 2 patches
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      * Returns information (as a graph) for one or more concept URIs
454 454
      * @param mixed $uris concept URI (string) or array of URIs
455 455
      * @param string|null $arrayClass the URI for thesaurus array class, or null if not used
456
-     * @param \Vocabulary[]|null $vocabs vocabularies to target
456
+     * @param Vocabulary[] $vocabs vocabularies to target
457 457
      * @return \Concept[]
458 458
      */
459 459
     public function queryConceptInfoGraph($uris, $arrayClass = null, $vocabs = array()) {
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
 
674 674
     /**
675 675
      * Generate a VALUES clause for limiting the targeted graphs.
676
-     * @param Vocabulary[]|null $vocabs array of Vocabulary objects to target
676
+     * @param Vocabulary[] $vocabs array of Vocabulary objects to target
677 677
      * @return string VALUES clause, or "" if not necessary to limit
678 678
      */
679 679
     protected function formatValuesGraph($vocabs) {
@@ -853,6 +853,7 @@  discard block
 block discarded – undo
853 853
      * @param string $searchLang language code used for matching labels (null means any language)
854 854
      * @param string[] $props properties to target e.g. array('skos:prefLabel','skos:altLabel')
855 855
      * @param boolean $unique restrict results to unique concepts (default: false)
856
+     * @param string $filterGraph
856 857
      * @return string sparql query
857 858
      */
858 859
     protected function generateConceptSearchQueryInner($term, $lang, $searchLang, $props, $unique, $filterGraph)
@@ -1118,6 +1119,7 @@  discard block
 block discarded – undo
1118 1119
     /**
1119 1120
      * Generates sparql query clauses used for creating the alphabetical index.
1120 1121
      * @param string $letter the letter (or special class) to search for
1122
+     * @param string $lang
1121 1123
      * @return array of sparql query clause strings
1122 1124
      */
1123 1125
     private function formatFilterConditions($letter, $lang) {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @param string $query
66 66
      * @return string
67
-    */
67
+     */
68 68
     protected function generateQueryPrefixes($query)
69 69
     {
70 70
         // Check for undefined prefixes
@@ -1809,7 +1809,7 @@  discard block
 block discarded – undo
1809 1809
 
1810 1810
     /**
1811 1811
      * Generates a sparql query for finding the hierarchy for a concept.
1812
-	 * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal.
1812
+     * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal.
1813 1813
      * @param string $uri concept uri.
1814 1814
      * @param string $lang
1815 1815
      * @param string $fallback language to use if label is not available in the preferred language
@@ -1886,10 +1886,10 @@  discard block
 block discarded – undo
1886 1886
                 $ret[$uri]['exact'] = $row->exact->getUri();
1887 1887
             }
1888 1888
             if (isset($row->tops)) {
1889
-               $topConceptsList=explode(" ", $row->tops->getValue());
1890
-               // sort to garantee an alphabetical ordering of the URI
1891
-               sort($topConceptsList);
1892
-               $ret[$uri]['tops'] = $topConceptsList;
1889
+                $topConceptsList=explode(" ", $row->tops->getValue());
1890
+                // sort to garantee an alphabetical ordering of the URI
1891
+                sort($topConceptsList);
1892
+                $ret[$uri]['tops'] = $topConceptsList;
1893 1893
             }
1894 1894
             if (isset($row->children)) {
1895 1895
                 if (!isset($ret[$uri]['narrower'])) {
Please login to merge, or discard this patch.
model/Concept.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -50,6 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param Vocabulary $vocab
51 51
      * @param EasyRdf\Resource $resource
52 52
      * @param EasyRdf\Graph $graph
53
+     * @param string|null $clang
53 54
      */
54 55
     public function __construct($model, $vocab, $resource, $graph, $clang)
55 56
     {
@@ -526,6 +527,7 @@  discard block
 block discarded – undo
526 527
 
527 528
     /**
528 529
      * Gets the groups/arrays the concept belongs to.
530
+     * @param boolean $includeArrays
529 531
      */
530 532
     public function getReverseResources($includeArrays) {
531 533
         $groups = array();
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/Vocabulary.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -598,6 +598,9 @@
 block discarded – undo
598 598
       return $bydate;
599 599
     }
600 600
 
601
+    /**
602
+     * @param string $lang
603
+     */
601 604
     public function getTitle($lang=null) {
602 605
       return $this->config->getTitle($lang);
603 606
     }
Please login to merge, or discard this patch.
model/DataObject.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,8 +124,8 @@
 block discarded – undo
124 124
      */
125 125
     public function getEnvLang()
126 126
     {
127
-       // get language from locale, same as used by gettext, set by Controller
128
-       return substr(getenv("LC_ALL"), 0, 2); // @codeCoverageIgnore
127
+        // get language from locale, same as used by gettext, set by Controller
128
+        return substr(getenv("LC_ALL"), 0, 2); // @codeCoverageIgnore
129 129
     }
130 130
 
131 131
     /**
Please login to merge, or discard this patch.
model/VocabularyConfig.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 
266 266
     /**
267 267
      * Returns a boolean value set in the config.ttl config.
268
-     * @return array array of concept class URIs (can be empty)
268
+     * @return string[] array of concept class URIs (can be empty)
269 269
      */
270 270
     public function getIndexClasses()
271 271
     {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
     /**
276 276
      * Returns skosmos:externalProperty values set in the config.ttl config.
277
-     * @return array array of external property URIs (can be empty)
277
+     * @return string[] array of external property URIs (can be empty)
278 278
      */
279 279
     public function getExtProperties()
280 280
     {
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      * Additionally, the chosen content language is inserted with the highest priority
421 421
      * and the vocab default language is inserted with the lowest priority.
422 422
      * @param string $clang
423
-     * @return array of language code strings
423
+     * @return string[] of language code strings
424 424
      */
425 425
     public function getLanguageOrder($clang)
426 426
     {
Please login to merge, or discard this patch.