Conditions | 5 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Tests; |
||
27 | public function debugSQL() { |
||
28 | echo "\n"; |
||
29 | $i = 0; |
||
30 | $this->app['db']->listen(function($sql) use (&$i) { |
||
31 | if (strpos($sql->sql, "drop") === 0 || strpos($sql->sql, "create") === 0 || strpos($sql->sql, "migrations") !== false || strpos($sql->sql, "sqlite_master") !== false) { |
||
32 | return; |
||
33 | } |
||
34 | |||
35 | echo "-> (" . ++$i . ") " . $sql->sql . ": " . print_r(implode(", ", $sql->bindings), true) . "\n"; |
||
36 | }); |
||
37 | } |
||
38 | |||
52 |