@@ -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(). |
@@ -150,13 +150,13 @@ |
||
150 | 150 | // asking for resources via a ... |
151 | 151 | $res = $this->subjectUnderTest->query('SELECT ?iri WHERE {?iri a <http://ex/Person>}'); |
152 | 152 | $this->assertEquals( |
153 | - [['iri' => 'http://foo', 'iri type' => 'uri'], ['iri' => 'http://bar', 'iri type' => 'uri'],], |
|
153 | + [['iri' => 'http://foo', 'iri type' => 'uri'], ['iri' => 'http://bar', 'iri type' => 'uri'], ], |
|
154 | 154 | $res['result']['rows'] |
155 | 155 | ); |
156 | 156 | // and rdf:type ... |
157 | 157 | $res = $this->subjectUnderTest->query('SELECT ?iri WHERE {?iri rdf:type <http://ex/Person>}'); |
158 | 158 | $this->assertEquals( |
159 | - [['iri' => 'http://foo', 'iri type' => 'uri'], ['iri' => 'http://bar', 'iri type' => 'uri'],], |
|
159 | + [['iri' => 'http://foo', 'iri type' => 'uri'], ['iri' => 'http://bar', 'iri type' => 'uri'], ], |
|
160 | 160 | $res['result']['rows'] |
161 | 161 | ); |
162 | 162 | } |