Skip to content

Commit 2150aba

Browse files
committed
Fix CS
1 parent b5ab1f8 commit 2150aba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Schema/Builder.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class Builder extends \Illuminate\Database\Schema\Builder
2323
/**
2424
* Check if column exists in the collection schema.
2525
*
26-
* @param $table
27-
* @param $column
26+
* @param string $table
27+
* @param string $column
28+
*
2829
* @return bool
2930
*/
3031
public function hasColumn($table, $column): bool
@@ -39,8 +40,8 @@ public function hasColumn($table, $column): bool
3940
/**
4041
* Check if columns exists in the collection schema.
4142
*
42-
* @param $table
43-
* @param array $columns
43+
* @param string $table
44+
* @param string[] $columns
4445
*
4546
* @return bool
4647
*/

tests/SchemaTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public function testHasColumns(): void
394394
{
395395
// Insert documents with both column1 and column2
396396
DB::connection()->collection('newcollection')->insert([
397-
['column1' => 'value1', 'column2' => 'value2']
397+
['column1' => 'value1', 'column2' => 'value2'],
398398
]);
399399

400400
$this->assertTrue(Schema::hasColumns('newcollection', ['column1', 'column2']));

0 commit comments

Comments
 (0)