Skip to content

Commit ae3065f

Browse files
committed
Php Inspections (EA Extended) - static code analysis includes:
Reduce couple count calls in [Yaml] Modernize type casting, fix several strict comparisons Unsets merged Elvis operator usage Short syntax for applied operations
1 parent 637a957 commit ae3065f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Extension/Core/Type/ChoiceType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
131131
// Add "[]" to the name in case a select tag with multiple options is
132132
// displayed. Otherwise only one of the selected options is sent in the
133133
// POST request.
134-
$view->vars['full_name'] = $view->vars['full_name'].'[]';
134+
$view->vars['full_name'] .= '[]';
135135
}
136136
}
137137

Util/ServerParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getPostMaxSize()
3535
} elseif (0 === strpos($max, '0')) {
3636
$max = intval($max, 8);
3737
} else {
38-
$max = intval($max);
38+
$max = (int) $max;
3939
}
4040

4141
switch (substr($iniMax, -1)) {

0 commit comments

Comments
 (0)