Completed
Push — master ( bcbd9b...28b3c2 )
by Osma
09:04 queued 02:58
created
model/Model.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -218,18 +218,18 @@  discard block
 block discarded – undo
218 218
         }
219 219
 
220 220
         $vocabs = $params->getVocabs();
221
-        $showDeprecated=false;
221
+        $showDeprecated = false;
222 222
         if (sizeof($vocabs) === 1) { // search within vocabulary
223 223
             $voc = $vocabs[0];
224 224
             $sparql = $voc->getSparql();
225
-            $showDeprecated=$voc->getConfig()->getShowDeprecated();
225
+            $showDeprecated = $voc->getConfig()->getShowDeprecated();
226 226
         } else { // multi-vocabulary or global search
227 227
             $voc = null;
228 228
             $sparql = $this->getDefaultSparql();
229 229
             // @TODO : in a global search showDeprecated will always be false and cannot be set globally
230 230
         }
231 231
 
232
-        $results = $sparql->queryConcepts($vocabs, $params->getAdditionalFields(), $params->getUnique(), $params,$showDeprecated);
232
+        $results = $sparql->queryConcepts($vocabs, $params->getAdditionalFields(), $params->getUnique(), $params, $showDeprecated);
233 233
         if ($params->getRest() && $results && $params->getSearchLimit() !== 0) {
234 234
           $results = array_slice($results, $params->getOffset(), $params->getSearchLimit());
235 235
         }
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     public function getVocabularyCategories()
385 385
     {
386 386
         $cats = $this->globalConfig->getGraph()->allOfType('skos:Concept');
387
-        if(empty($cats)) {
387
+        if (empty($cats)) {
388 388
             return array(new VocabularyCategory($this, null));
389 389
         }
390 390
 
@@ -467,9 +467,9 @@  discard block
 block discarded – undo
467 467
         }
468 468
 
469 469
         // if there are multiple vocabularies and one is the preferred vocabulary, return it
470
-        if($preferredVocabId != null) {
470
+        if ($preferredVocabId != null) {
471 471
             foreach ($vocabs as $vocab) {
472
-                if($vocab->getId() == $preferredVocabId) {
472
+                if ($vocab->getId() == $preferredVocabId) {
473 473
                     // double check that a label exists in the preferred vocabulary
474 474
                     if ($vocab->getConceptLabel($uri, null) !== null) {
475 475
                         return $vocab;
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
         // using apc cache for the resource if available
576 576
         if ($this->globalConfig->getCache()->isAvailable()) {
577 577
             // @codeCoverageIgnoreStart
578
-            $key = 'fetch: ' . $uri;
578
+            $key = 'fetch: '.$uri;
579 579
             $resource = $this->globalConfig->getCache()->fetch($key);
580 580
             if ($resource === null || $resource === false) { // was not found in cache, or previous request failed
581 581
                 $resource = $this->fetchResourceFromUri($uri);
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
      */
597 597
     public function getSparqlImplementation($dialect, $endpoint, $graph)
598 598
     {
599
-        $classname = $dialect . "Sparql";
599
+        $classname = $dialect."Sparql";
600 600
 
601 601
         return new $classname($endpoint, $graph, $this);
602 602
     }
Please login to merge, or discard this patch.