Closed nerun closed 1 year ago
Wouldn't it be easier and shorter to use the Null Coalescing Operator here?
E.g. instead of:
if ( isset($properties ['margin-left']) ) {
$properties ['padding-left'] = $properties ['margin-left'];
} else {
$properties ['padding-left'] = null;
}
the same functionality can be expressed as:
$properties ['padding-left'] = $properties ['margin-left'] ?? null;
Thank you, i am very new in php.