Skip to content

Commit f06d146

Browse files
committed
rename method
1 parent 87a0874 commit f06d146

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

caddy/br.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func init() {
1414
if buildInfo, ok := debug.ReadBuildInfo(); ok {
1515
for _, dep := range buildInfo.Deps {
1616
if dep.Path == "github.com/dunglas/caddy-cbrotli" {
17-
frankenphp.AddPhpinfoEntry("dunglas/caddy-cbrotli", dep.Version)
17+
frankenphp.AddPHPInfoEntry("dunglas/caddy-cbrotli", dep.Version)
1818
break
1919
}
2020
}

caddy/caddy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ func init() {
3030
// Report Caddy version in phpinfo()
3131
simpleVersion, fullVersion := caddy.Version()
3232
if fullVersion != "" {
33-
frankenphp.AddPhpinfoEntry("caddy", fullVersion)
33+
frankenphp.AddPHPInfoEntry("caddy", fullVersion)
3434
} else if simpleVersion != "" {
35-
frankenphp.AddPhpinfoEntry("caddy", simpleVersion)
35+
frankenphp.AddPHPInfoEntry("caddy", simpleVersion)
3636
}
3737

3838
httpcaddyfile.RegisterGlobalOption("frankenphp", parseGlobalOption)

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 {

mercure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func init() {
1818
if buildInfo, ok := debug.ReadBuildInfo(); ok {
1919
for _, dep := range buildInfo.Deps {
2020
if dep.Path == "github.com/dunglas/mercure" {
21-
AddPhpinfoEntry("dunglas/mercure", dep.Version)
21+
AddPHPInfoEntry("dunglas/mercure", dep.Version)
2222
break
2323
}
2424
}

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)