mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Enable combine_consecutive_issets
fixer
This commit is contained in:
parent
029c9b0cc5
commit
1dac15fe2b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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'];
|
||||
|
@ -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'];
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user