@@ -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 | } |
@@ -517,15 +517,15 @@ |
||
517 | 517 | private function getQuerySQL() |
518 | 518 | { |
519 | 519 | $nl = "\n"; |
520 | - $where_sql = $this->getWHERESQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
521 | - $order_sql = $this->getORDERSQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
520 | + $where_sql = $this->getWHERESQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
521 | + $order_sql = $this->getORDERSQL(); /* pre-fills $index['sub_joins'] $index['constraints'] */ |
|
522 | 522 | |
523 | 523 | return ''.( |
524 | 524 | $this->is_union_query |
525 | 525 | ? 'SELECT' |
526 | 526 | : 'SELECT'.$this->getDistinctSQL() |
527 | 527 | ).$nl. |
528 | - $this->getResultVarsSQL().$nl. /* fills $index['sub_joins'] */ |
|
528 | + $this->getResultVarsSQL().$nl./* fills $index['sub_joins'] */ |
|
529 | 529 | $this->getFROMSQL(). |
530 | 530 | $this->getAllJoinsSQL(). |
531 | 531 | $this->getWHERESQL(). |