Completed
Push — master ( c6c130...999f50 )
by Osma
02:17
created
model/sparql/GenericSparql.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,12 +47,16 @@  discard block
 block discarded – undo
47 47
         $this->client = new EasyRdf\Sparql\Client($endpoint);
48 48
 
49 49
         // set graphClause so that it can be used by all queries
50
-        if ($this->isDefaultEndpoint()) // default endpoint; query any graph (and catch it in a variable)
50
+        if ($this->isDefaultEndpoint()) {
51
+          // default endpoint; query any graph (and catch it in a variable)
51 52
         {
52 53
             $this->graphClause = "GRAPH $graph";
53
-        } elseif ($graph !== null) // query a specific graph
54
+        }
55
+        } elseif ($graph !== null) {
56
+          // query a specific graph
54 57
         {
55 58
             $this->graphClause = "GRAPH <$graph>";
59
+        }
56 60
         } else // query the default graph
57 61
         {
58 62
             $this->graphClause = "";
@@ -1942,8 +1946,7 @@  discard block
 block discarded – undo
1942 1946
         if (sizeof($ret) > 0) {
1943 1947
             // existing concept, with children
1944 1948
             return $ret;
1945
-        }
1946
-        else {
1949
+        } else {
1947 1950
             // nonexistent concept
1948 1951
             return null;
1949 1952
         }
Please login to merge, or discard this patch.