Completed
Push — master ( 2d5e4d...c85d15 )
by
unknown
02:02 queued 11s
created
model/Vocabulary.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             return $lname;
93 93
         }
94 94
         // already a full URI
95
-        return $this->getUriSpace() . $lname;
95
+        return $this->getUriSpace().$lname;
96 96
     }
97 97
 
98 98
     /**
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 foreach ($conceptscheme->allLiterals($prop, null) as $val) {
154 154
                     $prop = (substr($prop, 0, 5) == 'dc11:') ? str_replace('dc11:', 'dc:', $prop) : $prop;
155 155
                     if ($val->getValue() instanceof DateTime) {
156
-                        $val = Punic\Calendar::formatDate($val->getValue(), 'full', $lang) . ' ' . Punic\Calendar::format($val->getValue(), 'HH:mm:ss', $lang);
156
+                        $val = Punic\Calendar::formatDate($val->getValue(), 'full', $lang).' '.Punic\Calendar::format($val->getValue(), 'HH:mm:ss', $lang);
157 157
                     }
158 158
                     $ret[$prop][] = $val;
159 159
                 }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         }
265 265
         // don't know how to parse
266 266
         $rev = $parts[2];
267
-        $datestr = $parts[3] . ' ' . $parts[4];
267
+        $datestr = $parts[3].' '.$parts[4];
268 268
 
269 269
         return "$datestr (r$rev)";
270 270
     }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * Counts the statistics of the vocabulary.
274 274
      * @return array of the concept/group counts
275 275
      */
