Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 632
Enhancement: Enable braces_position fixer#881
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -19,7 +19,8 @@ | ||
| } | ||
| } | ||
| function imgheader($filename) { | ||
| function imgheader($filename) | ||
| { | ||
Comment on lines
+22
to
+23
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like this. Also, I think this fixer should be applied together with indentation fixer. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe #886 helps, @kamil-tekiela? Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be honest, I would hold off with applying either of them. It creates too many changes and I don't know if this project is ready for this yet. I'd rather take small steps here. | ||
| $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); | ||
| switch ($ext) { | ||
| case 'gif': | ||
| @@ -41,7 +42,8 @@ function imgheader($filename) { | ||
| header("Content-Type: $hdr"); | ||
| } | ||
| function get_accepted_encodings() { | ||
| function get_accepted_encodings() | ||
| { | ||
| if (isset($_SERVER['HTTP_ACCEPT_ENCODING'])) { | ||
| $encodings = explode(',', $_SERVER['HTTP_ACCEPT_ENCODING']); | ||
| return array_map(function ($x) { | ||
| @@ -51,7 +53,8 @@ function get_accepted_encodings() { | ||
| return []; | ||
| } | ||
| function serve_compressed_if_available($logo): void { | ||
| function serve_compressed_if_available($logo): void | ||
| { | ||
| $encodings = get_accepted_encodings(); | ||
| if (!empty($encodings)) { | ||
| foreach ($encodings as $encoding) { | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, this fixer could also be configured with a range of options.