@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /* |
63 | 63 | * define CONCAT function (otherwise SQLite will throw an exception) |
64 | 64 | */ |
65 | - $this->db->sqliteCreateFunction('CONCAT', function ($pattern, $string) { |
|
65 | + $this->db->sqliteCreateFunction('CONCAT', function($pattern, $string) { |
|
66 | 66 | $result = ''; |
67 | 67 | |
68 | 68 | foreach (\func_get_args() as $str) { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /* |
76 | 76 | * define REGEXP function (otherwise SQLite will throw an exception) |
77 | 77 | */ |
78 | - $this->db->sqliteCreateFunction('REGEXP', function ($pattern, $string) { |
|
78 | + $this->db->sqliteCreateFunction('REGEXP', function($pattern, $string) { |
|
79 | 79 | if (0 < preg_match('/'.$pattern.'/i', $string)) { |
80 | 80 | return true; |
81 | 81 | } |
@@ -206,7 +206,7 @@ |
||
206 | 206 | \in_array($var, $aggregate_vars) |
207 | 207 | ? 'literal' |
208 | 208 | : 'uri' |
209 | - ); |
|
209 | + ); |
|
210 | 210 | if ( |
211 | 211 | isset($pre_row[$var.' lang_dt']) |
212 | 212 | && ($lang_dt = $pre_row[$var.' lang_dt']) |
@@ -488,14 +488,14 @@ |
||
488 | 488 | public function getQuerySQL() |
489 | 489 | { |
490 | 490 | $nl = "\n"; |
491 | - $where_sql = $this->getWHERESQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
492 | - $order_sql = $this->getORDERSQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
491 | + $where_sql = $this->getWHERESQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
492 | + $order_sql = $this->getORDERSQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
493 | 493 | |
494 | 494 | return ''.( |
495 | 495 | $this->is_union_query |
496 | 496 | ? 'SELECT' |
497 | 497 | : 'SELECT'.$this->getDistinctSQL()).$nl. |
498 | - $this->getResultVarsSQL().$nl. /* fills $index['sub_joins'] */ |
|
498 | + $this->getResultVarsSQL().$nl./* fills $index['sub_joins'] */ |
|
499 | 499 | $this->getFROMSQL(). |
500 | 500 | $this->getAllJoinsSQL(). |
501 | 501 | $this->getWHERESQL(). |
@@ -140,7 +140,7 @@ |
||
140 | 140 | throw new Exception('Unsupported query type "'.$queryType.'"'); |
141 | 141 | } |
142 | 142 | |
143 | - $cls = match ($queryType) { |
|
143 | + $cls = match($queryType) { |
|
144 | 144 | 'ask' => AskQueryHandler::class, |
145 | 145 | 'construct' => ConstructQueryHandler::class, |
146 | 146 | 'describe' => DescribeQueryHandler::class, |