276
-    public function getStatistics($lang = '', $array=null, $group=null)
276
+    public function getStatistics($lang = '', $array = null, $group = null)
277 277
     {
278 278
         $sparql = $this->getSparql();
279 279
         // find the number of concepts
@@ -591,14 +591,14 @@  discard block
 block discarded – undo
591 591
     {
592 592
       $changelist = $this->getSparql()->queryChangeList($clang, $offset, $prop);
593 593
       $bydate = array();
594
-      foreach($changelist as $concept) {
594
+      foreach ($changelist as $concept) {
595 595
         $concept['datestring'] = Punic\Calendar::formatDate($concept['date'], 'medium', $lang);
596
-        $bydate[Punic\Calendar::getMonthName($concept['date'], 'wide', $lang, true) . Punic\Calendar::format($concept['date'], ' y', $lang) ][strtolower($concept['prefLabel'])] = $concept;
596
+        $bydate[Punic\Calendar::getMonthName($concept['date'], 'wide', $lang, true).Punic\Calendar::format($concept['date'], ' y', $lang)][strtolower($concept['prefLabel'])] = $concept;
597 597
       }
598 598
       return $bydate;
599 599
     }
600 600
 
601
-    public function getTitle($lang=null) {
601
+    public function getTitle($lang = null) {
602 602
       return $this->config->getTitle($lang);
603 603
     }
604 604
     
Please login to merge, or discard this patch.
model/sparql/GenericSparql.php 2 patches
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
     protected function query($query) {
89 89
         $queryId = sprintf("%05d", rand(0, 99999));
90 90
         $logger = $this->model->getLogger();
91
-        $logger->info("[qid $queryId] SPARQL query:\n" . $this->generateQueryPrefixes($query) . "\n$query\n");
91
+        $logger->info("[qid $queryId] SPARQL query:\n".$this->generateQueryPrefixes($query)."\n$query\n");
92 92
         $starttime = microtime(true);
93 93
         $result = $this->client->query($query);
94 94
         $elapsed = intval(round((microtime(true) - $starttime) * 1000));
95
-        if(method_exists($result, 'numRows')) {
95
+        if (method_exists($result, 'numRows')) {
96 96
             $numRows = $result->numRows();
97 97
             $logger->info("[qid $queryId] result: $numRows rows returned in $elapsed ms");
98 98
         } else { // graph result
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param Vocabulary[]|null $vocabs
109 109
      * @return string
110 110
      */
111
-    protected function generateFromClause($vocabs=null) {
111
+    protected function generateFromClause($vocabs = null) {
112 112
         $clause = '';
113 113
         if (!$vocabs) {
114 114
             return $this->graph !== '?graph' && $this->graph !== NULL ? "FROM <$this->graph>" : '';
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
 	$quote_string = function($val) { return "'$val'"; };
237 237
 	$quoted_values = array_map($quote_string, $langs);
238
-	$langFilter = "FILTER(?lang IN (" . implode(',', $quoted_values) . "))";
238
+	$langFilter = "FILTER(?lang IN (".implode(',', $quoted_values)."))";
239 239
 
240 240
         $values = $this->formatValues('?type', $classes, 'uri');
241 241
         $valuesProp = $this->formatValues('?prop', $props, null);
@@ -661,9 +661,9 @@  discard block
 block discarded – undo
661 661
                 $conceptscheme['title'] = $row->title->getValue();
662 662
             }
663 663
             // add dct:subject and their labels in the result
664
-            if(isset($row->domain) && isset($row->domainLabel)){
665
-                $conceptscheme['subject']['uri']=$row->domain->getURI();
666
-                $conceptscheme['subject']['prefLabel']=$row->domainLabel->getValue();
664
+            if (isset($row->domain) && isset($row->domainLabel)) {
665
+                $conceptscheme['subject']['uri'] = $row->domain->getURI();
666
+                $conceptscheme['subject']['prefLabel'] = $row->domainLabel->getValue();
667 667
             }
668 668
 
669 669
             $ret[$row->cs->getURI()] = $conceptscheme;
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
           $values[] = "<$graph>";
731 731
         }
732 732
         if (count($values)) {
733
-          return "FILTER (?graph IN (" . implode(',', $values) . "))";
733
+          return "FILTER (?graph IN (".implode(',', $values)."))";
734 734
         }
735 735
     }
736 736
 
@@ -741,16 +741,16 @@  discard block
 block discarded – undo
741 741
      * @return string sparql query clauses
742 742
      */
743 743
     protected function formatLimitAndOffset($limit, $offset) {
744
-        $limit = ($limit) ? 'LIMIT ' . $limit : '';
745
-        $offset = ($offset) ? 'OFFSET ' . $offset : '';
744
+        $limit = ($limit) ? 'LIMIT '.$limit : '';
745
+        $offset = ($offset) ? 'OFFSET '.$offset : '';
746 746
         // eliminating whitespace and line changes when the conditions aren't needed.
747 747
         $limitandoffset = '';
748 748
         if ($limit && $offset) {
749
-            $limitandoffset = "\n" . $limit . "\n" . $offset;
749
+            $limitandoffset = "\n".$limit."\n".$offset;
750 750
         } elseif ($limit) {
751
-            $limitandoffset = "\n" . $limit;
751
+            $limitandoffset = "\n".$limit;
752 752
         } elseif ($offset) {
753
-            $limitandoffset = "\n" . $offset;
753
+            $limitandoffset = "\n".$offset;
754 754
         }
755 755
 
756 756
         return $limitandoffset;
@@ -902,14 +902,14 @@  discard block
 block discarded – undo
902 902
         // if search language and UI/display language differ, must also consider case where there is no prefLabel in
903 903
         // the display language; in that case, should use the label with the same language as the matched label
904 904
         $labelcondFallback = ($searchLang != $lang) ?
905
-          "OPTIONAL { # in case previous OPTIONAL block gives no labels\n" .
905
+          "OPTIONAL { # in case previous OPTIONAL block gives no labels\n".
906 906
           "?s skos:prefLabel ?label . FILTER (LANGMATCHES(LANG(?label), LANG(?match))) }" : "";
907 907
           
908 908
         //  Including the labels if there is no query term given.
909 909
         if ($rawterm === '') {
910 910
           $labelClause = "?s skos:prefLabel ?label .";
911
-          $labelClause = ($lang) ? $labelClause . " FILTER (LANGMATCHES(LANG(?label), '$lang'))" : $labelClause . "";
912
-          return $labelClause . " BIND(?label AS ?match)";
911
+          $labelClause = ($lang) ? $labelClause." FILTER (LANGMATCHES(LANG(?label), '$lang'))" : $labelClause."";
912
+          return $labelClause." BIND(?label AS ?match)";
913 913
         }
914 914
 
915 915
         /*
@@ -973,20 +973,20 @@  discard block
 block discarded – undo
973 973
         $schemecond = '';
974 974
         if (!empty($schemes)) {
975 975
             $conditions = array();
976
-            foreach($schemes as $scheme) {
976
+            foreach ($schemes as $scheme) {
977 977
                 $conditions[] = "{?s skos:inScheme <$scheme>}";
978 978
             }
979
-            $schemecond = '{'.implode(" UNION ",$conditions).'}';
979
+            $schemecond = '{'.implode(" UNION ", $conditions).'}';
980 980
         }
981
-        $filterDeprecated="";
981
+        $filterDeprecated = "";
982 982
         //show or hide deprecated concepts
983
-        if(!$showDeprecated){
984
-            $filterDeprecated="FILTER NOT EXISTS { ?s owl:deprecated true }";
983
+        if (!$showDeprecated) {
984
+            $filterDeprecated = "FILTER NOT EXISTS { ?s owl:deprecated true }";
985 985
         }
986 986
         // extra conditions for parent and group, if specified
987
-        $parentcond = ($params->getParentLimit()) ? "?s skos:broader+ <" . $params->getParentLimit() . "> ." : "";
988
-        $groupcond = ($params->getGroupLimit()) ? "<" . $params->getGroupLimit() . "> skos:member ?s ." : "";
989
-        $pgcond = $parentcond . $groupcond;
987
+        $parentcond = ($params->getParentLimit()) ? "?s skos:broader+ <".$params->getParentLimit()."> ." : "";
988
+        $groupcond = ($params->getGroupLimit()) ? "<".$params->getGroupLimit()."> skos:member ?s ." : "";
989
+        $pgcond = $parentcond.$groupcond;
990 990
 
991 991
         $orderextra = $this->isDefaultEndpoint() ? $this->graph : '';
992 992
 
@@ -1059,9 +1059,9 @@  discard block
 block discarded – undo
1059 1059
             $hit['type'][] = $this->shortenUri($typeuri);
1060 1060
         }
1061 1061
 
1062
-        if(!empty($fields)) {
1062
+        if (!empty($fields)) {
1063 1063
             foreach ($fields as $prop) {
1064
-                $propname = $prop . 's';
1064
+                $propname = $prop.'s';
1065 1065
                 if (isset($row->$propname)) {
1066 1066
                     foreach (explode("\n", $row->$propname->getValue()) as $line) {
1067 1067
                         $rdata = str_getcsv($line, ',', '"', '"');
@@ -1076,7 +1076,7 @@  discard block
 block discarded – undo
1076 1076
                             $propvals = $rdata[2];
1077 1077
                         }
1078 1078
 
1079
-                        $hit['skos:' . $prop][] = $propvals;
1079
+                        $hit['skos:'.$prop][] = $propvals;
1080 1080
                     }
1081 1081
                 }
1082 1082
             }
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
      * @return array query result object
1153 1153
      */
1154 1154
     public function queryConcepts($vocabs, $fields = null, $unique = false, $params, $showDeprecated = false) {
1155
-        $query = $this->generateConceptSearchQuery($fields, $unique, $params,$showDeprecated);
1155
+        $query = $this->generateConceptSearchQuery($fields, $unique, $params, $showDeprecated);
1156 1156
         $results = $this->query($query);
1157 1157
         return $this->transformConceptSearchResults($results, $vocabs, $fields);
1158 1158
     }
@@ -1207,10 +1207,10 @@  discard block
 block discarded – undo
1207 1207
         $conditions = $this->formatFilterConditions($letter, $lang);
1208 1208
         $filtercondLabel = $conditions['filterpref'];
1209 1209
         $filtercondALabel = $conditions['filteralt'];
1210
-        $qualifierClause = $qualifier ? "OPTIONAL { ?s <" . $qualifier->getURI() . "> ?qualifier }" : "";
1211
-        $filterDeprecated="";
1212
-        if(!$showDeprecated){
1213
-            $filterDeprecated="FILTER NOT EXISTS { ?s owl:deprecated true }";
1210
+        $qualifierClause = $qualifier ? "OPTIONAL { ?s <".$qualifier->getURI()."> ?qualifier }" : "";
1211
+        $filterDeprecated = "";
1212
+        if (!$showDeprecated) {
1213
+            $filterDeprecated = "FILTER NOT EXISTS { ?s owl:deprecated true }";
1214 1214
         }
1215 1215
         $query = <<<EOQ
1216 1216
 SELECT DISTINCT ?s ?label ?alabel ?qualifier $fcl
@@ -1632,7 +1632,7 @@  discard block
 block discarded – undo
1632 1632
                 if (!isset($row->label) || $row->label->getLang() === $lang) {
1633 1633
                     $ret[$row->object->getUri()] = $val;
1634 1634
                 } elseif ($row->label->getLang() === $fallbacklang) {
1635
-                    $val['label'] .= ' (' . $row->label->getLang() . ')';
1635
+                    $val['label'] .= ' ('.$row->label->getLang().')';
1636 1636
                     $ret[$row->object->getUri()] = $val;
1637 1637
                 }
1638 1638
             }
@@ -1728,10 +1728,10 @@  discard block
 block discarded – undo
1728 1728
 
1729 1729
             $label = null;
1730 1730
             if (isset($row->label)) {
1731
-                if ($row->label->getLang() == $lang || strpos($row->label->getLang(), $lang . "-") == 0) {
1731
+                if ($row->label->getLang() == $lang || strpos($row->label->getLang(), $lang."-") == 0) {
1732 1732
                     $label = $row->label->getValue();
1733 1733
                 } else {
1734
-                    $label = $row->label->getValue() . " (" . $row->label->getLang() . ")";
1734
+                    $label = $row->label->getValue()." (".$row->label->getLang().")";
1735 1735
                 }
1736 1736
 
1737 1737
             }
@@ -1807,8 +1807,8 @@  discard block
 block discarded – undo
1807 1807
         foreach ($result as $row) {
1808 1808
             if (isset($row->top) && isset($row->label)) {
1809 1809
                 $label = $row->label->getValue();
1810
-                if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) {
1811
-                    $label .= ' (' . $row->label->getLang() . ')';
1810
+                if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang."-") !== 0) {
1811
+                    $label .= ' ('.$row->label->getLang().')';
1812 1812
                 }
1813 1813
                 $top = array('uri' => $row->top->getUri(), 'topConceptOf' => $row->topuri->getUri(), 'label' => $label, 'hasChildren' => filter_var($row->children->getValue(), FILTER_VALIDATE_BOOLEAN));
1814 1814
                 if (isset($row->notation)) {
@@ -1901,7 +1901,7 @@  discard block
 block discarded – undo
1901 1901
                 $ret[$uri]['exact'] = $row->exact->getUri();
1902 1902
             }
1903 1903
             if (isset($row->tops)) {
1904
-               $topConceptsList=explode(" ", $row->tops->getValue());
1904
+               $topConceptsList = explode(" ", $row->tops->getValue());
1905 1905
                // sort to garantee an alphabetical ordering of the URI
1906 1906
                sort($topConceptsList);
1907 1907
                $ret[$uri]['tops'] = $topConceptsList;
@@ -1914,8 +1914,8 @@  discard block
 block discarded – undo
1914 1914
                 $label = null;
1915 1915
                 if (isset($row->childlabel)) {
1916 1916
                     $label = $row->childlabel->getValue();
1917
-                    if ($row->childlabel->getLang() !== $lang && strpos($row->childlabel->getLang(), $lang . "-") !== 0) {
1918
-                        $label .= " (" . $row->childlabel->getLang() . ")";
1917
+                    if ($row->childlabel->getLang() !== $lang && strpos($row->childlabel->getLang(), $lang."-") !== 0) {
1918
+                        $label .= " (".$row->childlabel->getLang().")";
1919 1919
                     }
1920 1920
 
1921 1921
                 }
@@ -1936,8 +1936,8 @@  discard block
 block discarded – undo
1936 1936
             }
1937 1937
             if (isset($row->label)) {
1938 1938
                 $preflabel = $row->label->getValue();
1939
-                if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang . "-") !== 0) {
1940
-                    $preflabel .= ' (' . $row->label->getLang() . ')';
1939
+                if ($row->label->getLang() && $row->label->getLang() !== $lang && strpos($row->label->getLang(), $lang."-") !== 0) {
1940
+                    $preflabel .= ' ('.$row->label->getLang().')';
1941 1941
                 }
1942 1942
 
1943 1943
                 $ret[$uri]['prefLabel'] = $preflabel;
@@ -2058,9 +2058,9 @@  discard block
 block discarded – undo
2058 2058
      */
2059 2059
     private function generateConceptGroupContentsQuery($groupClass, $group, $lang, $showDeprecated = false) {
2060 2060
         $fcl = $this->generateFromClause();
2061
-        $filterDeprecated="";
2062
-        if(!$showDeprecated){
2063
-            $filterDeprecated="  FILTER NOT EXISTS { ?conc owl:deprecated true }";
2061
+        $filterDeprecated = "";
2062
+        if (!$showDeprecated) {
2063
+            $filterDeprecated = "  FILTER NOT EXISTS { ?conc owl:deprecated true }";
2064 2064
         }
2065 2065
         $query = <<<EOQ
2066 2066
 SELECT ?conc ?super ?label ?members ?type ?notation $fcl
@@ -2099,10 +2099,10 @@  discard block
 block discarded – undo
2099 2099
                     'type' => array($row->type->shorten()),
2100 2100
                 );
2101 2101
                 if (isset($row->label)) {
2102
-                    if ($row->label->getLang() == $lang || strpos($row->label->getLang(), $lang . "-") == 0) {
2102
+                    if ($row->label->getLang() == $lang || strpos($row->label->getLang(), $lang."-") == 0) {
2103 2103
                         $values[$row->conc->getURI()]['prefLabel'] = $row->label->getValue();
2104 2104
                     } else {
2105
-                        $values[$row->conc->getURI()]['prefLabel'] = $row->label->getValue() . " (" . $row->label->getLang() . ")";
2105
+                        $values[$row->conc->getURI()]['prefLabel'] = $row->label->getValue()." (".$row->label->getLang().")";
2106 2106
                     }
2107 2107
 
2108 2108
                 }
@@ -2130,8 +2130,8 @@  discard block
 block discarded – undo
2130 2130
      * @param boolean $showDeprecated whether to include deprecated concepts in search results
2131 2131
      * @return array Result array with concept URI as key and concept label as value
2132 2132
      */
2133
-    public function listConceptGroupContents($groupClass, $group, $lang,$showDeprecated = false) {
2134
-        $query = $this->generateConceptGroupContentsQuery($groupClass, $group, $lang,$showDeprecated);
2133
+    public function listConceptGroupContents($groupClass, $group, $lang, $showDeprecated = false) {
2134
+        $query = $this->generateConceptGroupContentsQuery($groupClass, $group, $lang, $showDeprecated);
2135 2135
         $result = $this->query($query);
2136 2136
         return $this->transformConceptGroupContentsResults($result, $lang);
2137 2137
     }
@@ -2144,7 +2144,7 @@  discard block
 block discarded – undo
2144 2144
      */
2145 2145
     private function generateChangeListQuery($lang, $offset, $prop) {
2146 2146
         $fcl = $this->generateFromClause();
2147
-        $offset = ($offset) ? 'OFFSET ' . $offset : '';
2147
+        $offset = ($offset) ? 'OFFSET '.$offset : '';
2148 2148
 
2149 2149
         $query = <<<EOQ
2150 2150
 SELECT DISTINCT ?concept ?date ?label $fcl
Please login to merge, or discard this patch.
Braces   +8 added lines, -6 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 = "";
@@ -1274,8 +1278,7 @@  discard block
 block discarded – undo
1274 1278
             if (isset($row->qualifier)) {
1275 1279
                 if ($row->qualifier instanceof EasyRdf\Literal) {
1276 1280
                     $hit['qualifier'] = $row->qualifier->getValue();
1277
-                }
1278
-                else {
1281
+                } else {
1279 1282
                     $hit['qualifier'] = $row->qualifier->localName();
1280 1283
                 }
1281 1284
             }
@@ -1955,8 +1958,7 @@  discard block
 block discarded – undo
1955 1958
         if (sizeof($ret) > 0) {
1956 1959
             // existing concept, with children
1957 1960
             return $ret;
1958
-        }
1959
-        else {
1961
+        } else {
1960 1962
             // nonexistent concept
1961 1963
             return null;
1962 1964
         }
Please login to merge, or discard this patch.
model/sparql/JenaTextSparql.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         // 1. Ensure characters with special meaning in Lucene are escaped
41 41
         $lucenemap = array();
42 42
         foreach (str_split(self::LUCENE_ESCAPE_CHARS) as $char) {
43
-            $lucenemap[$char] = '\\' . $char; // escape with a backslash
43
+            $lucenemap[$char] = '\\'.$char; // escape with a backslash
44 44
         }
45 45
         $term = strtr($term, $lucenemap);
46 46
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @return string sparql order by clause
83 83
      */
84 84
     private function formatOrderBy($expression, $lang) {
85
-        if(!$this->model->getConfig()->getCollationEnabled()) {
85
+        if (!$this->model->getConfig()->getCollationEnabled()) {
86 86
             return $expression;
87 87
         }
88 88
         $orderby = sprintf('arq:collation(\'%2$s\', %1$s)', $expression, $lang);
@@ -115,15 +115,15 @@  discard block
 block discarded – undo
115 115
 
116 116
         # make text query clause
117 117
         $lcletter = mb_strtolower($letter, 'UTF-8'); // convert to lower case, UTF-8 safe
118
-        $textcondPref = $this->createTextQueryCondition($letter . '*', 'skos:prefLabel', $lang);
119
-        $textcondAlt = $this->createTextQueryCondition($letter . '*', 'skos:altLabel', $lang);
120
-        $orderbyclause = $this->formatOrderBy("LCASE(?match)", $lang) . " STR(?s) LCASE(STR(?qualifier))";
118
+        $textcondPref = $this->createTextQueryCondition($letter.'*', 'skos:prefLabel', $lang);
119
+        $textcondAlt = $this->createTextQueryCondition($letter.'*', 'skos:altLabel', $lang);
120
+        $orderbyclause = $this->formatOrderBy("LCASE(?match)", $lang)." STR(?s) LCASE(STR(?qualifier))";
121 121
 
122
-        $qualifierClause = $qualifier ? "OPTIONAL { ?s <" . $qualifier->getURI() . "> ?qualifier }" : "";
122
+        $qualifierClause = $qualifier ? "OPTIONAL { ?s <".$qualifier->getURI()."> ?qualifier }" : "";
123 123
 
124
-        $filterDeprecated="";
125
-        if(!$showDeprecated){
126
-            $filterDeprecated="FILTER NOT EXISTS { ?s owl:deprecated true }";
124
+        $filterDeprecated = "";
125
+        if (!$showDeprecated) {
126
+            $filterDeprecated = "FILTER NOT EXISTS { ?s owl:deprecated true }";
127 127
         }
128 128
         
129 129
         $query = <<<EOQ
Please login to merge, or discard this patch.