Skip to content

Commit 385ab1a

Browse files
committed
Name the php summary file Svix
1 parent 1985b36 commit 385ab1a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/generator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ impl Generator<'_> {
180180
(None, "ts") => "index".to_owned(),
181181
(None, "go") => "models".to_owned(),
182182
(None, "rb") => "svix".to_owned(),
183+
(None, "php") => "Svix".to_owned(),
183184
(None, _) => "summary".to_owned(),
184185
};
185186

src/template.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub(crate) fn env(tpl_dir: &Utf8Path) -> Result<minijinja::Environment<'static>,
6464
kwargs.assert_all_used()?;
6565

6666
let prefix = match &*style {
67-
"php" => {
67+
"php_field" => {
6868
if !s.contains("\n") {
6969
return Ok(s.into());
7070
} else {
@@ -74,7 +74,7 @@ pub(crate) fn env(tpl_dir: &Utf8Path) -> Result<minijinja::Environment<'static>,
7474
"python" => {
7575
return Ok(format!(r#""""{s}""""#));
7676
}
77-
"java" | "kotlin" | "javascript" | "js" | "ts" | "typescript" => {
77+
"java" | "kotlin" | "javascript" | "js" | "ts" | "typescript" | "php_class" => {
7878
if !s.contains("\n") {
7979
return Ok(format!("/** {s} */"));
8080
}

0 commit comments

Comments
 (0)