@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | // 1. Ensure characters with special meaning in Lucene are escaped |
45 | 45 | $lucenemap = array(); |
46 | 46 | foreach (str_split(self::LUCENE_ESCAPE_CHARS) as $char) { |
47 | - $lucenemap[$char] = '\\' . $char; // escape with a backslash |
|
47 | + $lucenemap[$char] = '\\'.$char; // escape with a backslash |
|
48 | 48 | } |
49 | 49 | $term = strtr($term, $lucenemap); |
50 | 50 | |
@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | |
103 | 103 | # make text query clause |
104 | 104 | $lcletter = mb_strtolower($letter, 'UTF-8'); // convert to lower case, UTF-8 safe |
105 | - $textcondPref = $this->createTextQueryCondition($letter . '*', 'skos:prefLabel', $lang); |
|
106 | - $textcondAlt = $this->createTextQueryCondition($letter . '*', 'skos:altLabel', $lang); |
|
105 | + $textcondPref = $this->createTextQueryCondition($letter.'*', 'skos:prefLabel', $lang); |
|
106 | + $textcondAlt = $this->createTextQueryCondition($letter.'*', 'skos:altLabel', $lang); |
|
107 | 107 | |
108 | 108 | $query = <<<EOQ |
109 | 109 | SELECT DISTINCT ?s ?label ?alabel |
@@ -23,5 +23,5 @@ |
||
23 | 23 | |
24 | 24 | } catch (Exception $e) { |
25 | 25 | header("HTTP/1.0 500 Internal Server Error"); |
26 | - echo('ERROR: ' . $e->getMessage()); |
|
26 | + echo('ERROR: '.$e->getMessage()); |
|
27 | 27 | } |