Completed
Push — master ( 2daf77...1cf2cf )
by Henri
28s
created
model/Model.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
     private function initializeVocabularies()
64 64
     {
65 65
         if (!file_exists($this->getConfig()->getVocabularyConfigFile())) {
66
-            throw new Exception($this->getConfig()->getVocabularyConfigFile() . ' is missing, please provide one.');
66
+            throw new Exception($this->getConfig()->getVocabularyConfigFile().' is missing, please provide one.');
67 67
         }
68 68
 
69 69
         try {
70 70
             // use APC user cache to store parsed vocabularies.ttl configuration
71 71
             if ($this->cache->isAvailable()) {
72 72
                 // @codeCoverageIgnoreStart
73
-                $key = realpath($this->getConfig()->getVocabularyConfigFile()) . ", " . filemtime($this->getConfig()->getVocabularyConfigFile());
74
-                $nskey = "namespaces of " . $key;
73
+                $key = realpath($this->getConfig()->getVocabularyConfigFile()).", ".filemtime($this->getConfig()->getVocabularyConfigFile());
74
+                $nskey = "namespaces of ".$key;
75 75
                 $this->graph = $this->cache->fetch($key);
76 76
                 $this->namespaces = $this->cache->fetch($nskey);
77 77
                 if ($this->graph === false || $this->namespaces === false) { // was not found in cache
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 $this->parseVocabularies($this->getConfig()->getVocabularyConfigFile());
85 85
             }
86 86
         } catch (Exception $e) {
87
-            echo "Error: " . $e->getMessage();
87
+            echo "Error: ".$e->getMessage();
88 88
         }
89 89
     }
90 90
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
629 629
         // using apc cache for the resource if available
630 630
         if ($this->cache->isAvailable()) {
631 631
             // @codeCoverageIgnoreStart
632
-            $key = 'fetch: ' . EasyRdf_Utils::removeFragmentFromUri($uri);
632
+            $key = 'fetch: '.EasyRdf_Utils::removeFragmentFromUri($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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.