Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 53 additions & 12 deletions pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"blank_line_before_statement": {
"statements": ["return"]
"statements": [
"return"
]
},
"blank_line_between_import_groups": true,
"blank_lines_before_namespace": true,
Expand All @@ -38,6 +40,7 @@
"declare_equal_normalize": true,
"elseif": true,
"encoding": true,
"explicit_string_variable": true,
"full_opening_tag": true,
"function_declaration": true,
"heredoc_to_nowdoc": true,
Expand Down Expand Up @@ -74,7 +77,11 @@
"no_empty_phpdoc": true,
"no_empty_statement": true,
"no_extra_blank_lines": {
"tokens": ["extra", "throw", "use"]
"tokens": [
"extra",
"throw",
"use"
]
},
"no_leading_import_slash": true,
"no_leading_namespace_whitespace": true,
Expand All @@ -86,7 +93,10 @@
"no_singleline_whitespace_before_semicolons": true,
"no_space_around_double_colon": true,
"no_spaces_around_offset": {
"positions": ["inside", "outside"]
"positions": [
"inside",
"outside"
]
},
"no_spaces_after_function_name": true,
"no_trailing_comma_in_singleline": true,
Expand All @@ -106,7 +116,11 @@
"object_operator_without_whitespace": true,
"ordered_imports": {
"sort_algorithm": "alpha",
"imports_order": ["const", "class", "function"]
"imports_order": [
"const",
"class",
"function"
]
},
"phpdoc_align": {
"align": "left",
Expand All @@ -120,17 +134,41 @@
"phpdoc_no_package": true,
"phpdoc_no_useless_inheritdoc": true,
"phpdoc_order": {
"order": ["param", "return", "throws"]
"order": [
"param",
"return",
"throws"
]
},
"phpdoc_return_self_reference": true,
"phpdoc_scalar": true,
"phpdoc_separation": {
"groups": [
["deprecated", "link", "see", "since"],
["author", "copyright", "license"],
["category", "package", "subpackage"],
["property", "property-read", "property-write"],
["param", "return"]
[
"deprecated",
"link",
"see",
"since"
],
[
"author",
"copyright",
"license"
],
[
"category",
"package",
"subpackage"
],
[
"property",
"property-read",
"property-write"
],
[
"param",
"return"
]
]
},
"phpdoc_single_line_var_spacing": true,
Expand Down Expand Up @@ -161,11 +199,14 @@
"types_spaces": true,
"unary_operator_spaces": true,
"visibility_required": {
"elements": ["method", "property"]
"elements": [
"method",
"property"
]
},
"whitespace_after_comma_in_array": true
},
"notPath" :[
"notPath": [
"stubs/tool.stub.php"
]
}
10 changes: 5 additions & 5 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private function outro(): void

private function hyperlink(string $label, string $url): string
{
return "\033]8;;$url\007$label\033]8;;\033\\";
return "\033]8;;{$url}\007{$label}\033]8;;\033\\";
}

/**
Expand Down Expand Up @@ -428,7 +428,7 @@ protected function enactGuidelines(): void
foreach ($this->selectedTargetAgents as $agent) {
$agentName = class_basename($agent);
$displayAgentName = str_pad($agentName, $longestAgentName);
$this->output->write(" $displayAgentName... ");
$this->output->write(" {$displayAgentName}... ");

try {
(new GuidelineWriter($agent))
Expand All @@ -449,7 +449,7 @@ protected function enactGuidelines(): void
count($failed) === 1 ? '' : 's'
));
foreach ($failed as $agentName => $error) {
$this->line(" - $agentName: $error");
$this->line(" - {$agentName}: {$error}");
}
}
}
Expand Down Expand Up @@ -488,7 +488,7 @@ private function enactMcpServers(): void
foreach ($this->selectedTargetIdes as $ide) {
$ideName = class_basename($ide);
$ideDisplay = str_pad($ideName, $longestIdeName);
$this->output->write(" $ideDisplay... ");
$this->output->write(" {$ideDisplay}... ");
$results = [];

// Install Laravel Boost MCP if enabled
Expand Down Expand Up @@ -539,7 +539,7 @@ private function enactMcpServers(): void
$this->error(sprintf('%s Some MCP servers failed to install:', $this->redCross));
foreach ($failed as $ideName => $errors) {
foreach ($errors as $server => $error) {
$this->line(" - $ideName ($server): $error");
$this->line(" - {$ideName} ({$server}): {$error}");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Mcp/Tools/DatabaseSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle(array $arguments): ToolResult
{
$connection = $arguments['database'] ?? config('database.default');
$filter = $arguments['filter'] ?? '';
$cacheKey = "boost:mcp:database-schema:$connection:$filter";
$cacheKey = "boost:mcp:database-schema:{$connection}:{$filter}";

$schema = Cache::remember($cacheKey, 20, function () use ($connection, $filter) {
return $this->getDatabaseStructure($connection, $filter);
Expand Down
2 changes: 1 addition & 1 deletion src/Mcp/Tools/GetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function handle(array $arguments): ToolResult
$key = $arguments['key'];

if (! Config::has($key)) {
return ToolResult::error("Config key '$key' not found.");
return ToolResult::error("Config key '{$key}' not found.");
}

return ToolResult::json([
Expand Down
2 changes: 1 addition & 1 deletion src/Mcp/Tools/LastError.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function handle(array $arguments): ToolResult
$logFile = $this->resolveLogFilePath();

if (! file_exists($logFile)) {
return ToolResult::error("Log file not found at $logFile");
return ToolResult::error("Log file not found at {$logFile}");
}

$entry = $this->readLastErrorEntry($logFile);
Expand Down
2 changes: 1 addition & 1 deletion src/Mcp/Tools/ListAvailableEnvVars.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function handle(array $arguments): ToolResult
}

if (! file_exists($filePath)) {
return ToolResult::error("File not found at '$filePath'");
return ToolResult::error("File not found at '{$filePath}'");
}

$envLines = file_get_contents($filePath);
Expand Down
2 changes: 1 addition & 1 deletion src/Mcp/Tools/ReadLogEntries.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle(array $arguments): ToolResult
$logFile = $this->resolveLogFilePath();

if (! file_exists($logFile)) {
return ToolResult::error("Log file not found at $logFile");
return ToolResult::error("Log file not found at {$logFile}");
}

$entries = $this->readLastLogEntries($logFile, $maxEntries);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Install/GuidelineWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@

// Create a process that holds the lock
$lockingProcess = proc_open("php -r \"
\$handle = fopen('$tempFile', 'c+');
\$handle = fopen('{$tempFile}', 'c+');
flock(\$handle, LOCK_EX);
sleep(1);
fclose(\$handle);
Expand Down
Loading