22
33namespace Turso \Http \Laravel \Database ;
44
5+ use Darkterminal \TursoHttp \LibSQL ;
56use Exception ;
67use Illuminate \Database \Connection ;
78use Illuminate \Filesystem \Filesystem ;
8- use Darkterminal \TursoHttp \LibSQL ;
99
1010class LibSQLConnection extends Connection
1111{
@@ -47,7 +47,7 @@ public function statement($query, $bindings = []): bool
4747 {
4848 $ res = $ this ->select ($ query , $ bindings );
4949
50- return !empty ($ res );
50+ return ! empty ($ res );
5151 }
5252
5353 public function getPdo (): LibSQLDatabase
@@ -110,7 +110,7 @@ public function select($query, $bindings = [], $useReadPdo = true)
110110
111111 $ results = $ statement ->query ($ bindings );
112112
113- return array_map (fn ($ result ) => $ result , $ results );
113+ return array_map (fn ($ result ) => $ result , $ results );
114114 });
115115 }
116116
@@ -135,7 +135,7 @@ public function cursor($query, $bindings = [], $useReadPdo = true)
135135
136136 $ preparedQuery = $ this ->getRawPdo ()->prepare ($ query );
137137
138- if (!$ preparedQuery ) {
138+ if (! $ preparedQuery ) {
139139 throw new Exception ('Failed to prepare statement. ' );
140140 }
141141
@@ -319,6 +319,6 @@ public function quote($input)
319319 return 'NULL ' ;
320320 }
321321
322- return "' " . $ this ->escapeString ($ input ) . "' " ;
322+ return "' " . $ this ->escapeString ($ input ). "' " ;
323323 }
324324}
0 commit comments