Skip to content

Commit 13bd0d5

Browse files
dev-lnkgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 76778c9 commit 13bd0d5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Services/CodeStructure/Factories/CodeStructureFromMysql.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
}

src/Support/Traits/DataTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public function dataValue(mixed $key): mixed
3434
{
3535
return $this->data[$key] ?? null;
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)