@@ -163,10 +163,10 @@ |
||
163 | 163 | $sparql = $this->getSparql(); |
164 | 164 | $result = $sparql->queryConceptScheme($defaultcs); |
165 | 165 | } catch (EasyRdf\Http\Exception | EasyRdf\Exception $e) { |
166 | - if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
167 | - error_log('Caught exception: ' . $e->getMessage()); |
|
168 | - } |
|
169 | - return null; |
|
166 | + if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
167 | + error_log('Caught exception: ' . $e->getMessage()); |
|
168 | + } |
|
169 | + return null; |
|
170 | 170 | } |
171 | 171 | $conceptscheme = $result->resource($defaultcs); |
172 | 172 | $this->order = array( |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | return $lname; |
103 | 103 | } |
104 | 104 | // already a full URI |
105 | - return $this->getUriSpace() . $lname; |
|
105 | + return $this->getUriSpace().$lname; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | // query everything the endpoint knows about the ConceptScheme |
163 | 163 | $sparql = $this->getSparql(); |
164 | 164 | $result = $sparql->queryConceptScheme($defaultcs); |
165 | - } catch (EasyRdf\Http\Exception | EasyRdf\Exception $e) { |
|
165 | + } catch (EasyRdf\Http\Exception | EasyRdf\Exception $e) { |
|
166 | 166 | if ($this->model->getConfig()->getLogCaughtExceptions()) { |
167 | - error_log('Caught exception: ' . $e->getMessage()); |
|
167 | + error_log('Caught exception: '.$e->getMessage()); |
|
168 | 168 | } |
169 | 169 | return null; |
170 | 170 | } |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | foreach ($conceptscheme->allLiterals($prop, null) as $val) { |
198 | 198 | $prop = (substr($prop, 0, 5) == 'dc11:') ? str_replace('dc11:', 'dc:', $prop) : $prop; |
199 | 199 | if ($val->getValue() instanceof DateTime) { |
200 | - $val = Punic\Calendar::formatDate($val->getValue(), 'full', $lang) . ' ' . Punic\Calendar::format($val->getValue(), 'HH:mm:ss', $lang); |
|
200 | + $val = Punic\Calendar::formatDate($val->getValue(), 'full', $lang).' '.Punic\Calendar::format($val->getValue(), 'HH:mm:ss', $lang); |
|
201 | 201 | } |
202 | 202 | $ret[$prop][] = $val; |
203 | 203 | } |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | } |
319 | 319 | // don't know how to parse |
320 | 320 | $rev = $parts[2]; |
321 | - $datestr = $parts[3] . ' ' . $parts[4]; |
|
321 | + $datestr = $parts[3].' '.$parts[4]; |
|
322 | 322 | |
323 | 323 | return "$datestr (r$rev)"; |
324 | 324 | } |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * @param string $array the uri of the concept array class, eg. isothes:ThesaurusArray |
330 | 330 | * @param string $group the uri of the concept group class, eg. isothes:ConceptGroup |
331 | 331 | */ |
332 | - public function getStatistics($lang = '', $array=null, $group=null) |
|
332 | + public function getStatistics($lang = '', $array = null, $group = null) |
|
333 | 333 | { |
334 | 334 | $sparql = $this->getSparql(); |
335 | 335 | // find the number of concepts |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | return $this->getSparql()->queryChangeList($prop, $clang, $offset, $limit); |
651 | 651 | } |
652 | 652 | |
653 | - public function getTitle($lang=null) { |
|
653 | + public function getTitle($lang = null) { |
|
654 | 654 | return $this->config->getTitle($lang); |
655 | 655 | } |
656 | 656 |