-
Notifications
You must be signed in to change notification settings - Fork 558
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
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
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. 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? 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) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,8 @@ function is_emailable_address($email) | |
* .... will match: | ||
* [email protected] | ||
*/ | ||
function blacklisted($email) { | ||
function blacklisted($email) | ||
{ | ||
$mosquitoes = [ | ||
'[email protected]', | ||
'[email protected]', | ||
|
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.