Skip to content

Commit c31da58

Browse files
committed
style
1 parent d5f75cd commit c31da58

File tree

7 files changed

+13
-16
lines changed

7 files changed

+13
-16
lines changed

src/Console/InstallCommand.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ protected function query()
9292

9393
protected function enact()
9494
{
95-
if ($this->installingGuidelines() && !empty($this->agentsToInstallTo)) {
95+
if ($this->installingGuidelines() && ! empty($this->agentsToInstallTo)) {
9696
$this->enactGuidelines($this->compose());
9797
}
9898

99-
if ($this->installingMcp() && !empty($this->idesToInstallTo)) {
99+
if ($this->installingMcp() && ! empty($this->idesToInstallTo)) {
100100
echo "\ninstalling mcps now to: ";
101101
dump($this->idesToInstallTo);
102102
}
103103

104-
if ($this->installingHerdMcp() && !empty($this->idesToInstallTo)) {
104+
if ($this->installingHerdMcp() && ! empty($this->idesToInstallTo)) {
105105
echo "\ninstalling herd mcp now to: ";
106106
dump($this->idesToInstallTo);
107107
}
@@ -118,7 +118,7 @@ protected function compose(): string
118118
$composed = collect(['core' => $this->guideline('core.md', [
119119
'{project.purpose}' => $this->projectPurpose,
120120
// TODO: Add package info, php version, laravel version, existing approaches, directory structure, models? General Laravel guidance that applies to all projects somehow? 'Follow existing conventions - if you are creating or editing a file, check sibling files for structure/approach/naming
121-
// TODO: Add project structure / relevant models / etc.. ? Kind of like Claude's /init, but for every Laravel developer regardless of IDE ? But if they already have that in Claude.md then that's gonna be doubling up and wasting tokens
121+
// TODO: Add project structure / relevant models / etc.. ? Kind of like Claude's /init, but for every Laravel developer regardless of IDE ? But if they already have that in Claude.md then that's gonna be doubling up and wasting tokens
122122
])]);
123123

124124
if (str_contains(config('app.url'), '.test') && $this->isHerdInstalled()) {
@@ -135,14 +135,14 @@ protected function compose(): string
135135
// We don't add guidelines for packages not supported by Roster right now
136136
foreach ($this->roster->packages() as $package) {
137137
$guidelineDir = str_replace('_', '-', strtolower($package->name()));
138-
$coreGuidelines = $this->guideline($guidelineDir . '/core.md'); // Add core
138+
$coreGuidelines = $this->guideline($guidelineDir.'/core.md'); // Add core
139139
if ($coreGuidelines) {
140-
$composed->put($guidelineDir . '/core', $coreGuidelines);
140+
$composed->put($guidelineDir.'/core', $coreGuidelines);
141141
}
142142

143143
$composed->put(
144-
$guidelineDir . '/v' . $package->majorVersion(),
145-
$this->guidelines($guidelineDir . '/' . $package->majorVersion())
144+
$guidelineDir.'/v'.$package->majorVersion(),
145+
$this->guidelines($guidelineDir.'/'.$package->majorVersion())
146146
);
147147
}
148148

@@ -328,7 +328,7 @@ private function intro()
328328
HEADER
329329
);
330330
intro('✦ Laravel Boost :: Install :: We Must Ship ✦');
331-
$this->line(' Let\'s give '.$this->colors->bgYellow($this->colors->black($this->projectName)) . ' a Boost');
331+
$this->line(' Let\'s give '.$this->colors->bgYellow($this->colors->black($this->projectName)).' a Boost');
332332
}
333333

334334
protected function projectPurpose(): string

src/Contracts/Ide.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ interface Ide
77
{
88
// Things to note: supports relative (absolute path required)? global mcp only? Prefer local file, but if global only we have to add the project name to the server name
99

10-
1110
}

src/Install/Agents/ClaudeCode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Laravel\Boost\Install\Agents;
44

55
use Laravel\Boost\Contracts\Agent;
6-
use Laravel\Boost\Install\Agents\ShellMcpIde;
76

87
class ClaudeCode extends ShellMcpIde implements Agent
98
{

src/Install/Agents/Copilot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function frontmatter(): bool
1717
{
1818
// If we use the multi file approach we can use frontmatter
1919
// In VSCode at least https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions?tool=vscode
20-
20+
2121
return false;
2222
}
2323
}

src/Install/Agents/PhpStorm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class PhpStorm implements Ide
88
{
9-
109
public function installMcp(string $command, array $args): bool
1110
{
1211
return true;

src/Install/Agents/VsCode.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Laravel\Boost\Install\Agents;
44

5-
use Laravel\Boost\Contracts\Ide;
6-
75
class VsCode extends FileMcpIde
86
{
97
protected string $jsonMcpKey = 'servers';

src/Install/GuidelineWriter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
class GuidelineWriter
88
{
99
public const NEW = 0;
10+
1011
public const REPLACED = 1;
12+
1113
public const FAILED = 2;
14+
1215
public const NOOP = 3;
1316

1417
public function __construct(protected Agent $agent) {}
1518

1619
/**
17-
* @param string $guidelines
1820
* @return \Laravel\Boost\Install\GuidelineWriter::NEW|\Laravel\Boost\Install\GuidelineWriter::REPLACED|\Laravel\Boost\Install\GuidelineWriter::FAILED\Laravel\Boost\Install\GuidelineWriter::NOOP
1921
*/
2022
public function write(string $guidelines): int

0 commit comments

Comments
 (0)