Completed
Pull Request — master (#848)
by
unknown
02:59 queued 01:14
created
model/sparql/GenericSparql.php 1 patch
Indentation   +17 added lines, -17 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
@@ -261,25 +261,25 @@  discard block
 block discarded – undo
261 261
     }
262 262
 	
263 263
     /**
264
-    * Used to generate the BIND + FILTER part related to the languages
265
-    * @param $varnameInput the name of the variable from which to extract the language
266
-    * @param $varnameOutput the name of the variable that will contain the language tag
267
-    * @param array $values languages to use in the FILTER
268
-    * @return string part of the sparql query dealing wit the languages 
269
-    */
264
+     * Used to generate the BIND + FILTER part related to the languages
265
+     * @param $varnameInput the name of the variable from which to extract the language
266
+     * @param $varnameOutput the name of the variable that will contain the language tag
267
+     * @param array $values languages to use in the FILTER
268
+     * @return string part of the sparql query dealing wit the languages 
269
+     */
270 270
     protected function formatValuesFilterAndBind($varnameInput, $varnameOutput, $values) {
271
-    	  $queryPart = "BIND(lang($varnameInput) AS $varnameOutput)";
272
-	      $first = true;
271
+        $queryPart = "BIND(lang($varnameInput) AS $varnameOutput)";
272
+        $first = true;
273 273
 
274
-	      $queryPart .= "FILTER(" ;
274
+        $queryPart .= "FILTER(" ;
275 275
         foreach ($values as $val) {
276 276
             if($first != true){
277 277
               $queryPart .= ' || ';
278 278
             }
279
-	      $first = false;
279
+        $first = false;
280 280
             $queryPart .= "$varnameOutput = '$val'";
281 281
         }
282
-	      $queryPart .= ")";
282
+        $queryPart .= ")";
283 283
 
284 284
         return $queryPart;
285 285
     }
@@ -1832,7 +1832,7 @@  discard block
 block discarded – undo
1832 1832
 
1833 1833
     /**
1834 1834
      * Generates a sparql query for finding the hierarchy for a concept.
1835
-	 * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal.
1835
+     * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal.
1836 1836
      * @param string $uri concept uri.
1837 1837
      * @param string $lang
1838 1838
      * @param string $fallback language to use if label is not available in the preferred language
@@ -1909,10 +1909,10 @@  discard block
 block discarded – undo
1909 1909
                 $ret[$uri]['exact'] = $row->exact->getUri();
1910 1910
             }
1911 1911
             if (isset($row->tops)) {
1912
-               $topConceptsList=explode(" ", $row->tops->getValue());
1913
-               // sort to garantee an alphabetical ordering of the URI
1914
-               sort($topConceptsList);
1915
-               $ret[$uri]['tops'] = $topConceptsList;
1912
+                $topConceptsList=explode(" ", $row->tops->getValue());
1913
+                // sort to garantee an alphabetical ordering of the URI
1914
+                sort($topConceptsList);
1915
+                $ret[$uri]['tops'] = $topConceptsList;
1916 1916
             }
1917 1917
             if (isset($row->children)) {
1918 1918
                 if (!isset($ret[$uri]['narrower'])) {
Please login to merge, or discard this patch.