Skip to content

Commit f1f8ca5

Browse files
committed
rename method
1 parent 87a0874 commit f1f8ca5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "unsafe"
99
func ExecuteScriptCLI(script string, args []string) int {
1010
// Ensure extensions are registered before CLI execution
1111
registerExtensions()
12-
initPhpinfoEntries()
12+
initPHPInfoEntries()
1313

1414
cScript := C.CString(script)
1515
defer C.free(unsafe.Pointer(cScript))
@@ -23,7 +23,7 @@ func ExecuteScriptCLI(script string, args []string) int {
2323
func ExecutePHPCode(phpCode string) int {
2424
// Ensure extensions are registered before CLI execution
2525
registerExtensions()
26-
initPhpinfoEntries()
26+
initPHPInfoEntries()
2727

2828
cCode := C.CString(phpCode)
2929
defer C.free(unsafe.Pointer(cCode))

frankenphp.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ var (
166166
cPhpinfoArr []*C.char
167167
)
168168

169-
func AddPhpinfoEntry(key, value string) {
169+
func AddPHPInfoEntry(key, value string) {
170170
phpinfoEntries = append(phpinfoEntries, phpinfoEntry{key, value})
171171
}
172172

173-
func initPhpinfoEntries() {
173+
func initPHPInfoEntries() {
174174
for _, cstr := range cPhpinfoArr {
175175
if cstr != nil {
176176
C.free(unsafe.Pointer(cstr))
@@ -294,7 +294,7 @@ func Init(options ...Option) error {
294294
signal.Ignore(syscall.SIGPIPE)
295295

296296
registerExtensions()
297-
initPhpinfoEntries()
297+
initPHPInfoEntries()
298298

299299
opt := &opt{}
300300
for _, o := range options {

watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func init() {
1515
if buildInfo, ok := debug.ReadBuildInfo(); ok {
1616
for _, dep := range buildInfo.Deps {
1717
if dep.Path == "github.com/e-dant/watcher" {
18-
AddPhpinfoEntry("e-dant/watcher", dep.Version)
18+
AddPHPInfoEntry("e-dant/watcher", dep.Version)
1919
break
2020
}
2121
}

0 commit comments

Comments
 (0)