Skip to content

Commit

Permalink
Merge pull request #1207 from kinow/replace-nbsp-space
Browse files Browse the repository at this point in the history
Replace NBSP by spaces
  • Loading branch information
osma authored Sep 15, 2021
2 parents 4b4359d + 5911225 commit 33a2222
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions model/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function getExternalLabel($exvoc, $exuri, $lang)
$exsparql = $exvoc->getSparql();
$results = $exsparql->queryLabel($exuri, $lang);
return isset($results[$lang]) ? $results[$lang] : null;
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->model->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand All @@ -72,7 +72,7 @@ protected function getExternalNotation($exvoc, $exuri)
$exsparql = $exvoc->getSparql();
$results = $exsparql->queryNotation($exuri);
return isset($results) ? $results : null;
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->model->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand Down
4 changes: 2 additions & 2 deletions model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ private function disambiguateVocabulary($vocabs, $uri, $preferredVocabId = null)
// not found in preferred vocabulary, fall back to next method
break;
}
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand All @@ -494,7 +494,7 @@ private function disambiguateVocabulary($vocabs, $uri, $preferredVocabId = null)
if ($vocab->getConceptLabel($uri, null) !== null) {
return $vocab;
}
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand Down
6 changes: 3 additions & 3 deletions model/Vocabulary.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function getInfo($lang = null)
// query everything the endpoint knows about the ConceptScheme
$sparql = $this->getSparql();
$result = $sparql->queryConceptScheme($defaultcs);
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->model->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand Down Expand Up @@ -252,7 +252,7 @@ public function getConceptSchemes($lang = '')
$conceptSchemes = null;
try {
$conceptSchemes = $this->getSparql()->queryConceptSchemes($lang);
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->model->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand Down Expand Up @@ -452,7 +452,7 @@ public function getConceptInfo($uri, $clang)
$conceptInfo = null;
try {
$conceptInfo = $sparql->queryConceptInfo($uri, $this->config->getArrayClassURI(), array($this), $clang);
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
} catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
if ($this->model->getConfig()->getLogCaughtExceptions()) {
error_log('Caught exception: ' . $e->getMessage());
}
Expand Down
4 changes: 2 additions & 2 deletions resource/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ $.ajaxQ = (function(){
var r = [];
$.each(Q, function(i, jqXHR){
r.push(jqXHR._id);
if (jqXHR.req_kind == $.ajaxQ.requestKind.CONTENT || jqXHR.req_kind == $.ajaxQ.requestKind.PLUGIN) {
if (jqXHR.req_kind == $.ajaxQ.requestKind.CONTENT || jqXHR.req_kind == $.ajaxQ.requestKind.PLUGIN) {
jqXHR.abort();
}
});
Expand All @@ -124,7 +124,7 @@ $.ajaxQ = (function(){
var r = [];
$.each(Q, function(i, jqXHR){
r.push(jqXHR._id);
if (jqXHR.req_kind == $.ajaxQ.requestKind.SIDEBAR || all && jqXHR.req_kind == $.ajaxQ.requestKind.SIDEBAR_PRIVILEGED) {
if (jqXHR.req_kind == $.ajaxQ.requestKind.SIDEBAR || all && jqXHR.req_kind == $.ajaxQ.requestKind.SIDEBAR_PRIVILEGED) {
jqXHR.abort();
}
});
Expand Down

0 comments on commit 33a2222

Please sign in to comment.