Completed
Push — master ( b31cdb...c75d37 )
by Henri
02:51
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.
model/NamespaceExposingTurtleParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     protected function peek()
23 23
     {
24
-        if(!$this->dataLength) { $this->dataLength = strlen($this->data); }
24
+        if (!$this->dataLength) { $this->dataLength = strlen($this->data); }
25 25
         if ($this->dataLength > $this->bytePos) {
26 26
             $slice = substr($this->data, $this->bytePos, 4);
27 27
             return mb_substr($slice, 0, 1, "UTF-8");
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         if ($this->bytePos - 4 > 0) {
80 80
             $slice = substr($this->data, $this->bytePos - 4, 4);
81
-            while($slice != '') {
81
+            while ($slice != '') {
82 82
                 if (!self::isWhitespace(mb_substr($slice, -1, 1, "UTF-8"))) {
83 83
                     return;
84 84
                 }
Please login to merge, or discard this patch.