File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function write(string $guidelines): int
69
69
}
70
70
71
71
// Ensure file content ends with a newline
72
- if (! str_ends_with ($ newContent , "\n" )) {
72
+ if (! str_ends_with (( string ) $ newContent , "\n" )) {
73
73
$ newContent .= "\n" ;
74
74
}
75
75
Original file line number Diff line number Diff line change @@ -122,13 +122,13 @@ public function mcpConfigPath(): string
122
122
expect ($ environment ->mcpClientName ())->toBe ('Test Environment ' );
123
123
});
124
124
125
- test ('IsAgent returns true when implements Agent interface and has agentName ' , function (): void {
125
+ test ('isAgent returns true when implements Agent interface and has agentName ' , function (): void {
126
126
$ agent = new TestAgent ($ this ->strategyFactory );
127
127
128
128
expect ($ agent ->isAgent ())->toBe (true );
129
129
});
130
130
131
- test ('IsAgent returns false when does not implement Agent interface ' , function (): void {
131
+ test ('isAgent returns false when does not implement Agent interface ' , function (): void {
132
132
$ environment = new TestCodeEnvironment ($ this ->strategyFactory );
133
133
134
134
expect ($ environment ->isAgent ())->toBe (false );
Original file line number Diff line number Diff line change 100
100
unlink ($ tempFile );
101
101
});
102
102
103
- test ('it avoids adding extra newline if one already exists ' , function () {
103
+ test ('it avoids adding extra newline if one already exists ' , function (): void {
104
104
$ tempFile = tempnam (sys_get_temp_dir (), 'boost_test_ ' );
105
105
$ initialContent = "# Header \n\n<laravel-boost-guidelines> \nold guidelines \n</laravel-boost-guidelines> \n\n# Footer \n" ;
106
106
file_put_contents ($ tempFile , $ initialContent );
You can’t perform that action at this time.
0 commit comments