Skip to content

Commit 5ccbae6

Browse files
committed
Merge branch 'fix/larastan' of github.com:BinarCode/laravel-restify into fix/larastan
2 parents e5297d3 + d942aac commit 5ccbae6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Fields/OrganicField.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function hideFromShow($callback = true)
6767
$this->showOnShow = is_callable($callback) ? function () use ($callback) {
6868
return ! call_user_func_array($callback, func_get_args());
6969
}
70-
: ! $callback;
70+
: ! $callback;
7171

7272
return $this;
7373
}
@@ -77,7 +77,7 @@ public function hideFromIndex($callback = true)
7777
$this->showOnIndex = is_callable($callback) ? function () use ($callback) {
7878
return ! call_user_func_array($callback, func_get_args());
7979
}
80-
: ! $callback;
80+
: ! $callback;
8181

8282
return $this;
8383
}
@@ -86,7 +86,7 @@ public function showOnMcp($callback = true)
8686
{
8787
$this->showOnMcp = $callback instanceof Closure
8888
? $callback
89-
: fn() => (bool) $callback;
89+
: fn () => (bool) $callback;
9090

9191
return $this;
9292
}
@@ -95,7 +95,7 @@ public function hideFromMcp($callback = true)
9595
{
9696
$this->hideFromMcpCallback = $callback instanceof Closure
9797
? $callback
98-
: fn() => (bool) $callback;
98+
: fn () => (bool) $callback;
9999

100100
return $this;
101101
}

tests/Fields/FieldMcpVisibilityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function test_field_collection_filters_mcp_hidden_fields_for_index(): voi
3131
}), // Conditional MCP visibility
3232
]);
3333

34-
// // Regular request
34+
// // Regular request
3535
$regularRequest = new RestifyRequest;
3636
$regularIndexFields = $fields->forIndex($regularRequest, $this->repository);
3737

@@ -42,7 +42,7 @@ public function test_field_collection_filters_mcp_hidden_fields_for_index(): voi
4242
$this->assertContains('admin_notes', $regularFieldNames);
4343

4444
// MCP request without admin
45-
$mcpRequest = new McpIndexRequest();
45+
$mcpRequest = new McpIndexRequest;
4646
$mcpIndexFields = $fields->forIndex($mcpRequest, $this->repository);
4747

4848
$mcpFieldNames = $mcpIndexFields->map(fn ($field) => $field->getAttribute())->toArray();

0 commit comments

Comments
 (0)