@@ -64,15 +64,15 @@ discard block |
||
| 64 | 64 | private function initializeVocabularies() |
| 65 | 65 | { |
| 66 | 66 | if (!file_exists($this->getConfig()->getVocabularyConfigFile())) { |
| 67 | - throw new Exception($this->getConfig()->getVocabularyConfigFile() . ' is missing, please provide one.'); |
|
| 67 | + throw new Exception($this->getConfig()->getVocabularyConfigFile().' is missing, please provide one.'); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | try { |
| 71 | 71 | // use APC user cache to store parsed vocabularies.ttl configuration |
| 72 | 72 | if ($this->cache->isAvailable()) { |
| 73 | 73 | // @codeCoverageIgnoreStart |
| 74 | - $key = realpath($this->getConfig()->getVocabularyConfigFile()) . ", " . filemtime($this->getConfig()->getVocabularyConfigFile()); |
|
| 75 | - $nskey = "namespaces of " . $key; |
|
| 74 | + $key = realpath($this->getConfig()->getVocabularyConfigFile()).", ".filemtime($this->getConfig()->getVocabularyConfigFile()); |
|
| 75 | + $nskey = "namespaces of ".$key; |
|
| 76 | 76 | $this->graph = $this->cache->fetch($key); |
| 77 | 77 | $this->namespaces = $this->cache->fetch($nskey); |
| 78 | 78 | if ($this->graph === false || $this->namespaces === false) { // was not found in cache |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $this->parseVocabularies($this->getConfig()->getVocabularyConfigFile()); |
| 86 | 86 | } |
| 87 | 87 | } catch (Exception $e) { |
| 88 | - echo "Error: " . $e->getMessage(); |
|
| 88 | + echo "Error: ".$e->getMessage(); |
|
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | public function getVocabularyCategories() |
| 457 | 457 | { |
| 458 | 458 | $cats = $this->graph->allOfType('skos:Concept'); |
| 459 | - if(empty($cats)) { |
|
| 459 | + if (empty($cats)) { |
|
| 460 | 460 | return array(new VocabularyCategory($this, null)); |
| 461 | 461 | } |
| 462 | 462 | |
@@ -629,7 +629,7 @@ discard block |
||
| 629 | 629 | // using apc cache for the resource if available |
| 630 | 630 | if ($this->cache->isAvailable()) { |
| 631 | 631 | // @codeCoverageIgnoreStart |
| 632 | - $key = 'fetch: ' . $uri; |
|
| 632 | + $key = 'fetch: '.$uri; |
|
| 633 | 633 | $resource = $this->cache->fetch($key); |
| 634 | 634 | if ($resource === null || $resource === false) { // was not found in cache, or previous request failed |
| 635 | 635 | $resource = $this->fetchResourceFromUri($uri); |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | */ |
| 651 | 651 | public function getSparqlImplementation($dialect, $endpoint, $graph) |
| 652 | 652 | { |
| 653 | - $classname = $dialect . "Sparql"; |
|
| 653 | + $classname = $dialect."Sparql"; |
|
| 654 | 654 | |
| 655 | 655 | return new $classname($endpoint, $graph, $this); |
| 656 | 656 | } |