File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Services/CodeStructure/Factories Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public static function make(
2828 foreach ($ indexes as $ index ) {
2929 if ($ index ['name ' ] === 'primary ' ) {
3030 $ primaryKey = $ index ['columns ' ][0 ];
31+
3132 break ;
3233 }
3334 }
@@ -53,7 +54,7 @@ public static function make(
5354 }
5455
5556 // For pgsql
56- if (!is_null ($ column ['default ' ]) && str_contains ($ column ['default ' ], ':: ' )) {
57+ if (! is_null ($ column ['default ' ]) && str_contains ($ column ['default ' ], ':: ' )) {
5758 $ column ['default ' ] = substr (
5859 $ column ['default ' ],
5960 0 ,
@@ -64,7 +65,7 @@ public static function make(
6465 // For mysql
6566 $ type = $ column ['type ' ] === 'tinyint(1) ' ? 'boolean ' : $ type ;
6667
67- if ($ type === 'boolean ' && !is_null ($ column ['default ' ])) {
68+ if ($ type === 'boolean ' && ! is_null ($ column ['default ' ])) {
6869 // For mysql
6970 if ($ column ['default ' ] !== 'false '
7071 && $ column ['default ' ] !== true
@@ -151,4 +152,4 @@ public static function make(
151152
152153 return $ codeStructure ;
153154 }
154- }
155+ }
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ public function dataValue(mixed $key): mixed
3434 {
3535 return $ this ->data [$ key ] ?? null ;
3636 }
37- }
37+ }
You can’t perform that action at this time.
0 commit comments