Completed
Push — master ( c84dc9...d90417 )
by
unknown
19s queued 14s
created
model/Vocabulary.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * Get the localname of a concept in the vocabulary. If the URI is not
132 132
      * in the URI space of this vocabulary, return the full URI.
133 133
      *
134
-     * @param $uri string full URI of concept
134
+     * @param string $uri string full URI of concept
135 135
      * @return string local name of concept, or original full URI if the local name cannot be determined
136 136
      */
137 137
     public function getLocalName($uri)
@@ -303,6 +303,8 @@  discard block
 block discarded – undo
303 303
 
304 304
     /**
305 305
      * Counts the statistics of the vocabulary.
306
+     * @param string $array
307
+     * @param string $group
306 308
      * @return Array containing the label counts
307 309
      */
308 310
     public function getStatistics($lang = '', $array=null, $group=null)
@@ -342,6 +344,7 @@  discard block
 block discarded – undo
342 344
     /**
343 345
      * Gets the child relations of a concept and whether these children have more children.
344 346
      * @param string $uri
347
+     * @param string $lang
345 348
      */
346 349
     public function getConceptChildren($uri, $lang)
347 350
     {
@@ -450,6 +453,8 @@  discard block
 block discarded – undo
450 453
     /**
451 454
      * Lists the concepts available in the concept group.
452 455
      * @param $clname
456
+     * @param string $glname
457
+     * @param string $clang
453 458
      * @return array
454 459
      */
455 460
     public function listConceptGroupContents($glname, $clang)
@@ -476,7 +481,7 @@  discard block
 block discarded – undo
476 481
     /**
477 482
      * Returns the letters of the alphabet which have been used in this vocabulary.
478 483
      * The returned letters may also include specials such as '0-9' (digits) and '!*' (special characters).
479
-     * @param $clang content language
484
+     * @param string $clang content language
480 485
      * @return array array of letters
481 486
      */
482 487
     public function getAlphabet($clang)
@@ -511,6 +516,7 @@  discard block
 block discarded – undo
511 516
      * Also the special tokens '0-9' (digits), '!*' (special characters) and '*'
512 517
      * (everything) are supported.
513 518
      * @param $letter letter (or special token) to search for
519
+     * @param string $clang
514 520
      */
515 521
     public function searchConceptsAlphabetical($letter, $limit = null, $offset = null, $clang = null)
516 522
     {
@@ -626,6 +632,9 @@  discard block
 block discarded – undo
626 632
       return $this->getSparql()->queryChangeList($prop, $clang, $offset, $limit);
627 633
     }
628 634
 
635
+    /**
636
+     * @param string $lang
637
+     */
629 638
     public function getTitle($lang=null) {
630 639
       return $this->config->getTitle($lang);
631 640
     }
Please login to merge, or discard this patch.
model/sparql/GenericSparql.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @param string $query
67 67
      * @return string
68
-    */
68
+     */
69 69
     protected function generateQueryPrefixes($query)
70 70
     {
71 71
         // Check for undefined prefixes
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
         $gcl = $this->graphClause;
234 234
         $classes = ($classes) ? $classes : array('http://www.w3.org/2004/02/skos/core#Concept');
235 235
 
236
-	$quote_string = function($val) { return "'$val'"; };
237
-	$quoted_values = array_map($quote_string, $langs);
238
-	$langFilter = "FILTER(?lang IN (" . implode(',', $quoted_values) . "))";
236
+  $quote_string = function($val) { return "'$val'"; };
237
+  $quoted_values = array_map($quote_string, $langs);
238
+  $langFilter = "FILTER(?lang IN (" . implode(',', $quoted_values) . "))";
239 239
 
240 240
         $values = $this->formatValues('?type', $classes, 'uri');
241 241
         $valuesProp = $this->formatValues('?prop', $props, null);
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
         return $query;
963 963
     }
964 964
     /**
965
-    *  This function can be overwritten in other SPARQL dialects for the possibility of handling the different language clauses
965
+     *  This function can be overwritten in other SPARQL dialects for the possibility of handling the different language clauses
966 966
      * @param string $lang
967 967
      * @return string formatted language clause
968 968
      */
@@ -1911,7 +1911,7 @@  discard block
 block discarded – undo
1911 1911
 
1912 1912
     /**
1913 1913
      * Generates a sparql query for finding the hierarchy for a concept.
1914
-	 * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal.
1914
+     * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal.
1915 1915
      * @param string $uri concept uri.
1916 1916
      * @param string $lang
1917 1917
      * @param string $fallback language to use if label is not available in the preferred language
@@ -1988,10 +1988,10 @@  discard block
 block discarded – undo
1988 1988
                 $ret[$uri]['exact'] = $row->exact->getUri();
1989 1989
             }
1990 1990
             if (isset($row->tops)) {
1991
-               $topConceptsList=explode(" ", $row->tops->getValue());
1992
-               // sort to guarantee an alphabetical ordering of the URI
1993
-               sort($topConceptsList);
1994
-               $ret[$uri]['tops'] = $topConceptsList;
1991
+                $topConceptsList=explode(" ", $row->tops->getValue());
1992
+                // sort to guarantee an alphabetical ordering of the URI
1993
+                sort($topConceptsList);
1994
+                $ret[$uri]['tops'] = $topConceptsList;
1995 1995
             }
1996 1996
             if (isset($row->children)) {
1997 1997
                 if (!isset($ret[$uri]['narrower'])) {
Please login to merge, or discard this patch.
model/BaseConfig.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@
 block discarded – undo
7 7
 abstract class BaseConfig extends DataObject
8 8
 {
9 9
 
10
-	/**
11
-     * Returns a boolean value based on a literal value from the config.ttl configuration.
12
-     * @param string $property the property to query
13
-     * @param boolean $default the default value if the value is not set in configuration
14
-     * @return boolean the boolean value for the given property, or the default value if not found
15
-     */
10
+  /**
11
+   * Returns a boolean value based on a literal value from the config.ttl configuration.
12
+   * @param string $property the property to query
13
+   * @param boolean $default the default value if the value is not set in configuration
14
+   * @return boolean the boolean value for the given property, or the default value if not found
15
+   */
16 16
     protected function getBoolean($property, $default = false)
17 17
     {
18 18
         $val = $this->getResource()->getLiteral($property);
Please login to merge, or discard this patch.