@@ -11,11 +11,11 @@ class MySQLSchemaDriver extends DatabaseSchemaDriver
1111 public function getViews (): array
1212 {
1313 try {
14- return DB ::connection ($ this ->connection )->select ("
14+ return DB ::connection ($ this ->connection )->select ('
1515 SELECT TABLE_NAME as name, VIEW_DEFINITION as definition
1616 FROM information_schema.VIEWS
1717 WHERE TABLE_SCHEMA = DATABASE()
18- " );
18+ ' );
1919 } catch (\Exception $ e ) {
2020 return [];
2121 }
@@ -24,7 +24,7 @@ public function getViews(): array
2424 public function getStoredProcedures (): array
2525 {
2626 try {
27- return DB ::connection ($ this ->connection )->select (" SHOW PROCEDURE STATUS WHERE Db = DATABASE() " );
27+ return DB ::connection ($ this ->connection )->select (' SHOW PROCEDURE STATUS WHERE Db = DATABASE() ' );
2828 } catch (\Exception $ e ) {
2929 return [];
3030 }
@@ -33,20 +33,20 @@ public function getStoredProcedures(): array
3333 public function getFunctions (): array
3434 {
3535 try {
36- return DB ::connection ($ this ->connection )->select (" SHOW FUNCTION STATUS WHERE Db = DATABASE() " );
36+ return DB ::connection ($ this ->connection )->select (' SHOW FUNCTION STATUS WHERE Db = DATABASE() ' );
3737 } catch (\Exception $ e ) {
3838 return [];
3939 }
4040 }
4141
42- public function getTriggers (string $ table = null ): array
42+ public function getTriggers (? string $ table = null ): array
4343 {
4444 try {
4545 if ($ table ) {
46- return DB ::connection ($ this ->connection )->select (" SHOW TRIGGERS WHERE `Table` = ? " , [$ table ]);
46+ return DB ::connection ($ this ->connection )->select (' SHOW TRIGGERS WHERE `Table` = ? ' , [$ table ]);
4747 }
4848
49- return DB ::connection ($ this ->connection )->select (" SHOW TRIGGERS " );
49+ return DB ::connection ($ this ->connection )->select (' SHOW TRIGGERS ' );
5050 } catch (\Exception $ e ) {
5151 return [];
5252 }
@@ -55,12 +55,12 @@ public function getTriggers(string $table = null): array
5555 public function getCheckConstraints (string $ table ): array
5656 {
5757 try {
58- return DB ::connection ($ this ->connection )->select ("
58+ return DB ::connection ($ this ->connection )->select ('
5959 SELECT CONSTRAINT_NAME, CHECK_CLAUSE
6060 FROM information_schema.CHECK_CONSTRAINTS
6161 WHERE CONSTRAINT_SCHEMA = DATABASE()
6262 AND TABLE_NAME = ?
63- " , [$ table ]);
63+ ' , [$ table ]);
6464 } catch (\Exception $ e ) {
6565 return [];
6666 }
@@ -70,4 +70,4 @@ public function getSequences(): array
7070 {
7171 return [];
7272 }
73- }
73+ }
0 commit comments