Skip to content

Commit 08a7bee

Browse files
authored
Enhancement: Enable function_declaration fixer (#862)
1 parent db4d746 commit 08a7bee

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
],
3030
'constant_case' => true,
3131
'elseif' => true,
32+
'function_declaration' => true,
3233
'increment_style' => [
3334
'style' => 'post',
3435
],

include/errors.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ The most commonly searched terms have also been added.
123123
TODO: Determine if we want to continue 301 -OR- make these official URLs.
124124
******************************************************************************/
125125

126-
function is_known_ini (string $ini): ?string {
126+
function is_known_ini(string $ini): ?string {
127127
$inis = [
128128
'engine' => 'apache.configuration.php#ini.engine',
129129
'short-open-tag' => 'ini.core.php#ini.short-open-tag',
@@ -366,7 +366,7 @@ function is_known_variable(string $variable): ?string {
366366
return $variables[ltrim($variable, '$')] ?? null;
367367
}
368368

369-
function is_known_term (string $term): ?string {
369+
function is_known_term(string $term): ?string {
370370
$terms = [
371371
'<>' => 'language.operators.comparison.php',
372372
'<=>' => 'language.operators.comparison.php',

include/layout.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ function make_submit($file, $alt = false, $align = false, $extras = false,
140140
}
141141

142142
// Return a hiperlink to something within the site
143-
function make_link (string $url, string $linktext = ''): string
143+
function make_link(string $url, string $linktext = ''): string
144144
{
145145
return sprintf("<a href=\"%s\">%s</a>", $url, $linktext ?: $url);
146146
}
147147

148148
// make_popup_link()
149149
// return a hyperlink to something, within the site, that pops up a new window
150150
//
151-
function make_popup_link ($url, $linktext = false, $target = false, $windowprops = "", $extras = false) {
151+
function make_popup_link($url, $linktext = false, $target = false, $windowprops = "", $extras = false) {
152152
return sprintf("<a href=\"%s\" target=\"%s\" onclick=\"window.open('%s','%s','%s');return false;\"%s>%s</a>",
153153
htmlspecialchars($url, ENT_QUOTES | ENT_IGNORE),
154154
($target ?: "_new"),

0 commit comments

Comments
 (0)