Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: improves PHP generation.#7513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jcchavezs wants to merge5 commits intozaproxy:main
base:main
Choose a base branch
Loading
fromjcchavezs:improves_php_generator
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
chore: uses short syntax for array.
Signed-off-by: José Carlos Chávez <jcchavezs@gmail.com>
  • Loading branch information
@jcchavezs
jcchavezs committedOct 10, 2022
commit14ef9258092519257dfd9fc8253eb1fd6c20fb9c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -152,7 +152,7 @@ private void generatePhpElement(ApiElement element, String component, String typ
out.write("string $" + API.API_KEY_PARAM + " = '') {\n");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

apikey is always a string.


StringBuilder reqParams = new StringBuilder();
reqParams.append("array(");
reqParams.append("[");
String params =
element.getParameters().stream()
.filter(ApiParameter::isRequired)
Expand All@@ -174,7 +174,7 @@ private void generatePhpElement(ApiElement element, String component, String typ
.append(API.API_KEY_PARAM)
.append("' => $")
.append(API.API_KEY_PARAM)
.append(")");
.append("]");

List<ApiParameter> optionalParameters =
element.getParameters().stream()
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp