Enable combine_consecutive_issets fixer

This commit is contained in:
John Paul E. Balandan, CPA 2021-06-11 01:13:01 +08:00
parent 029c9b0cc5
commit 1dac15fe2b
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610
4 changed files with 4 additions and 3 deletions

View File

@ -268,6 +268,6 @@ class FileCollection
return $this->getValueDotNotationSyntax($index, $value[$currentIndex]);
}
return (isset($currentIndex) && isset($value[$currentIndex])) ? $value[$currentIndex] : null;
return isset($currentIndex, $value[$currentIndex]) ? $value[$currentIndex] : null;
}
}

View File

@ -398,7 +398,7 @@ class ImageMagickHandler extends BaseHandler
$cmd .= " -font '{$options['fontPath']}'";
}
if (isset($options['hAlign']) && isset($options['vAlign'])) {
if (isset($options['hAlign'], $options['vAlign'])) {
switch ($options['hAlign']) {
case 'left':
$xAxis = $options['hOffset'] + $options['padding'];

View File

@ -111,7 +111,7 @@ class ChromeLoggerHandler extends BaseHandler
$backtrace = end($backtrace);
$backtraceMessage = 'unknown';
if (isset($backtrace['file']) && isset($backtrace['line'])) {
if (isset($backtrace['file'], $backtrace['line'])) {
$backtraceMessage = $backtrace['file'] . ':' . $backtrace['line'];
}

View File

@ -76,6 +76,7 @@ final class CodeIgniter4 extends AbstractRuleset
],
'class_keyword_remove' => false,
'clean_namespace' => true,
'combine_consecutive_issets' => true,
'function_to_constant' => true,
'indentation_type' => true,
'line_ending' => true,