Completed
Push — master ( 8e7a23...4643ef )
by Henri
03:15
created
model/sparql/GenericSparql.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
 
609 609
     /**
610 610
      * Generate a VALUES clause for limiting the targeted graphs.
611
-     * @param array $vocabs array of Vocabulary objects to target
611
+     * @param Vocabulary[] $vocabs array of Vocabulary objects to target
612 612
      * @return string VALUES clause, or "" if not necessary to limit
613 613
      */
614 614
     protected function formatValuesGraph($vocabs) {
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
     /**
1339 1339
      * Query a single transitive property of a concept.
1340 1340
      * @param string $uri
1341
-     * @param string $prop the name of the property eg. 'skos:broader'.
1341
+     * @param string $props the name of the property eg. 'skos:broader'.
1342 1342
      * @param string $lang
1343 1343
      * @param integer $limit
1344 1344
      * @param boolean $anylang if you want a label even when it isn't available in the language you requested.
Please login to merge, or discard this patch.
model/VocabularyConfig.php 1 patch
Braces   +18 added lines, -9 removed lines patch added patch discarded remove patch
@@ -53,8 +53,9 @@  discard block
 block discarded – undo
53 53
 
54 54
         // not found with selected language, try any language
55 55
         $literal = $this->resource->getLiteral($property);
56
-        if ($literal)
57
-          return $literal->getValue();
56
+        if ($literal) {
57
+                  return $literal->getValue();
58
+        }
58 59
     }
59 60
 
60 61
     /**
@@ -95,8 +96,9 @@  discard block
 block discarded – undo
95 96
     public function getShortName()
96 97
     {
97 98
         $shortname = $this->getLiteral('skosmos:shortName');
98
-        if ($shortname) 
99
-          return $shortname;
99
+        if ($shortname) {
100
+                  return $shortname;
101
+        }
100 102
 
101 103
         // if no shortname exists fall back to the id
102 104
         return $this->getId();
@@ -215,10 +217,12 @@  discard block
 block discarded – undo
215 217
         $ret = array();
216 218
         foreach ($resources as $res) {
217 219
             $prop = $res->getURI();
218
-            if (EasyRdf_Namespace::shorten($prop) !== null) // shortening property labels if possible
220
+            if (EasyRdf_Namespace::shorten($prop) !== null) {
221
+              // shortening property labels if possible
219 222
             {
220 223
                 $prop = EasyRdf_Namespace::shorten($prop);
221 224
             }
225
+            }
222 226
 
223 227
             $ret[] = $prop;
224 228
         }
@@ -235,10 +239,12 @@  discard block
 block discarded – undo
235 239
         $resources = $this->resource->allResources("skosmos:hasMultiLingualProperty");
236 240
         foreach ($resources as $res) {
237 241
             $prop = $res->getURI();
238
-            if (EasyRdf_Namespace::shorten($prop) !== null) // shortening property labels if possible
242
+            if (EasyRdf_Namespace::shorten($prop) !== null) {
243
+              // shortening property labels if possible
239 244
             {
240 245
                 $prop = EasyRdf_Namespace::shorten($prop);
241 246
             }
247
+            }
242 248
 
243 249
             if ($prop === $property) {
244 250
                 return true;
@@ -339,11 +345,12 @@  discard block
 block discarded – undo
339 345
     public function getId()
340 346
     {
341 347
         $uriparts = explode("#", $this->resource->getURI());
342
-        if (count($uriparts) != 1)
343
-        // hash namespace
348
+        if (count($uriparts) != 1) {
349
+                // hash namespace
344 350
         {
345 351
             return $uriparts[1];
346 352
         }
353
+        }
347 354
 
348 355
         // slash namespace
349 356
         $uriparts = explode("/", $this->resource->getURI());
@@ -371,10 +378,12 @@  discard block
 block discarded – undo
371 378
         $ret = array();
372 379
         foreach ($resources as $res) {
373 380
             $prop = $res->getURI();
374
-            if (EasyRdf_Namespace::shorten($prop) !== null) // prefixing if possible 
381
+            if (EasyRdf_Namespace::shorten($prop) !== null) {
382
+              // prefixing if possible 
375 383
             {
376 384
                 $prop = EasyRdf_Namespace::shorten($prop);
377 385
             }
386
+            }
378 387
 
379 388
             $ret[] = $prop;
380 389
         }
Please login to merge, or discard this patch.